/external/u-boot/drivers/i2c/ |
D | i2c_core.c | 13 struct i2c_adapter *i2c_get_adapter(int index) in i2c_get_adapter() 15 struct i2c_adapter *i2c_adap_p = ll_entry_start(struct i2c_adapter, in i2c_get_adapter() 17 int max = ll_entry_count(struct i2c_adapter, i2c); in i2c_get_adapter() 58 static int i2c_mux_set(struct i2c_adapter *adap, int mux_id, int chip, in i2c_mux_set() 248 max = ll_entry_count(struct i2c_adapter, i2c); in i2c_set_bus_num() 317 struct i2c_adapter *cur = I2C_ADAP; in i2c_get_bus_speed()
|
D | lpc32xx_i2c.c | 227 static void lpc32xx_i2c_init(struct i2c_adapter *adap, in lpc32xx_i2c_init() 234 static int lpc32xx_i2c_probe_chip(struct i2c_adapter *adap, u8 dev) in lpc32xx_i2c_probe_chip() 239 static int lpc32xx_i2c_read(struct i2c_adapter *adap, u8 dev, uint addr, in lpc32xx_i2c_read() 246 static int lpc32xx_i2c_write(struct i2c_adapter *adap, u8 dev, uint addr, in lpc32xx_i2c_write() 253 static unsigned int lpc32xx_i2c_set_bus_speed(struct i2c_adapter *adap, in lpc32xx_i2c_set_bus_speed()
|
D | sh_i2c.c | 205 sh_i2c_init(struct i2c_adapter *adap, int speed, int slaveadd) in sh_i2c_init() 239 static int sh_i2c_read(struct i2c_adapter *adap, uint8_t chip, in sh_i2c_read() 257 static int sh_i2c_write(struct i2c_adapter *adap, uint8_t chip, uint addr, in sh_i2c_write() 272 sh_i2c_probe(struct i2c_adapter *adap, u8 dev) in sh_i2c_probe() 279 static unsigned int sh_i2c_set_bus_speed(struct i2c_adapter *adap, in sh_i2c_set_bus_speed()
|
D | ihs_i2c.c | 250 static int ihs_i2c_access(struct i2c_adapter *adap, uchar chip, u8 *addr, in ihs_i2c_access() 360 static void ihs_i2c_init(struct i2c_adapter *adap, int speed, int slaveaddr) in ihs_i2c_init() 372 static int ihs_i2c_probe(struct i2c_adapter *adap, uchar chip) in ihs_i2c_probe() 384 static int ihs_i2c_read(struct i2c_adapter *adap, uchar chip, uint addr, in ihs_i2c_read() 395 static int ihs_i2c_write(struct i2c_adapter *adap, uchar chip, uint addr, in ihs_i2c_write() 406 static unsigned int ihs_i2c_set_bus_speed(struct i2c_adapter *adap, in ihs_i2c_set_bus_speed()
|
D | davinci_i2c.c | 342 static struct i2c_regs *davinci_get_base(struct i2c_adapter *adap) in davinci_get_base() 363 static uint davinci_i2c_setspeed(struct i2c_adapter *adap, uint speed) in davinci_i2c_setspeed() 374 static void davinci_i2c_init(struct i2c_adapter *adap, int speed, in davinci_i2c_init() 385 static int davinci_i2c_read(struct i2c_adapter *adap, uint8_t chip, in davinci_i2c_read() 392 static int davinci_i2c_write(struct i2c_adapter *adap, uint8_t chip, in davinci_i2c_write() 400 static int davinci_i2c_probe_chip(struct i2c_adapter *adap, uint8_t chip) in davinci_i2c_probe_chip()
|
D | soft_i2c.c | 284 static void soft_i2c_init(struct i2c_adapter *adap, int speed, int slaveaddr) in soft_i2c_init() 307 static int soft_i2c_probe(struct i2c_adapter *adap, uint8_t addr) in soft_i2c_probe() 325 static int soft_i2c_read(struct i2c_adapter *adap, uchar chip, uint addr, in soft_i2c_read() 400 static int soft_i2c_write(struct i2c_adapter *adap, uchar chip, uint addr, in soft_i2c_write()
|
D | designware_i2c.c | 418 static struct i2c_regs *i2c_get_base(struct i2c_adapter *adap) in i2c_get_base() 442 static unsigned int dw_i2c_set_bus_speed(struct i2c_adapter *adap, in dw_i2c_set_bus_speed() 449 static void dw_i2c_init(struct i2c_adapter *adap, int speed, int slaveaddr) in dw_i2c_init() 454 static int dw_i2c_read(struct i2c_adapter *adap, u8 dev, uint addr, in dw_i2c_read() 460 static int dw_i2c_write(struct i2c_adapter *adap, u8 dev, uint addr, in dw_i2c_write() 467 static int dw_i2c_probe(struct i2c_adapter *adap, u8 dev) in dw_i2c_probe()
|
D | kona_i2c.c | 621 struct bcm_kona_i2c_dev *kona_get_dev(struct i2c_adapter *adap) in kona_get_dev() 626 static void kona_i2c_init(struct i2c_adapter *adap, int speed, int slaveaddr) in kona_i2c_init() 636 static int kona_i2c_read(struct i2c_adapter *adap, uchar chip, uint addr, in kona_i2c_read() 665 static int kona_i2c_write(struct i2c_adapter *adap, uchar chip, uint addr, in kona_i2c_write() 690 static int kona_i2c_probe(struct i2c_adapter *adap, uchar chip) in kona_i2c_probe() 700 static uint kona_i2c_set_bus_speed(struct i2c_adapter *adap, uint speed) in kona_i2c_set_bus_speed()
|
D | mvtwsi.c | 192 static struct mvtwsi_registers *twsi_get_base(struct i2c_adapter *adap) in twsi_get_base() 684 static void twsi_i2c_init(struct i2c_adapter *adap, int speed, in twsi_i2c_init() 691 static uint twsi_i2c_set_bus_speed(struct i2c_adapter *adap, in twsi_i2c_set_bus_speed() 699 static int twsi_i2c_probe(struct i2c_adapter *adap, uchar chip) in twsi_i2c_probe() 705 static int twsi_i2c_read(struct i2c_adapter *adap, uchar chip, uint addr, in twsi_i2c_read() 720 static int twsi_i2c_write(struct i2c_adapter *adap, uchar chip, uint addr, in twsi_i2c_write()
|
D | fsl_i2c.c | 498 static void fsl_i2c_init(struct i2c_adapter *adap, int speed, int slaveadd) in fsl_i2c_init() 504 static int fsl_i2c_probe_chip(struct i2c_adapter *adap, uchar chip) in fsl_i2c_probe_chip() 509 static int fsl_i2c_read(struct i2c_adapter *adap, u8 chip_addr, uint offset, in fsl_i2c_read() 518 static int fsl_i2c_write(struct i2c_adapter *adap, u8 chip_addr, uint offset, in fsl_i2c_write() 527 static uint fsl_i2c_set_bus_speed(struct i2c_adapter *adap, uint speed) in fsl_i2c_set_bus_speed()
|
D | mxc_i2c.c | 712 struct mxc_i2c_bus *i2c_get_base(struct i2c_adapter *adap) in i2c_get_base() 717 static int mxc_i2c_read(struct i2c_adapter *adap, uint8_t chip, in mxc_i2c_read() 724 static int mxc_i2c_write(struct i2c_adapter *adap, uint8_t chip, in mxc_i2c_write() 734 static int mxc_i2c_probe(struct i2c_adapter *adap, uint8_t chip) in mxc_i2c_probe() 791 static void mxc_i2c_init(struct i2c_adapter *adap, int speed, int slaveaddr) in mxc_i2c_init() 799 static u32 mxc_i2c_set_bus_speed(struct i2c_adapter *adap, uint speed) in mxc_i2c_set_bus_speed()
|
D | omap24xx_i2c.c | 842 static void __iomem *omap24_get_base(struct i2c_adapter *adap) in omap24_get_base() 883 static int omap24_i2c_read(struct i2c_adapter *adap, uchar chip, uint addr, in omap24_i2c_read() 893 static int omap24_i2c_write(struct i2c_adapter *adap, uchar chip, uint addr, in omap24_i2c_write() 903 static uint omap24_i2c_setspeed(struct i2c_adapter *adap, uint speed) in omap24_i2c_setspeed() 920 static void omap24_i2c_init(struct i2c_adapter *adap, int speed, int slaveadd) in omap24_i2c_init() 929 static int omap24_i2c_probe(struct i2c_adapter *adap, uchar chip) in omap24_i2c_probe()
|
/external/u-boot/include/ |
D | i2c.h | 505 #define CONFIG_SYS_NUM_I2C_BUSES ll_entry_count(struct i2c_adapter, i2c) 519 struct i2c_adapter { struct 520 void (*init)(struct i2c_adapter *adap, int speed, argument 522 int (*probe)(struct i2c_adapter *adap, uint8_t chip); argument 523 int (*read)(struct i2c_adapter *adap, uint8_t chip, argument 526 int (*write)(struct i2c_adapter *adap, uint8_t chip, argument 529 uint (*set_bus_speed)(struct i2c_adapter *adap, argument 556 ll_entry_declare(struct i2c_adapter, _name, i2c) = \ argument 560 struct i2c_adapter *i2c_get_adapter(int index);
|