This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

请教个 am335x boot 的问题!!!

公司有个项目,用到了 am335x,在移植TI官网最新boot 时,出了点问题,后来定位到 uboot/drivers/i2c/omap24xx_i2c.c 这个文件的


U_BOOT_I2C_ADAP_COMPLETE(omap24_0, omap24_i2c_init, omap24_i2c_probe,
omap24_i2c_read, omap24_i2c_write, omap24_i2c_setspeed,
CONFIG_SYS_OMAP24_I2C_SPEED,
CONFIG_SYS_OMAP24_I2C_SLAVE,
0)

请问这个 U_BOOT_I2C_ADAP_COMPLETE 宏定义是干什么的?我在boot的源代码里,居然没找到相关定义!!!
另外,我在uboot/configs/am335x_evm_spiboot_defconfig 文件里,CONFIG_CMD_I2C=y这句话也被我注释了,为什么启动时还有对I2C的操作?


先谢过了!!!!