* [U-Boot] mxc_i2c driver @ 2014-01-14 21:26 York Sun 2014-01-14 23:25 ` Troy Kisky 0 siblings, 1 reply; 3+ messages in thread From: York Sun @ 2014-01-14 21:26 UTC (permalink / raw) To: u-boot Troy, I am trying to use mxc_i2c driver with multiple buses. I didn't figure out how the bases are set. Can you shed some light on this? Thanks, York ^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] mxc_i2c driver 2014-01-14 21:26 [U-Boot] mxc_i2c driver York Sun @ 2014-01-14 23:25 ` Troy Kisky 2014-01-14 23:27 ` York Sun 0 siblings, 1 reply; 3+ messages in thread From: Troy Kisky @ 2014-01-14 23:25 UTC (permalink / raw) To: u-boot On 1/14/2014 2:26 PM, York Sun wrote: > Troy, > > I am trying to use mxc_i2c driver with multiple buses. I didn't figure out how > the bases are set. Can you shed some light on this? > > Thanks, > > York > see board/boundary/nitrogen6x/nitrogen6x.c It calls setup_i2c(0, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info0); setup_i2c(1, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info1); setup_i2c(2, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info2); which is in arch/arm/imx-common/i2c-mxv7.c This file has an array of base addresses static void * const i2c_bases[] = { (void *)I2C1_BASE_ADDR, (void *)I2C2_BASE_ADDR, #ifdef I2C3_BASE_ADDR (void *)I2C3_BASE_ADDR, #endif }; ^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] mxc_i2c driver 2014-01-14 23:25 ` Troy Kisky @ 2014-01-14 23:27 ` York Sun 0 siblings, 0 replies; 3+ messages in thread From: York Sun @ 2014-01-14 23:27 UTC (permalink / raw) To: u-boot On 01/14/2014 03:25 PM, Troy Kisky wrote: > On 1/14/2014 2:26 PM, York Sun wrote: >> Troy, >> >> I am trying to use mxc_i2c driver with multiple buses. I didn't figure out how >> the bases are set. Can you shed some light on this? >> >> Thanks, >> >> York >> > see board/boundary/nitrogen6x/nitrogen6x.c > > It calls > setup_i2c(0, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info0); > setup_i2c(1, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info1); > setup_i2c(2, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info2); > which is in > arch/arm/imx-common/i2c-mxv7.c > > This file has an array of base addresses > > static void * const i2c_bases[] = { > (void *)I2C1_BASE_ADDR, > (void *)I2C2_BASE_ADDR, > #ifdef I2C3_BASE_ADDR > (void *)I2C3_BASE_ADDR, > #endif > }; > Great! Thanks. York ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-01-14 23:27 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-01-14 21:26 [U-Boot] mxc_i2c driver York Sun 2014-01-14 23:25 ` Troy Kisky 2014-01-14 23:27 ` York Sun
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.