• Arnd Bergmann's avatar
    ARM: davinci: make I2C support optional · 24f9c786
    Arnd Bergmann authored
    commit 8e580411 upstream.
    
    The davinci platform has tried to get support for the EEPROM right,
    but failed to get a clean build so far. At the moment, we get
    a warning whenever CONFIG_SYSFS is disabled, as that is needed by
    EEPROM_AT24:
    
    warning: (MACH_DAVINCI_EVM && MACH_SFFSDR && MACH_DAVINCI_DM6467_EVM && MACH_DAVINCI_DM365_EVM && MACH_DAVINCI_DA830_EVM && MACH_MITYOMAPL138 && MACH_MINI2440) selects EEPROM_AT24 which has unmet direct dependencies (I2C && SYSFS)
    
    Kevin Hilman initially added the 'select' to ensure that EEPROM_AT24
    is always enabled in machines that really want it for normal operation
    (i.e. for reading the MAC address). This broke when I2C was disabled,
    and Russell King followed up with another patch to select that as
    well.
    
    I now see that the SYSFS dependency is still missing, which leaves
    us with three options:
    
    a) add 'select SYSFS' in addition to the others
    b) change AT24_EEPPROM to work without sysfs (should be p...
    24f9c786
board-dm644x-evm.c 20.1 KB