linux/arch/arm/mach-davinci
Arnd Bergmann 8e58041114 ARM: davinci: make I2C support optional
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 possible)
c) remove all those selects again and get the files to build when
   I2C is disabled.

I would really hate to do a) because adding select statements that
hardwire user-selectable symbols is generally a bad idea. I first
tried b) but then ended up redoing the patch from scratch to approach
c), so we can also remove the other selects.

I checked that CONFIG_I2C is still enabled with davinci_all_defconfig,
so that does not have to change.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 45b146d746 ("ARM: Davinci: Fix I2C build errors")
Fixes: 22ca466847 ("davinci: kconfig: select at24 eeprom for selected boards")
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
2016-02-17 19:20:05 +05:30
..
include/mach ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
aemif.c ARM: davinci: aemif: get rid of davinci-nand driver dependency on aemif 2014-02-23 20:33:18 +05:30
asp.h ARM: davinci: devices-da8xx: Add support for McASP2 on da830 2015-03-18 15:52:05 +05:30
board-da830-evm.c ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
board-da850-evm.c ARM: SoC multiplatform code changes for v4.5 2016-01-20 18:03:56 -08:00
board-dm355-evm.c ARM: SoC non-urgent fixes for v4.5 2016-01-20 17:44:16 -08:00
board-dm355-leopard.c ARM: davinci: fix a problematic usage of WARN() 2015-12-15 15:29:34 +05:30
board-dm365-evm.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
board-dm644x-evm.c ARM: davinci: make I2C support optional 2016-02-17 19:20:05 +05:30
board-dm646x-evm.c ARM: davinci: make I2C support optional 2016-02-17 19:20:05 +05:30
board-mityomapl138.c ARM: davinci: avoid unused mityomapl138_pn_info variable 2016-02-17 19:11:18 +05:30
board-neuros-osd2.c ARM: davinci: Use standard logging styles 2014-11-18 21:06:41 +05:30
board-omapl138-hawk.c ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
board-sffsdr.c misc: (at24) move header to linux/platform_data/ 2013-09-30 06:02:34 +02:00
clock.c ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
clock.h ARM: davinci: clk framework support for enable/disable functionality 2013-04-01 16:54:47 +05:30
common.c ARM: davinci: remove obsoleted init_consistent_dma_size() 2012-11-13 10:13:20 +01:00
cp_intc.c ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
cp_intc.h ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
cpuidle.c ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
cpuidle.h ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
da8xx-dt.c ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
da830.c ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
da850.c ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
davinci.h ARM: davinci: da8xx: fix multiple watchdog device registration 2014-03-06 19:08:29 +05:30
ddr2.h ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
devices-da8xx.c ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
devices.c ARM: davinci: da8xx: fix multiple watchdog device registration 2014-03-06 19:08:29 +05:30
dm355.c ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
dm365.c ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
dm644x.c ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
dm646x.c ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
irq.c
Kconfig ARM: davinci: make I2C support optional 2016-02-17 19:20:05 +05:30
Makefile ARM: davinci: Remove CDCE949 driver 2015-01-20 19:29:58 +05:30
Makefile.boot ARM: davinci: enable da8xx build concurrently with older devices 2014-03-06 19:08:28 +05:30
mux.c ARM: davinci: davinci_cfg_reg cannot be init 2015-02-18 12:20:25 +01:00
mux.h
pm_domain.c arm: davinci: remove boilerplate code and use USE_PM_CLK_RUNTIME_OPS 2015-05-12 23:55:38 +02:00
pm.c ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
psc.c ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
psc.h ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
serial.c ARM: davinci: serial.c: remove unused serial_read_reg() 2015-01-14 15:56:12 +05:30
sleep.S ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
sram.c ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
sram.h ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
time.c ARM/davinci/time: Migrate to new 'set-state' interface 2015-07-17 08:22:48 +05:30
usb.c v3.10 board updates for DaVinci 2013-04-17 23:54:41 -07:00