ARM: Davinci: Fix I2C build errors
Subsystems (3)
PATCH 1/1 ARM: Davinci: Fix I2C build errors
Several Davinci platforms select the I2C EEPROM support, but don't select I2C support. This causes I2C EEPROM support to be built into the kernel, but I2C support may not be configured to be built in. This leads to linker errors due to missing I2C symbols.
Arrange for I2C to be selected whenever EEPROM_AT24 is selected.
--- arch/arm/mach-davinci/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+)
arch/arm/mach-davinci/Kconfig +6 -0
@@ -63,6 +63,7 @@ config MACH_DAVINCI_EVM depends on ARCH_DAVINCI_DM644x select MISC_DEVICES select EEPROM_AT24 + select I2C help Configure this option to specify the whether the board used for development is a DM644x EVM
@@ -72,6 +73,7 @@ config MACH_SFFSDR depends on ARCH_DAVINCI_DM644x select MISC_DEVICES select EEPROM_AT24 + select I2C help Say Y here to select the Lyrtech Small Form Factor Software Defined Radio (SFFSDR) board.
@@ -105,6 +107,7 @@ config MACH_DAVINCI_DM6467_EVM select MACH_DAVINCI_DM6467TEVM select MISC_DEVICES select EEPROM_AT24 + select I2C help Configure this option to specify the whether the board used for development is a DM6467 EVM
@@ -118,6 +121,7 @@ config MACH_DAVINCI_DM365_EVM depends on ARCH_DAVINCI_DM365 select MISC_DEVICES select EEPROM_AT24 + select I2C help Configure this option to specify whether the board used for development is a DM365 EVM
@@ -129,6 +133,7 @@ config MACH_DAVINCI_DA830_EVM select GPIO_PCF857X select MISC_DEVICES select EEPROM_AT24 + select I2C help Say Y here to select the TI DA830/OMAP-L137/AM17x Evaluation Module.
@@ -205,6 +210,7 @@ config MACH_MITYOMAPL138 depends on ARCH_DAVINCI_DA850 select MISC_DEVICES select EEPROM_AT24 + select I2C help Say Y here to select the Critical Link MityDSP-L138/MityARM-1808 System on Module. Information on this SoM may be found at
PATCH 1/1 ARM: Davinci: Fix I2C build errors
Quoted 6 lines · Russell King - ARM Linux
Several Davinci platforms select the I2C EEPROM support, but don't select I2C support. This causes I2C EEPROM support to be built into the kernel, but I2C support may not be configured to be built in. This leads to linker errors due to missing I2C symbols.
Arrange for I2C to be selected whenever
EEPROM_AT24is selected.
Although this fixes I2C build errors, it leaves these errors:
arch/arm/mach-davinci/built-in.o: In function `phy_read':include/linux/phy.h:454: undefined reference to mdiobus_read' arch/arm/mach-davinci/built-in.o: In function phy_write':include/linux/phy.h:469: undefined reference to mdiobus_write' arch/arm/mach-davinci/built-in.o: In function davinci_evm_init':arch/arm/mach-davinci/board-dm644x-evm.c:708: undefined reference to `phy_register_fixup_for_uid'
which also look like a configuration problem.
PATCH 1/1 ARM: Davinci: Fix I2C build errors
Hi Russell,
Quoted 10 lines · Russell King - ARM Linux
Quoted 6 lines · Russell King - ARM Linux
Several Davinci platforms select the I2C EEPROM support, but don't select I2C support. This causes I2C EEPROM support to be built into the kernel, but I2C support may not be configured to be built in. This leads to linker errors due to missing I2C symbols.
Arrange for I2C to be selected whenever
EEPROM_AT24is selected.Although this fixes I2C build errors, it leaves these errors:
Quoted 8 lines
arch/arm/mach-davinci/built-in.o: In function `phy_read':include/linux/phy.h:454: undefined reference tomdiobus_read' arch/arm/mach-davinci/built-in.o: In functionphy_write':include/linux/phy.h:469: undefined reference tomdiobus_write' arch/arm/mach-davinci/built-in.o: In functiondavinci_evm_init':arch/arm/mach-davinci/board-dm644x-evm.c:708: undefined reference to `phy_register_fixup_for_uid'which also look like a configuration problem.
Will send out a fix for this.
Thanks,
Sekhar