1. 04 Jul, 2011 1 commit
    • Janusz Krzysztofik's avatar
      omap: drop __initdata tags from static struct platform_device declarations · 07ad6ab3
      Janusz Krzysztofik authored
      Pointers to statically declared platform device structures which are
      registered with platform_device_register() are then used during run time
      to access these structure members, for example from platform_uevent()
      and much more. Therefore, these structures should never be placed inside
      sections which are dropped after boot. Fix platform devices incorrectly
      tagged with __initdata which happen to exist inside OMAP sub-trees.
      
      This bug has exhibited itself on my ARM/OMAP1 based Amstrad Delta
      videophone after commit 6d3163ce
      
      , "mm:
      check if any page in a pageblock is reserved before marking it
      MIGRATE_RESERVE", resulting in reading from several
      /sys/device/platform/*/uevent files always ending up with segmentation
      faults.
      Signed-off-by: default avatarJanusz Krzysztofik <jkrzyszt@tis.icnet.pl>
      Acked-by: default avatarFelipe Balbi <balbi@ti.com>
      Cc: Varadarajan, Charulatha <charu@ti.com>
      Cc: Jarkko Nikula <jhnikula@gmail.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      07ad6ab3
  2. 01 Jun, 2011 2 commits
    • Jarkko Nikula's avatar
      omap: rx51: Don't power up speaker amplifier at bootup · c0ad4fac
      Jarkko Nikula authored
      
      
      Speaker amplifier is accidentally powered up in early TWL gpio setup. This
      causes a few mA of needless battery current consumption. Without this patch
      the amplifier can be shutdown only by having one active audio playback and
      shutdown cycle to speaker output.
      
      Thanks to Kalle Jokiniemi <kalle.jokiniemi@nokia.com> for noticing the issue.
      Signed-off-by: default avatarJarkko Nikula <jhnikula@gmail.com>
      Cc: Kalle Jokiniemi <kalle.jokiniemi@nokia.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      c0ad4fac
    • Jarkko Nikula's avatar
      omap: rx51: Set regulator V28_A always on · 2827411e
      Jarkko Nikula authored
      
      
      The V28_A domain in Nokia N900 that supplies VDD voltages to TLV320AIC34 and
      TPA6130A2 should not be shutdown. This is because otherwise there will be
      leak from VIO to VDD in TLV320AIC34 and this leak consumes more battery
      current that is saved from keeping V28_A off. With this patch the battery
      current consumption is approximately 1.5 mA lower.
      
      Thanks to Kalle Jokiniemi <kalle.jokiniemi@nokia.com> for noticing the issue.
      Signed-off-by: default avatarJarkko Nikula <jhnikula@gmail.com>
      Cc: Kalle Jokiniemi <kalle.jokiniemi@nokia.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      2827411e
  3. 26 May, 2011 1 commit
  4. 12 May, 2011 1 commit
  5. 03 May, 2011 1 commit
  6. 20 Apr, 2011 1 commit
  7. 11 Mar, 2011 1 commit
  8. 02 Mar, 2011 1 commit
  9. 01 Mar, 2011 1 commit
  10. 25 Feb, 2011 1 commit
    • Jarkko Nikula's avatar
      omap: rx51: Add SI4713 FM transmitter · 589541c0
      Jarkko Nikula authored
      
      
      Add SI4713 FM transmitter supplies, platform data and setup to RX-51/N900.
      It is connected to line output signals of TLV320AIC34 codec A part.
      Driver can be either built-in or a module. It can be tuned with v4l2-ctl
      from ivtv-utils. Following examples illustrate the use of it:
      
      	v4l2-ctl -d /dev/radio0 --set-ctrl=mute=0 (power up)
      	v4l2-ctl -d /dev/radio0 -f 107900 (tune 107.9 MHz)
      
      	v4l2-ctl -d /dev/radio0 --set-ctrl=mute=1 (power down)
      Signed-off-by: default avatarJarkko Nikula <jhnikula@gmail.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      589541c0
  11. 22 Dec, 2010 2 commits
  12. 20 Dec, 2010 3 commits
  13. 02 Dec, 2010 1 commit
  14. 17 Nov, 2010 1 commit
    • Benoit Cousson's avatar
      OMAP: mux: Add support for control module split in several partitions · 112485e9
      Benoit Cousson authored
      
      
      Starting on OMAP4, the pin mux configuration is located in two
      different partitions of the control module (CODE_PAD and WKUP_PAD).
      The first one is inside the core power domain whereas the second
      one is inside the wakeup.
      - Add the capability to add any number of partition during board init
      time depending of Soc partitioning.
      - Add some init flags as well in order to avoid explicit Soc version
      check inside the mux core code.
      - Add a comment with mux0 mode on top of omap_mux/board/<partition>
      if the current mux mode is not the default one.
      
      Thanks to Tony Lindgren <tony@atomide.com> for the following improvements:
      - Add omap_mux_get for getting the partition data so platform level
      device code can use it.
      - Fix the rx51 board code to use the new API.
      - Do not store the partition for each mux entry. Look up the partition
      for debugfs instead.
      
      Thanks to Dan Murphy <dmurphy@ti.com> for testing on OMAP4 and reporting
      a couple of bugs.
      Thanks to Anand Gadiyar <gadiyar@ti.com> for testing on OMAP3 zoom and
      bug report.
      Signed-off-by: default avatarBenoit Cousson <b-cousson@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      Tested-by: default avatarMurphy Dan <dmurphy@ti.com>
      Cc: Paul Walmsley <paul@pwsan.com>
      Cc: Kevin Hilman <khilman@deeprootsystems.com>
      Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
      Cc: Anand Gadiyar <gadiyar@ti.com>
      112485e9
  15. 08 Oct, 2010 2 commits
    • Manjunath Kondaiah G's avatar
      OMAP3: Keypad: Fix incorrect type initializer · bead4375
      Manjunath Kondaiah G authored
      
      
      The keypad matrix variable declaration is not matching
      with structure variable keymap declared in keypad_matrix.h.
      
      Due to this, following sparse warnings are generated with omap3_defconfig.
      
      arch/arm/mach-omap2/board-devkit8000.c:223:14: warning: incorrect type in initializer (different signedness)
      arch/arm/mach-omap2/board-devkit8000.c:223:14:    expected unsigned int const [usertype] *keymap
      arch/arm/mach-omap2/board-devkit8000.c:223:14:    got int static [toplevel] *<noident>
      
      arch/arm/mach-omap2/board-ldp.c:107:14: warning: incorrect type in initializer (different signedness)
      arch/arm/mach-omap2/board-ldp.c:107:14:    expected unsigned int const [usertype] *keymap
      arch/arm/mach-omap2/board-ldp.c:107:14:    got int static [toplevel] *<noident>
      
      arch/arm/mach-omap2/board-omap3evm.c:472:14: warning: incorrect type in initializer (different signedness)
      arch/arm/mach-omap2/board-omap3evm.c:472:14:    expected unsigned int const [usertype] *keymap
      arch/arm/mach-omap2/board-omap3evm.c:472:14:    got int static [toplevel] *<noident>
      
      arch/arm/mach-omap2/board-3430sdp.c:114:14: warning: incorrect type in initializer (different signedness)
      arch/arm/mach-omap2/board-3430sdp.c:114:14:    expected unsigned int const [usertype] *keymap
      arch/arm/mach-omap2/board-3430sdp.c:114:14:    got int static [toplevel] *<noident>
      
      arch/arm/mach-omap2/board-rx51-peripherals.c:248:14: warning: incorrect type in initializer (different signedness)
      arch/arm/mach-omap2/board-rx51-peripherals.c:248:14:    expected unsigned int const [usertype] *keymap
      arch/arm/mach-omap2/board-rx51-peripherals.c:248:14:    got int static [toplevel] *<noident>
      
      arch/arm/mach-omap2/board-zoom-peripherals.c:88:14: warning: incorrect type in initializer (different signedness)
      arch/arm/mach-omap2/board-zoom-peripherals.c:88:14:    expected unsigned int const [usertype] *keymap
      arch/arm/mach-omap2/board-zoom-peripherals.c:88:14:    got int static [toplevel] *<noident>
      
      arch/arm/mach-omap2/board-cm-t35.c:568:14: warning: incorrect type in initializer (different signedness)
      arch/arm/mach-omap2/board-cm-t35.c:568:14:    expected unsigned int const [usertype] *keymap
      arch/arm/mach-omap2/board-cm-t35.c:568:14:    got int static [toplevel] *<noident>
      
      arch/arm/mach-omap2/board-omap3stalker.c:415:13: warning: incorrect type in initializer (different signedness)
      arch/arm/mach-omap2/board-omap3stalker.c:415:13:    expected unsigned int const [usertype] *keymap
      arch/arm/mach-omap2/board-omap3stalker.c:415:13:    got int static [toplevel] *<noident>
      
      This patch modifies the variable keymap declaration as per declaration in matrix_keymap structure.
      Signed-off-by: default avatarManjunath Kondaiah G <manjugk@ti.com>
      Cc: linux-input@vger.kernel.org
      Cc: Dmitry Torokhov <dtor@mail.ru>
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: Nishanth Menon <nm@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      bead4375
    • Manjunath Kondaiah G's avatar
      OMAP2plus: Fix static function warnings · 04aeae77
      Manjunath Kondaiah G authored
      
      
      This patch fixes sparse warnings due non declarations of static functions.
      
      arch/arm/mach-omap2/timer-gp.c:115:12: warning: symbol 'omap2_gp_clockevent_set_gptimer' was not declared. Should it be static?
      arch/arm/mach-omap2/powerdomain.c:993:5: warning: symbol 'pwrdm_set_lowpwrstchange' was not declared. Should it be static?
      arch/arm/mach-omap2/board-flash.c:141:8: warning: symbol 'board_nand_init' was not declared. Should it be static?
      arch/arm/mach-omap2/board-n8x0.c:416:6: warning: symbol 'n8x0_mmc_slot1_cover_handler' was not declared. Should it be static?
      arch/arm/mach-omap2/board-n8x0.c:544:13: warning: symbol 'n8x0_mmc_init' was not declared. Should it be static?
      arch/arm/mach-omap2/board-rx51-peripherals.c:902:13: warning: symbol 'rx51_peripherals_init' was not declared. Should it be static?
      arch/arm/mach-omap2/board-rx51-video.c:107:13: warning: symbol 'rx51_video_mem_init' was not declared. Should it be static?
      arch/arm/mach-omap2/board-zoom-debugboard.c:155:12: warning: symbol 'zoom_debugboard_init' was not declared. Should it be static?
      arch/arm/mach-omap2/board-zoom-peripherals.c:280:13: warning: symbol 'zoom_peripherals_init' was not declared. Should it be static?
      arch/arm/mach-omap2/board-igep0020.c:110:13: warning: symbol 'igep2_flash_init' was not declared. Should it be static?
      arch/arm/mach-omap2/board-am3517evm.c:109:6: warning: symbol 'am3517_evm_ethernet_init' was not declared. Should it be static?
      drivers/mtd/onenand/omap2.c:577:5: warning: symbol 'omap2_onenand_rephase' was not declared. Should it be static?
      Signed-off-by: default avatarManjunath Kondaiah G <manjugk@ti.com>
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: Nishanth Menon <nm@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      04aeae77
  16. 27 Sep, 2010 1 commit
  17. 21 Sep, 2010 1 commit
  18. 23 Aug, 2010 1 commit
  19. 20 Aug, 2010 1 commit
  20. 12 Aug, 2010 1 commit
    • Liam Girdwood's avatar
      ASoC: multi-component - ASoC Multi-Component Support · f0fba2ad
      Liam Girdwood authored
      
      
      This patch extends the ASoC API to allow sound cards to have more than one
      CODEC and more than one platform DMA controller. This is achieved by dividing
      some current ASoC structures that contain both driver data and device data into
      structures that only either contain device data or driver data. i.e.
      
       struct snd_soc_codec    --->  struct snd_soc_codec (device data)
                                +->  struct snd_soc_codec_driver (driver data)
      
       struct snd_soc_platform --->  struct snd_soc_platform (device data)
                                +->  struct snd_soc_platform_driver (driver data)
      
       struct snd_soc_dai      --->  struct snd_soc_dai (device data)
                                +->  struct snd_soc_dai_driver (driver data)
      
       struct snd_soc_device   --->  deleted
      
      This now allows ASoC to be more tightly aligned with the Linux driver model and
      also means that every ASoC codec, platform and (platform) DAI is a kernel
      device. ASoC component private data is now stored as device private data.
      
      The ASoC sound card struct snd_soc_card has also been updated to store lists
      of it's components rather than a pointer to a codec and platform. The PCM
      runtime struct soc_pcm_runtime now has pointers to all its components.
      
      This patch adds DAPM support for ASoC multi-component and removes struct
      snd_soc_socdev from DAPM core. All DAPM calls are now made on a card, codec
      or runtime PCM level basis rather than using snd_soc_socdev.
      
      Other notable multi-component changes:-
      
       * Stream operations now de-reference less structures.
       * close_delayed work() now runs on a DAI basis rather than looping all DAIs
         in a card.
       * PM suspend()/resume() operations can now handle N CODECs and Platforms
         per sound card.
       * Added soc_bind_dai_link() to bind the component devices to the sound card.
       * Added soc_dai_link_probe() and soc_dai_link_remove() to probe and remove
         DAI link components.
       * sysfs entries can now be registered per component per card.
       * snd_soc_new_pcms() functionailty rolled into dai_link_probe().
       * snd_soc_register_codec() now does all the codec list and mutex init.
      
      This patch changes the probe() and remove() of the CODEC drivers as follows:-
      
       o Make CODEC driver a platform driver
       o Moved all struct snd_soc_codec list, mutex, etc initialiasation to core.
       o Removed all static codec pointers (drivers now support > 1 codec dev)
       o snd_soc_register_pcms() now done by core.
       o snd_soc_register_dai() folded into snd_soc_register_codec().
      
      CS4270 portions:
      Acked-by: default avatarTimur Tabi <timur@freescale.com>
      
      Some TLV320aic23 and Cirrus platform fixes.
      Signed-off-by: default avatarRyan Mallon <ryan@bluewatersys.com>
      
      TI CODEC and OMAP fixes
      Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@nokia.com>
      Signed-off-by: default avatarJanusz Krzysztofik <jkrzyszt@tis.icnet.pl>
      Signed-off-by: default avatarJarkko Nikula <jhnikula@gmail.com>
      
      Samsung platform and misc fixes :-
      Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
      Signed-off-by: default avatarJoonyoung Shim <jy0922.shim@samsung.com>
      Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
      Reviewed-by: default avatarJassi Brar <jassi.brar@samsung.com>
      Signed-off-by: default avatarSeungwhan Youn <sw.youn@samsung.com>
      
      MPC8610 and PPC fixes.
      Signed-off-by: default avatarTimur Tabi <timur@freescale.com>
      
      i.MX fixes and some core fixes.
      Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
      
      J4740 platform fixes:-
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      
      CC: Tony Lindgren <tony@atomide.com>
      CC: Nicolas Ferre <nicolas.ferre@atmel.com>
      CC: Kevin Hilman <khilman@deeprootsystems.com>
      CC: Sascha Hauer <s.hauer@pengutronix.de>
      CC: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
      CC: Kuninori Morimoto <morimoto.kuninori@renesas.com>
      CC: Daniel Gloeckner <dg@emlix.com>
      CC: Manuel Lauss <mano@roarinelk.homelinux.net>
      CC: Mike Frysinger <vapier.adi@gmail.com>
      CC: Arnaud Patard <apatard@mandriva.com>
      CC: Wan ZongShun <mcuos.com@gmail.com>
      Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
      Signed-off-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
      f0fba2ad
  21. 02 Aug, 2010 5 commits
  22. 26 Jul, 2010 1 commit
  23. 20 Jul, 2010 1 commit
    • Dmitry Torokhov's avatar
      Input: twl40300-keypad - fix handling of "all ground" rows · 3fea6026
      Dmitry Torokhov authored
      
      
      The Nokia RX51 board code (arch/arm/mach-omap2/board-rx51-peripherals.c)
      defines a key map for the matrix keypad keyboard. The hardware seems to
      use all of the 8 rows and 8 columns of the keypad, although not all
      possible locations are used.
      
      The TWL4030 supports keypads with at most 8 rows and 8 columns. Most keys
      are defined with a row and column number between 0 and 7, except
      
              KEY(0xff, 2, KEY_F9),
              KEY(0xff, 4, KEY_F10),
              KEY(0xff, 5, KEY_F11),
      
      which represent keycodes that should be emitted when entire row is
      connected to the ground.  since the driver handles this case as if we
      had an extra column in the key matrix. Unfortunately we do not allocate
      enough space and end up owerwriting some random memory.
      Reported-and-tested-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Cc: stable@kernel.org
      Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
      3fea6026
  24. 05 Jul, 2010 1 commit
  25. 20 May, 2010 4 commits
  26. 18 May, 2010 2 commits
  27. 15 Feb, 2010 1 commit