1. 17 Feb, 2016 4 commits
    • Arnd Bergmann's avatar
      ARM: davinci: make I2C support optional · 8e580411
      Arnd Bergmann authored
      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: default avatarArnd Bergmann <arnd@arndb.de>
      Fixes: 45b146d7 ("ARM: Davinci: Fix I2C build errors")
      Fixes: 22ca4668 ("davinci: kconfig: select at24 eeprom for selected boards")
      Signed-off-by: default avatarSekhar Nori <nsekhar@ti.com>
      8e580411
    • Arnd Bergmann's avatar
      ARM: davinci: DA8xx+DMx combined kernels need PATCH_PHYS_VIRT · ce32c5c5
      Arnd Bergmann authored
      We already forbid that combination when AUTO_ZRELADDR is disabled,
      for the same reason that the two have their RAM at different
      physical addresses as seen from the CPU.
      
      This does the same change for PATCH_PHYS_VIRT: if you disable
      either of the options, Kconfig now enforces that you have to
      pick one or the other SoC family.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarSekhar Nori <nsekhar@ti.com>
      ce32c5c5
    • Arnd Bergmann's avatar
      ARM: davinci: avoid unused mityomapl138_pn_info variable · a32b4fe9
      Arnd Bergmann authored
      The mityomapl138_pn_info structure belongs into the CPU_FREQ support
      that is hidden behind an #ifdef, and causes a harmless warning when
      that support is disabled:
      
      mach-davinci/board-mityomapl138.c:59:28: error: 'mityomapl138_pn_info' defined but not used [-Werror=unused-variable]
      
      This moves the variable definition where it belongs.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarSekhar Nori <nsekhar@ti.com>
      a32b4fe9
    • Arnd Bergmann's avatar
      ARM: davinci: limit DT support to DA850 · 22c7b4a7
      Arnd Bergmann authored
      When da8xx-dt.c is built with onlu DA830 support but not DA850
      support enabled, we get a compiler warning about unused symbols:
      
      arch/arm/mach-davinci/da8xx-dt.c:28:20: warning: 'da8xx_init_irq' defined but not used [-Wunused-function]
       static void __init da8xx_init_irq(void)
      arch/arm/mach-davinci/da8xx-dt.c:33:30: warning: 'da850_auxdata_lookup' defined but not used [-Wunused-variable]
       static struct of_dev_auxdata da850_auxdata_lookup[] __initdata = {
      
      Obviously none of the file make sense for DA830, so we should not
      even attempt this, so we can avoid the warning by ensuring it is
      only built for 850, not 830.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarSekhar Nori <nsekhar@ti.com>
      22c7b4a7
  2. 24 Jan, 2016 36 commits