diff mbox

ARM: Davinci: Fix I2C build errors

Message ID 20110415123240.GK1611@n2100.arm.linux.org.uk (mailing list archive)
State Accepted
Headers show

Commit Message

Russell King - ARM Linux April 15, 2011, 12:32 p.m. UTC
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.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
---
 arch/arm/mach-davinci/Kconfig |    6 ++++++
 1 file changed, 6 insertions(+)

Comments

Russell King - ARM Linux April 15, 2011, 12:39 p.m. UTC | #1
On Fri, Apr 15, 2011 at 01:32:40PM +0100, Russell King - ARM Linux wrote:
> 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.

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.
Sekhar Nori April 15, 2011, 2:39 p.m. UTC | #2
Hi Russell,

On Fri, Apr 15, 2011 at 18:09:24, Russell King - ARM Linux wrote:
> On Fri, Apr 15, 2011 at 01:32:40PM +0100, Russell King - ARM Linux wrote:
> > 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.
> 
> 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.

Will send out a fix for this.

Thanks,
Sekhar
diff mbox

Patch

diff --git a/arch/arm/mach-davinci/Kconfig b/arch/arm/mach-davinci/Kconfig
index 32f1479..c0deaca 100644
--- a/arch/arm/mach-davinci/Kconfig
+++ b/arch/arm/mach-davinci/Kconfig
@@ -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