1. 31 10月, 2016 1 次提交
  2. 26 10月, 2016 4 次提交
  3. 23 8月, 2016 1 次提交
    • K
      ARM: davinci: da850: Add ti-aemif lookup for clock matching · 8f899b4e
      Karl Beldan 提交于
      The davinci boards don't have their clocks in DT yet and getting a clock
      will fail, unless registering them as clk_lookups. This registers the
      aemif clock for the ti-aemif memory driver.
      
      The current aemif lookup entry resolving to the same clock:
          'CLK(NULL,               "aemif",        &aemif_clk)'
      is currently used by davinci_nand and remains for non-DT and backward
      compatibility.
      
      Currently the davinci boards only configure the AEMIF in case of non-DT
      boot, via some code in mach-davinci.
      This change will allow DT-based davinci platforms to do the same, via
      the ti-aemif memory driver code.
      Signed-off-by: NKarl Beldan <kbeldan@baylibre.com>
      [nsekhar@ti.com: reworded commit message]
      Signed-off-by: NSekhar Nori <nsekhar@ti.com>
      8f899b4e
  4. 09 8月, 2016 1 次提交
    • K
      ARM: dts: da850: Add basic DTS for the LCDK · 44524a01
      Karl Beldan 提交于
      The LCDK is the successor to the late Hawkboard.
      Among the differences are the flash (16bits vs 8bits) and some pins
      (MMC, LEDs, buttons, some external connectors), however the main
      components remain the same (eth. phy, audio codec, video decoder and
      DAC) except for the main PMIC, different and hard-wired on the LCDK (the
      LDOs and DCDCs are always on).
      A DT-only boot with this addition gives functional UART, reboot via
      watchdog, RTC, ethernet and MMC (I added the CD GPIO for the MMC
      although davinci_mmc doesn't call the OF facilities of mmc core).
      
      Cc: Sekhar Nori <nsekhar@ti.com>
      Tested-by: NKevin Hilman <khilman@baylibre.com>
      Signed-off-by: NKarl Beldan <kbeldan@baylibre.com>
      Signed-off-by: NSekhar Nori <nsekhar@ti.com>
      44524a01
  5. 14 7月, 2016 1 次提交
  6. 27 6月, 2016 1 次提交
  7. 24 6月, 2016 1 次提交
  8. 10 6月, 2016 1 次提交
  9. 02 5月, 2016 1 次提交
  10. 30 4月, 2016 1 次提交
    • A
      ARM: davinci: only use NVMEM when available · 04b9665b
      Arnd Bergmann 提交于
      The davinci platform contains code that calls into the nvmem
      subsystem, but that might be a loadable module, causing a
      link error:
      
      arch/arm/mach-davinci/built-in.o: In function `davinci_get_mac_addr':
      :(.text+0x1088): undefined reference to `nvmem_device_read'
      arch/arm/mach-davinci/built-in.o: In function `read_factory_config':
      :(.text+0x214c): undefined reference to `nvmem_device_read'
      
      Also, when NVMEM is completely disabled, the functions fail with
      nonobvious error messages.
      
      This ensures we only call the API functions when the code is actually
      reachable from the board file, and otherwise prints a unique log
      message.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: bec3c11b ("misc: at24: replace memory_accessor with nvmem_device_read")
      Signed-off-by: NSekhar Nori <nsekhar@ti.com>
      Signed-off-by: NKevin Hilman <khilman@baylibre.com>
      04b9665b
  11. 27 4月, 2016 2 次提交
  12. 25 4月, 2016 1 次提交
  13. 14 4月, 2016 7 次提交
  14. 02 3月, 2016 1 次提交
  15. 23 2月, 2016 1 次提交
    • A
      ARM: 8532/1: uncompress: mark putc as inline · 4d2b7d4c
      Arnd Bergmann 提交于
      When CONFIG_DEBUG_ICEDCC is set, we don't use the platform
      specific putc() function, but use icedcc_putc() instead, so
      putc is unused and causes a compile time warning:
      
      In file included from ../arch/arm/boot/compressed/misc.c:28:0:
      arch/arm/mach-rpc/include/mach/uncompress.h:79:13: warning: 'putc' defined but not used [-Wunused-function]
      arch/arm/mach-w90x900/include/mach/uncompress.h:30:13: warning: 'putc' defined but not used [-Wunused-function]
      
      On most platforms, this does not happen, because putc is defined
      as 'static inline' so the compiler will automatically drop it
      when it's unused.
      
      This changes the remaining seven platforms to behave the same way.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      4d2b7d4c
  16. 22 2月, 2016 5 次提交
  17. 17 2月, 2016 4 次提交
    • A
      ARM: davinci: make I2C support optional · 8e580411
      Arnd Bergmann 提交于
      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: NArnd 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: NSekhar Nori <nsekhar@ti.com>
      8e580411
    • A
      ARM: davinci: DA8xx+DMx combined kernels need PATCH_PHYS_VIRT · ce32c5c5
      Arnd Bergmann 提交于
      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: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NSekhar Nori <nsekhar@ti.com>
      ce32c5c5
    • A
      ARM: davinci: avoid unused mityomapl138_pn_info variable · a32b4fe9
      Arnd Bergmann 提交于
      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: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NSekhar Nori <nsekhar@ti.com>
      a32b4fe9
    • A
      ARM: davinci: limit DT support to DA850 · 22c7b4a7
      Arnd Bergmann 提交于
      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: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NSekhar Nori <nsekhar@ti.com>
      22c7b4a7
  18. 15 12月, 2015 2 次提交
  19. 02 12月, 2015 1 次提交
  20. 17 11月, 2015 1 次提交
    • M
      [media] include/media: split I2C headers from V4L2 core · b5dcee22
      Mauro Carvalho Chehab 提交于
      Currently, include/media is messy, as it contains both the V4L2 core
      headers and some driver-specific headers on the same place. That makes
      harder to identify what core headers should be documented and what
      headers belong to I2C drivers that are included only by bridge/main
      drivers that would require the functions provided by them.
      
      Let's move those i2c specific files to its own subdirectory.
      
      The files to move were produced via the following script:
      	mkdir include/media/i2c
      	(cd include/media; for i in *.h; do n=`echo $i|sed s/.h$/.c/`; if [ -e ../../drivers/media/i2c/$n ]; then echo $i; git mv $i i2c/; fi; done)
      	(cd include/media; for i in *.h; do n=`echo $i|sed s/.h$/.c/`; if [ -e ../../drivers/media/*/i2c/$n ]; then echo $i; git mv $i i2c/; fi; done)
      	for i in include/media/*.h; do n=`basename $i`;  (for j in $(git grep -l $n); do dirname $j; done)|sort|uniq|grep -ve '^.$' > list; num=$(wc -l list|cut -d' ' -f1); if [ $num == 1 ]; then if [ "`grep i2c list`" != "" ]; then git mv $i include/media/i2c; fi; fi; done
      
      And the references corrected via this script:
          MAIN_DIR="media/"
          PREV_DIR="media/"
          DIRS="i2c/"
      
          echo "Checking affected files" >&2
          for i in $DIRS; do
      	for j in $(find include/$MAIN_DIR/$i -type f -name '*.h'); do
      		 n=`basename $j`
      		git grep -l $n
      	done
          done|sort|uniq >files && (
      	echo "Handling files..." >&2;
      	echo "for i in \$(cat files|grep -v Documentation); do cat \$i | \\";
      	(
      		cd include/$MAIN_DIR;
      		for j in $DIRS; do
      			for i in $(ls $j); do
      				echo "perl -ne 's,(include [\\\"\\<])$PREV_DIR($i)([\\\"\\>]),\1$MAIN_DIR$j\2\3,; print \$_' |\\";
      			done;
      		done;
      		echo "cat > a && mv a \$i; done";
      	);
      	echo "Handling documentation..." >&2;
      	echo "for i in MAINTAINERS \$(cat files); do cat \$i | \\";
      	(
      		cd include/$MAIN_DIR;
      		for j in $DIRS; do
      			for i in $(ls $j); do
      				echo "  perl -ne 's,include/$PREV_DIR($i)\b,include/$MAIN_DIR$j\1,; print \$_' |\\";
      			done;
      		done;
      		echo "cat > a && mv a \$i; done"
      	);
          ) >script && . ./script
      
      Merged Sakari Ailus patch that moves smiapp.h to include/media/i2c.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      b5dcee22
  21. 14 10月, 2015 2 次提交
反馈
建议
客服 返回
顶部