Home
last modified time | relevance | path

Searched refs:i2c (Results 1 – 25 of 46) sorted by relevance

12

/linux-2.4.37.9/drivers/i2c/
DMakefile5 O_TARGET := i2c.o
7 export-objs := i2c-core.o i2c-algo-bit.o i2c-algo-pcf.o \
8 i2c-algo-ite.o i2c-algo-sibyte.o i2c-algo-sgi.o \
9 i2c-proc.o
11 obj-$(CONFIG_I2C) += i2c-core.o
12 obj-$(CONFIG_I2C_CHARDEV) += i2c-dev.o
13 obj-$(CONFIG_I2C_ALGOBIT) += i2c-algo-bit.o
14 obj-$(CONFIG_I2C_PHILIPSPAR) += i2c-philips-par.o
15 obj-$(CONFIG_I2C_ELV) += i2c-elv.o
16 obj-$(CONFIG_I2C_VELLEMAN) += i2c-velleman.o
[all …]
/linux-2.4.37.9/Documentation/i2c/
Dsummary1 This is an explanation of what i2c is, and what is supported in this package.
52 i2c-core: The basic I2C code, including the /proc/bus/i2c* interface
53 i2c-dev: The /dev/i2c-* interface
54 i2c-proc: The /proc/sys/dev/sensors interface for device (client) drivers
59 i2c-algo-8xx: An algorithm for CPM's I2C device in Motorola 8xx processors (NOT BUILT BY DEFAULT)
60 i2c-algo-bit: A bit-banging algorithm
61 i2c-algo-pcf: A PCF 8584 style algorithm
62 i2c-algo-ppc405: An algorithm for the I2C device in IBM 405xx processors (NOT BUILT BY DEFAULT)
67 i2c-elektor: Elektor ISA card (uses i2c-algo-pcf)
68 i2c-elv: ELV parallel port adapter (uses i2c-algo-bit)
[all …]
Dproc-interface1 i2c-core is the core i2c module (surprise!) which offers general routines on
2 which other modules build. You will find that all i2c-related modules depend
3 on this module, so it will (need to) be loaded whenever another i2c-related
7 /proc/bus/i2c
10 Whenever i2c-core is loaded, you will find a file /proc/bus/i2c, which lists
12 I2C adapter. Each line has the following format: "i2c-%d\t%9s\t%-32s't%-32s\n",
17 of the adapter, for example "i2c-4" for adapter 4. The name listed is also
24 i2c at all. Possible values in here are "i2c", "smbus", "i2c/smbus"
25 and "dummy". Because the SMBus protocol can be fully emulated by i2c
26 adapters, if you see "i2c" here, SMBus is supported too. There may
[all …]
Ddev-interface1 Usually, i2c devices are controlled by a kernel driver. But it is also
3 the /dev interface. You need to load module i2c-dev for this.
5 Each registered i2c adapter gets a number, counting from 0. You can
6 examine /proc/bus/i2c to see what number corresponds to which adapter.
9 explained above. They should be called "i2c-%d" (i2c-0, i2c-1, ...,
10 i2c-10, ...). All 256 minor device numbers are reserved for i2c.
16 So let's say you want to access an i2c adapter from a C program. The
17 first thing to do is `#include <linux/i2c.h>" and "#include <linux/i2c-dev.h>.
19 knows about i2c, there is not much choice.
22 inspect /proc/bus/i2c to decide this. Adapter numbers are assigned
[all …]
Dfunctionality15 <linux/i2c.h>!
17 I2C_FUNC_I2C Plain i2c-level commands (Pure SMBus
22 flags (which modify the i2c protocol!)
61 /* Many other things of course; check <linux/i2c.h>! */
65 A typically implementation is given below, from i2c-algo-bit.c:
122 if (file = open("/dev/i2c-0",O_RDWR) < 0) {
Di2c-velleman1 i2c-velleman driver
3 This is a driver for i2c-hw access for Velleman K8000 and other adapters.
Dwriting-clients29 .id = I2C_DRIVERID_FOO, /* from i2c-id.h, optional */
43 distributing the driver, at which time you should contact the i2c authors
84 following functions defined in i2c.h:
110 /* Because the i2c bus is slow, it is often useful to cache the read
133 For some cases, it will be easier to call the i2c functions directly,
181 Most i2c devices can be present on several i2c addresses; for some this
186 i2c addresses for your clients, and do some sort of detection to see
191 are defined in i2c.h to help you support them, as well as a generic
202 Probing classes (i2c)
312 /* Scan i2c addresses 0x20 to 0x2f, 0x37, and 0x40 to 0x4f
[all …]
/linux-2.4.37.9/arch/ppc/boot/simple/
Diic.c23 volatile i2c8xx_t *i2c; in iic_init() local
53 i2c = (i2c8xx_t *)&(immap->im_i2c); in iic_init()
90 i2c->i2c_i2add = 0x34; in iic_init()
94 i2c->i2c_i2brg = 7; in iic_init()
98 i2c->i2c_i2cmr = 0; in iic_init()
99 i2c->i2c_i2cer = 0xff; in iic_init()
117 volatile i2c8xx_t *i2c; in iic_read() local
133 i2c = (i2c8xx_t *)&(immap->im_i2c); in iic_read()
152 i2c->i2c_i2mod = 1; /* Enable */ in iic_read()
153 i2c->i2c_i2cer = 0xff; in iic_read()
[all …]
/linux-2.4.37.9/drivers/media/video/
Di2c-parport.c33 struct i2c_bus i2c; member
81 b->i2c = parport_i2c_bus_template; in i2c_parport_attach()
82 b->i2c.data = parport_get_port (port); in i2c_parport_attach()
83 strncpy(b->i2c.name, port->name, 32); in i2c_parport_attach()
88 i2c_register_bus(&b->i2c); in i2c_parport_attach()
100 if (b->i2c.data == port) in i2c_parport_detach()
106 i2c_unregister_bus(&b->i2c); in i2c_parport_detach()
145 i2c_unregister_bus(&b->i2c); in cleanup_module()
DMakefile28 export-objs := i2c-old.o videodev.o bttv-if.o cpia.o
36 obj-$(CONFIG_BUS_I2C) += i2c-old.o
41 obj-$(CONFIG_VIDEO_ZR36120) += zoran.o i2c-old.o
42 obj-$(CONFIG_I2C_PARPORT) += i2c-parport.o i2c-old.o
47 obj-$(CONFIG_VIDEO_ZORAN) += zr36067.o i2c-old.o
54 obj-$(CONFIG_VIDEO_STRADIS) += stradis.o i2c-old.o
Dstradis.c667 I2CWrite(&(saa->i2c), 0x22, 0x03, in cs4341_setlevel()
669 I2CWrite(&(saa->i2c), 0x22, 0x04, in cs4341_setlevel()
679 I2CWrite(&(saa->i2c), 0x22, 0x01, 0x11, 2); in initialize_cs4341()
681 I2CWrite(&(saa->i2c), 0x22, 0x02, 0x49, 2); in initialize_cs4341()
683 I2CWrite(&(saa->i2c), 0x22, 0x03, 0x00, 2); in initialize_cs4341()
685 I2CWrite(&(saa->i2c), 0x22, 0x04, 0x00, 2); in initialize_cs4341()
686 I2CWrite(&(saa->i2c), 0x22, 0x01, 0x10, 2); in initialize_cs4341()
687 if (I2CRead(&(saa->i2c), 0x22, 0x02, 1) == 0x49) in initialize_cs4341()
704 I2CWrite(&(saa->i2c), 0x20, init8420[i * 2], in initialize_cs8420()
707 I2CWrite(&(saa->i2c), 0x20, sequence[i * 2], in initialize_cs8420()
[all …]
Dzr36120_i2c.c70 rv = i2c_control_device(&ztv->i2c, I2C_DRIVERID_VIDEODECODER, DECODER_GET_CAPABILITIES, &dc); in attach_inform()
88 if (i2c_control_device(&ztv->i2c,I2C_DRIVERID_TUNER,TUNER_SET_TYPE,&ztv->tuner_type)<0) in attach_inform()
Dzr36067.c2326 i2c_control_device(&zr->i2c, I2C_DRIVERID_VIDEODECODER, in zr36057_enable_jpg()
2328 i2c_control_device(&zr->i2c, I2C_DRIVERID_VIDEOENCODER, in zr36057_enable_jpg()
2344 i2c_control_device(&zr->i2c, I2C_DRIVERID_VIDEODECODER, in zr36057_enable_jpg()
2347 i2c_control_device(&zr->i2c, I2C_DRIVERID_VIDEOENCODER, in zr36057_enable_jpg()
2383 i2c_control_device(&zr->i2c, I2C_DRIVERID_VIDEODECODER, in zr36057_enable_jpg()
2385 i2c_control_device(&zr->i2c, I2C_DRIVERID_VIDEOENCODER, in zr36057_enable_jpg()
2764 i2c_control_device(&zr->i2c, in error_handler()
3319 i2c_control_device(&zr->i2c, in zoran_close()
3322 i2c_control_device(&zr->i2c, in zoran_close()
3530 i2c_control_device(&zr->i2c, in do_zoran_ioctl()
[all …]
Dzr36120.c393 rv = i2c_control_device(&(ztv->i2c), I2C_DRIVERID_VIDEODECODER, DECODER_SET_NORM, &norm); in zoran_muxsel()
402 rv = i2c_control_device(&(ztv->i2c), I2C_DRIVERID_VIDEODECODER, DECODER_SET_INPUT, &channel); in zoran_muxsel()
739 i2c_control_device(&ztv->i2c, I2C_DRIVERID_VIDEODECODER, DECODER_SET_PICTURE, &ztv->picture); in zoran_common_open()
1167 i2c_control_device(&ztv->i2c, I2C_DRIVERID_VIDEODECODER, DECODER_SET_PICTURE, &p); in zoran_ioctl()
1445 if (i2c_control_device(&(ztv->i2c), I2C_DRIVERID_TUNER, TUNER_SET_TVFREQ, &fixme) < 0) in zoran_ioctl()
1998 ztv->i2c = zoran_i2c_bus_template; in init_zoran()
1999 sprintf(ztv->i2c.name,"zoran-%d",card); in init_zoran()
2000 ztv->i2c.data = ztv; in init_zoran()
2006 strcpy(ztv->video_dev.name, ztv->i2c.name); in init_zoran()
2012 strcpy(ztv->vbi_dev.name, ztv->i2c.name); in init_zoran()
[all …]
Dsaa7146.h77 struct i2c_bus i2c; member
/linux-2.4.37.9/drivers/sbus/char/
Denvctrl.c175 volatile static struct pcf8584_reg *i2c = NULL; variable
210 if (!(envctrl_readb(&i2c->csr) & STATUS_PIN)) in envtrl_i2c_test_pin()
228 if (envctrl_readb(&i2c->csr) & STATUS_BB) in envctrl_i2c_test_bb()
245 envctrl_writeb(addr + 1, &i2c->data); in envctrl_i2c_read_addr()
249 envctrl_writeb(OBD_SEND_START, &i2c->csr); in envctrl_i2c_read_addr()
255 if (!(envctrl_readb(&i2c->csr) & STATUS_LRB)) { in envctrl_i2c_read_addr()
256 return envctrl_readb(&i2c->data); in envctrl_i2c_read_addr()
258 envctrl_writeb(OBD_SEND_STOP, &i2c->csr); in envctrl_i2c_read_addr()
269 envctrl_writeb(addr, &i2c->data); in envctrl_i2c_write_addr()
272 envctrl_writeb(OBD_SEND_START, &i2c->csr); in envctrl_i2c_write_addr()
[all …]
/linux-2.4.37.9/Documentation/video4linux/bttv/
DModules.conf2 alias char-major-89 i2c-dev
3 options i2c-core i2c_debug=1
4 options i2c-algo-bit bit_test=1
DREADME11 from the kernel version, port to the new i2c stack, removed support
14 To compile this bttv version, you'll the new i2c stack. Kernels
62 OEM name variants, used i2c chips, ...
66 drivers for the i2c tuner/sound chips must also be loaded. bttv tries
72 options i2c-algo-bit bit_test=1
DInsmod-options71 controls (requires a i2c audio control chip like the msp3400).
81 driver for all simple i2c audio control chips (tda/tea*).
90 tea6300 = 0 The two tda985x chips use the same i2c
114 tda9875.o) use the same i2c address so both modules should not be
/linux-2.4.37.9/drivers/
DMakefile11 fc4 net/hamradio i2c acpi bluetooth usb/gadget
47 subdir-$(CONFIG_I2C) += i2c
/linux-2.4.37.9/arch/mips/pmc-sierra/yosemite/
DMakefile9 obj-y += irq-handler.o irq.o i2c-yosemite.o prom.o setup.o
/linux-2.4.37.9/drivers/video/matrox/
DMakefile18 obj-$(CONFIG_FB_MATROX_I2C) += i2c-matroxfb.o
/linux-2.4.37.9/arch/cris/drivers/
DMakefile16 obj-$(CONFIG_ETRAX_I2C) += i2c.o
/linux-2.4.37.9/drivers/acorn/char/
DMakefile33 obj-$(CONFIG_ARCH_ACORN) += defkeymap-acorn.o i2c.o pcf8583.o
/linux-2.4.37.9/drivers/sound/dmasound/
DConfig.in29 # the new dmasound_pmac driver needs access to the i2c bus

12