Skip to content
  1. Dec 15, 2012
    • Jon Hunter's avatar
      ARM: dts: Add build target for omap4-panda-a4 · 30a6998e
      Jon Hunter authored
      Commit 0d9250c4
      
       (ARM: dts: omap4-panda: Add pinmux configuration for
      HDMI) added a new device-tree source file for Rev A4 of the OMAP4430
      Panda board but it did not add this version to the makefile. Hence,
      add this file to the makefile.
      
      Signed-off-by: default avatarJon Hunter <jon-hunter@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      30a6998e
    • Jon Hunter's avatar
      ARM: dts: OMAP2420: Correct H4 board memory size · d695c82f
      Jon Hunter authored
      
      
      The system memory node for the OMAP2420 H4 was incorrectly defined as
      start address followed by end address, instead of start address and
      size. No noticable side-effects were observed but fix this for
      correctness.
      
      Signed-off-by: default avatarJon Hunter <jon-hunter@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      d695c82f
    • Roger Quadros's avatar
      mfd: omap-usb-host: get rid of cpu_is_omap..() macros · 63b68901
      Roger Quadros authored
      
      
      Instead of using cpu_is_omap..() macros in the device driver we
      rely on information provided in the platform data.
      
      The only information we need is whether the USB Host module has
      a single ULPI bypass control bit for all ports or individual bypass
      control bits for each port. OMAP3 REV2.1 and earlier have the former.
      
      Signed-off-by: default avatarRoger Quadros <rogerq@ti.com>
      Acked-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
      [tony@atomide.com: updated to remove plat/cpu.h]
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      63b68901
    • Jon Hunter's avatar
      ARM: OMAP: Remove debug-devices.c · 657b9dee
      Jon Hunter authored
      
      
      The OMAP2420 H4 board was the only board using the
      plat-omap/debug-devices.c code for configuring ethernet support. Now
      that OMAP2420 H4 has been migrated to use the generic gpmc code for
      configuring ethernet support, the debug-devices.c file is no longer
      used and so remove it and its header file.
      
      Signed-off-by: default avatarJon Hunter <jon-hunter@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      657b9dee
    • Jon Hunter's avatar
      ARM: OMAP2420: Fix ethernet support for OMAP2420 H4 · 86c35960
      Jon Hunter authored
      Ethernet is not currently working on the OMAP2420 H4 board. In commit
      f6049312
      
       (ARM: OMAP: abstract debug card setup (smc, leds)) the function
      h4_init_smc91x() that initialised the ethernet controller was renamed to
      h4_init_debug() but was never called when initialising the board.
      
      Adding a call to h4_init_debug() fixes ethernet support, however,
      instead of using the legacy H4 code migrate the H4 to use the
      gpmc_smc91x_init() function instead and remove the legacy H4 code.
      
      Signed-off-by: default avatarJon Hunter <jon-hunter@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      86c35960
    • Oleg Matcovschi's avatar
      OMAP2+: mux: Fixed gpio mux mode analysis · 421e8450
      Oleg Matcovschi authored
      
      
      OMAP_MODE_GPIO() macro verified only OMAP_MUX_MODE4.
      It is not correct for following platforms:
          2430 - gpio mux mode 3
          44xx - gpio mux mode 3
          54xx - gpio mux mode 6
      
      Patch reserves first 3 bits in partition flags for storing gpio mux
      mode in same format as stored in control pad register.
      Modified OMAP_MODE_GPIO() macro to handle all possible cases of gpio mux mode.
      Modified omap_mux_init() flags of omap34xx to include OMAP_MUX_GPIO_IN_MODE4.
      
      Signed-off-by: default avatarOleg Matcovschi <oleg.matcovschi@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      421e8450
    • Tomi Valkeinen's avatar
      OMAP: board-files: fix i2c_bus for tfp410 · ca2e16fa
      Tomi Valkeinen authored
      The i2c handling in tfp410 driver, which handles converting parallel RGB
      to DVI, was changed in 958f2717
      
      
      (OMAPDSS: TFP410: pdata rewrite). The patch changed what value the
      driver considers as invalid/undefined.  Before the patch, 0 was the
      invalid value, but as 0 is a valid bus number, the patch changed this to
      -1.
      
      However, the fact was missed that many board files do not define the bus
      number at all, thus it's left to 0. This causes the driver to fail to
      get the i2c bus, exiting from the driver's probe with an error, meaning
      that the DVI output does not work for those boards.
      
      This patch fixes the issue by changing the i2c_bus number field in the
      driver's platform data from u16 to int, and setting the bus number to -1
      in the board files for the boards that did not define the bus. The
      exception is devkit8000, for which the bus is set to 1, which is the
      correct bus for that board.
      
      The bug exists in v3.5+ kernels.
      
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      Reported-by: default avatarThomas Weber <thomas@tomweber.eu>
      Cc: Thomas Weber <thomas@tomweber.eu>
      Cc: <stable@vger.kernel.org> # v3.5+
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      ca2e16fa
    • Vaibhav Hiremath's avatar
      ARM: OMAP2+: Fix sparse warnings in timer.c · bf85f205
      Vaibhav Hiremath authored
      
      
      Sparse generates the following warnings when compiling mach-omap2/timer.c.
      
        CHECK   arch/arm/mach-omap2/timer.c
        arch/arm/mach-omap2/timer.c:193:13: warning: symbol 'omap_dmtimer_init'
        was not declared. Should it be static?
        arch/arm/mach-omap2/timer.c:213:12: warning: symbol
        'omap_dm_timer_get_errata' was not declared. Should it be static?
      
      Add static to function declaration to fix warnings.
      
      Signed-off-by: default avatarVaibhav Hiremath <hvaibhav@ti.com>
      Signed-off-by: default avatarJon Hunter <jon-hunter@ti.com>
      bf85f205
    • Jon Hunter's avatar
      ARM: AM335x: Fix warning in timer.c · e0c3e27c
      Jon Hunter authored
      When compiling the kernel with configuration options ...
      
       # CONFIG_ARCH_OMAP2 is not set
       # CONFIG_ARCH_OMAP3 is not set
       # CONFIG_ARCH_OMAP4 is not set
       # CONFIG_SOC_OMAP5 is not set
       CONFIG_SOC_AM33XX=y
      
       ... the following build warning is seen.
      
        CC      arch/arm/mach-omap2/timer.o
        arch/arm/mach-omap2/timer.c:395:19: warning: ‘omap2_sync32k_clocksource_init’
        	defined but not used [-Wunused-function]
      
      This issue was introduced by commit 6f80b3bb
      
       (ARM: OMAP2+: timer: remove
      CONFIG_OMAP_32K_TIMER) where the omap2_sync32k_clocksource_init() is no
      longer referenced by the timer initialisation function for the AM335x
      device as it has no 32k-sync timer.
      
      Fix this by adding the "__maybe_unused" compiler directive to the
      omap2_sync32k_clocksource_init() function to indicate that this function
      may be used for certain configurations.
      
      Cc: Igor Grinberg <grinberg@compulab.co.il>
      
      Signed-off-by: default avatarJon Hunter <jon-hunter@ti.com>
      e0c3e27c
    • Jon Hunter's avatar
      ARM: OMAP2+: Fix realtime_counter_init warning in timer.c · 34cceb74
      Jon Hunter authored
      In commit fa6d79d2 (ARM: OMAP: Add initialisation for the real-time
      counter), the function realtime_counter_init() was added. However, if
      the kernel configuration option CONFIG_SOC_OMAP5 is not selected then
      the following compiler warning is observed.
      
        CC      arch/arm/mach-omap2/timer.o
        arch/arm/mach-omap2/timer.c:489:20: warning: ‘realtime_counter_init’
        defined but not used [-Wunused-function]
      
      Commit fa6d79d2
      
       also introduced the kernel configuration option
      CONFIG_SOC_HAS_REALTIME_COUNTER. If this option is not selected then the
      a stub function for realtime_counter_init() is defined.
      
      For non-OMAP5 devices, there is no realtime counter and so
      realtime_counter_init() function and stub function are not used for
      these devices. Therefore, fix this warning by only allowing the kernel
      configuration option CONFIG_SOC_HAS_REALTIME_COUNTER to be enabled for
      OMAP5 devices.
      
      Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
      
      Reported-by: default avatarTony Lindgren <tony@atomide.com>
      Signed-off-by: default avatarJon Hunter <jon-hunter@ti.com>
      Acked-by Santosh Shilimkar <santosh.shilimkar@ti.com>
      34cceb74
  2. Dec 12, 2012
  3. Dec 11, 2012
  4. Dec 07, 2012
  5. Dec 04, 2012
  6. Dec 03, 2012
  7. Dec 02, 2012
  8. Dec 01, 2012
    • Josh Cartwright's avatar
      ARM: sunxi: add missing include for mdelay() · 5e51651d
      Josh Cartwright authored
      
      
        CC      arch/arm/mach-sunxi/sunxi.o
      ./arch/arm/mach-sunxi/sunxi.c: In function 'sunxi_restart':
      ./arch/arm/mach-sunxi/sunxi.c:55:3: error: implicit declaration of function 'mdelay' [-Werror=implicit-function-declaration]
      
      Signed-off-by: default avatarJosh Cartwright <josh.cartwright@ni.com>
      Acked-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      5e51651d
    • Tony Lindgren's avatar
      ARM: OMAP: Move plat-omap/dma-omap.h to include/linux/omap-dma.h · 45c3eb7d
      Tony Lindgren authored
      Based on earlier discussions[1] we attempted to find a suitable
      location for the omap DMA header in commit 2b6c4e73 (ARM: OMAP:
      DMA: Move plat/dma.h to plat-omap/dma-omap.h) until the conversion
      to dmaengine is complete.
      
      Unfortunately that was before I was able to try to test compile
      of the ARM multiplatform builds for omap2+, and the end result
      was not very good.
      
      So I'm creating yet another all over the place patch to cut the
      last dependency for building omap2+ for ARM multiplatform. After
      this, we have finally removed the driver dependencies to the
      arch/arm code, except for few drivers that are being worked on.
      
      The other option was to make the <plat-omap/dma-omap.h> path
      to work, but we'd have to add some new header directory to for
      multiplatform builds.
      
      Or we would have to manually include arch/arm/plat-omap/include
      again from arch/arm/Makefile for omap2+.
      
      Neither of these alternatives sound appealing as they will
      likely lead addition of various other headers exposed to the
      drivers, which we want to avoid for the multiplatform kernels.
      
      Since we already have a minimal include/linux/omap-dma.h,
      let's just use that instead and add a note to it to not
      use the custom omap DMA functions any longer where possible.
      
      Note that converting omap DMA to dmaengine depends on
      dmaengine supporting automatically incrementing the FIFO
      address at the device end, and converting all the remaining
      legacy drivers. So it's going to be few more merge windows.
      
      [1] https://patchwork.kernel.org/patch/1519591/#
      
      
      
      cc: Russell King <linux@arm.linux.org.uk>
      cc: Kevin Hilman <khilman@ti.com>
      cc: "Benoît Cousson" <b-cousson@ti.com>
      cc: Herbert Xu <herbert@gondor.apana.org.au>
      cc: "David S. Miller" <davem@davemloft.net>
      cc: Vinod Koul <vinod.koul@intel.com>
      cc: Dan Williams <djbw@fb.com>
      cc: Mauro Carvalho Chehab <mchehab@infradead.org>
      cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
      cc: David Woodhouse <dwmw2@infradead.org>
      cc: Kyungmin Park <kyungmin.park@samsung.com>
      cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
      cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
      cc: Hans Verkuil <hans.verkuil@cisco.com>
      cc: Vaibhav Hiremath <hvaibhav@ti.com>
      cc: Lokesh Vutla <lokeshvutla@ti.com>
      cc: Rusty Russell <rusty@rustcorp.com.au>
      cc: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
      cc: Afzal Mohammed <afzal@ti.com>
      cc: linux-crypto@vger.kernel.org
      cc: linux-media@vger.kernel.org
      cc: linux-mtd@lists.infradead.org
      cc: linux-usb@vger.kernel.org
      cc: linux-fbdev@vger.kernel.org
      Acked-by: default avatarFelipe Balbi <balbi@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      45c3eb7d
  9. Nov 30, 2012
    • Randy Dunlap's avatar
      Fix build when CONFIG_W1_MASTER_GPIO=m b exporting "allnodes" · 465aac6d
      Randy Dunlap authored
      
      
      ERROR: "allnodes" [drivers/w1/masters/w1-gpio.ko] undefined!
      
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      [grant.likely: allnodes is too generic; rename to of_allnodes]
      Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
      Cc: Ville Syrjala <syrjala@sci.fi>
      465aac6d
    • Olof Johansson's avatar
      ARM: omap: fix typo on timer cleanup · 73f14f6d
      Olof Johansson authored
      
      
      Fix 32 vs 32k typo:
      
      arch/arm/mach-omap2/timer.c: In function 'omap4_local_timer_init':
      arch/arm/mach-omap2/timer.c:633:2: error: implicit declaration of function 'omap4_sync32_timer_init' [-Werror=implicit-function-declaration]
      arch/arm/mach-omap2/timer.c: At top level:
      arch/arm/mach-omap2/timer.c:610:2: warning: 'omap4_sync32k_timer_init' defined but not used [-Wunused-function]
      
      Also, mark the omap4_local_timer_init() stub as __init (and take off
      the explicit inline and let the compiler do the work instead).
      
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Igor Grinberg <grinberg@compulab.co.il>
      73f14f6d
  10. Nov 29, 2012
  11. Nov 28, 2012