pandora-kernel.git
16 years agoMerge for-next
Tony Lindgren [Thu, 12 Nov 2009 02:50:32 +0000 (18:50 -0800)]
Merge for-next

Merge branch 'for-next' into tmp-rebuild-1257994230

16 years agoMerge omap-testing
Tony Lindgren [Thu, 12 Nov 2009 02:50:31 +0000 (18:50 -0800)]
Merge omap-testing

Merge branch 'omap-testing' into tmp-rebuild-1257994230

16 years agoomap3: evm: make HSMMC driver built-in
Sriram [Fri, 30 Oct 2009 05:46:46 +0000 (05:46 +0000)]
omap3: evm: make HSMMC driver built-in

For ease of use it is preferrable to build in HSMMC driver
rather than build it as kernel module. This patches updates
default configuration for omap3evm to reflect this change.

Signed-off-by: Sriramakrishnan <srk@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap3: HSMMC2 8-bit mux configuration
Madhu [Wed, 21 Oct 2009 20:49:24 +0000 (16:49 -0400)]
omap3: HSMMC2 8-bit mux configuration

Add support for omap hsmmc2 8-bit mux configuration.

Signed-off-by: Madhusudhan Chikkature <madhu.cr@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap3630: Set omap3630 MMC1 I/O speed to 52Mhz
Madhu [Tue, 27 Oct 2009 21:44:09 +0000 (17:44 -0400)]
omap3630: Set omap3630 MMC1 I/O speed to 52Mhz

The speed ctrl bit for MMC I/O is part of CONTROL_PROG_IO1 register
in omap3630.This patch sets it up accordingly.

Signed-off-by: Madhusudhan Chikkature <madhu.cr@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap3630: Configure HSMMC1 to 4-bit
Madhu [Wed, 21 Oct 2009 20:32:49 +0000 (16:32 -0400)]
omap3630: Configure HSMMC1 to 4-bit

The HSMMC1 controller on omap3630 supprts only 4-bit mode. If cpu
is 3630 configure HSMMC1 wires to 4-bit.

Signed-off-by: Madhusudhan Chikkature <madhu.cr@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap3630: Add HSMMC related checks
Madhu [Wed, 21 Oct 2009 20:16:31 +0000 (16:16 -0400)]
omap3630: Add HSMMC related checks

Change the cpu_is_omap3430() check to cpu_is_omap34xx() to allow HSMMC1/2
mux configuration for omap3630.

Signed-off-by: Madhusudhan Chikkature <madhu.cr@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap: 3630sdp: defconfig creation
vikram pandita [Wed, 11 Nov 2009 23:41:36 +0000 (23:41 +0000)]
omap: 3630sdp: defconfig creation

Create 3630sdp defconfig file

Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap: zoom3: defconfig creation
vikram pandita [Wed, 11 Nov 2009 23:41:35 +0000 (23:41 +0000)]
omap: zoom3: defconfig creation

Create zoom3 defconfig file

Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap: zoom2: update defconfig for LL_DEBUG_NONE
vikram pandita [Wed, 11 Nov 2009 23:41:34 +0000 (23:41 +0000)]
omap: zoom2: update defconfig for LL_DEBUG_NONE

Update DEBUG_LL for zoom2 board as CONFIG_OMAP_LL_DEBUG_NONE

Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap: 3630sdp: introduce 3630 sdp board support
vikram pandita [Wed, 11 Nov 2009 23:41:33 +0000 (23:41 +0000)]
omap: 3630sdp: introduce 3630 sdp board support

Add 3630SDP board support

The board shares the same peripherals as a zoom2 main.
So reuse the peripheral file of zoom platform.

Peripheral    zoom2    zoom3  sdp3630
---------------------------------------
Ethernet smsc smsc smc
NOR n/a     n/a B
Onenand    n/a     n/a B
HDMI A A B (persent on different i2c)
NAND A A A (same nand)
SDRAM A A A (same sdram)
Keypad A A A (same twl)
Camera A A A (same sensor can be mounted)
LCD Display A A A (same wvga display)
OPPs A A A (same chip feature)
Audio A A A (same audio via twl5030)

OMAP3630 details can be found here:
http://focus.ti.com/general/docs/wtbu/wtbuproductcontent.tsp?templateId=6123&navigationId=12836&contentId=52606

Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap: zoom3: introduce zoom3 board support
vikram pandita [Wed, 11 Nov 2009 23:41:32 +0000 (23:41 +0000)]
omap: zoom3: introduce zoom3 board support

Zoom3 is the next versoin of Zoom2 board.
There has been a silicon update from zoom2 to zoom3.
        Zoom2 has OMAP34xx
        Zoom3 has OMAP3630 [1]
Zoom3 = OMAP3630 SOM board [2] + same zoom2 main board [3] + same debugboard

Zoom3 has a SDRAM part from Hynix
Zoom2 had SDRAM part from micron

Hynix memory timings are contributed by:
Chalhoub, Nicole and Bour, Vincent

Reuse the zoom2 files as much for zoom3, as at board level,
there is no change at all.

References: (courtesy Nishant Menon)
[1] OMAP3630
http://focus.ti.com/general/docs/wtbu/wtbuproductcontent.tsp?templateId=6123&navigationId=12836&contentId=52606

[2] SOM boards
http://logicpd.com/products/system-modules/texas-instruments-omap35x-som-lv

[3] Zoom2 boards
http://logicpd.com/products/development-kits/texas-instruments-zoom%E2%84%A2-omap34x-ii-mdp
OMAP3630:

Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
Cc: Chalhoub, Nicole <n-chalhoub@ti.com>
Cc: Bour, Vincent <v-bour@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap: zoom: drop i2c-1 speed to 2400
vikram pandita [Wed, 11 Nov 2009 23:41:31 +0000 (23:41 +0000)]
omap: zoom: drop i2c-1 speed to 2400

The I2C-1 bus frequency on zoom2/zoom3/sdp3630 should be 2.4 MHz.
The speed is limited by TWL5030/GAIA; a higher speed could lead to errors
on the interface.

The maximum I2C speed depends on the system clock for GAIA:
2.2 MHz (sys-clk = 19.2 MHz)
2.4 MHz (sys-clk = 26 MHz)
2.9 MHz (sys-clk = 38.4 MHz)

For Zoom2/Zoom3/SDP3630 the system clock is 26Mhz
and hence choose 2.4Mhz for I2C1 bus speed

Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap: zoom: rename zoom2 name to generic zoom
vikram pandita [Wed, 11 Nov 2009 23:41:30 +0000 (23:41 +0000)]
omap: zoom: rename zoom2 name to generic zoom

Replace zoom2 with zoom name in board-zoom-peripherals.c file
This file has functions reused for boards: Zoom2/Zoom3/sdp3630.
Hence have all functions commonly named as zoom

Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap: zoom2: split board file for software reuse
vikram pandita [Wed, 11 Nov 2009 23:41:29 +0000 (23:41 +0000)]
omap: zoom2: split board file for software reuse

Split zoom2 board file into:
base board file and a board-zoom-peripherals.c file

that way the same peripherals file can be reused for: zoom3 and sdp3630

Following list shows the commonality across the three platforms and hence the
case for software reuse:

Peripheral    zoom2    zoom3  sdp3630
---------------------------------------
Ethernet        smsc    smsc    smc
NOR             n/a     n/a     B
Onenand         n/a     n/a     B
HDMI            A       A       B (present on different i2c)
NAND            A       A       A (same nand)
SDRAM           A       A       A (same sdram)
Keypad          A       A       A (same twl)
Camera          A       A       A (same sensor can be mounted)
LCD Display     A       A       A (same wvga display)
OPPs            A       A       A (same chip feature)
Audio           A       A       A (same audio via twl5030)

Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap: Add platform init code for EHCI driver
Felipe Balbi [Wed, 11 Nov 2009 21:32:33 +0000 (13:32 -0800)]
omap: Add platform init code for EHCI driver

Add platform init code for EHCI driver.

Various fixes to the original patch by Ajay Kumar Gupta <ajay.gupta@ti.com>
and Anand Gadiyar <gadiyar@ti.com>.

Overo support added by Olof Johansson <olof@lixom.net>
Beagle support added by Koen Kooi <koen@beagleboard.org>
CM-T32 support added by Mike Rapoport <mike@compulab.co.il>

Signed-off-by: Signed-off-by: Olof Johansson <olof@lixom.net>
Acked-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Koen Kooi <koen@beagleboard.org>
Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap: update plat/usb.h to allow ehci driver to build
Anand Gadiyar [Wed, 11 Nov 2009 21:32:33 +0000 (13:32 -0800)]
omap: update plat/usb.h to allow ehci driver to build

Add missing declarations to allow the recently introduced
ehci-omap driver to build on OMAP3

Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Cc: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
16 years agoomap3: Add CompuLab CM-T35 defconfig
Mike Rapoport [Wed, 11 Nov 2009 21:32:32 +0000 (13:32 -0800)]
omap3: Add CompuLab CM-T35 defconfig

Add CompuLab CM-T35 defconfig

Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap3: Add CompuLab CM-T35 board support
Mike Rapoport [Wed, 11 Nov 2009 21:32:32 +0000 (13:32 -0800)]
omap3: Add CompuLab CM-T35 board support

This patch adds basic support for CompuLab CM-T35 module.

Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap3: evm: initialize vmmc and vmmc_aux regulators
Mike Rapoport [Wed, 11 Nov 2009 21:32:32 +0000 (13:32 -0800)]
omap3: evm: initialize vmmc and vmmc_aux regulators

Initialize vmmc and vmmc_aux regulators

Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoXXX This needs to be refreshed
Tony Lindgren [Wed, 11 Nov 2009 22:26:49 +0000 (14:26 -0800)]
XXX This needs to be refreshed

16 years agoomap: mailbox: OMAP4 Mailbox Patch to change the IRQ flag from IRQF_DISABLED to IRQF_...
C A Subramaniam [Tue, 8 Sep 2009 17:10:16 +0000 (22:40 +0530)]
omap: mailbox: OMAP4 Mailbox Patch to change the IRQ flag from IRQF_DISABLED to IRQF_SHARED

Currently, this facilitates both the tesla and ducati
sides to request for the same irq through an
omap_mbox_get() call.

Signed-off-by: C A Subramaniam <subramaniam.ca@ti.com>
Signed-off-by: Ramesh Gupta G <grgupta@ti.com>
Acked-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoXXX This needs to be refreshed
Tony Lindgren [Wed, 11 Nov 2009 22:24:31 +0000 (14:24 -0800)]
XXX This needs to be refreshed

16 years agoomap: mailbox: remove unnecessary arg for omap_mbox_msg_send
C A Subramaniam [Tue, 8 Sep 2009 16:05:58 +0000 (21:35 +0530)]
omap: mailbox: remove unnecessary arg for omap_mbox_msg_send

Also removed from tx_data

Signed-off-by: C A Subramaniam <subramaniam.ca@ti.com>
Acked-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap: mailbox: remove disable_/enable_mbox_irq in isr
Hiroshi DOYU [Wed, 2 Sep 2009 14:36:38 +0000 (20:06 +0530)]
omap: mailbox: remove disable_/enable_mbox_irq in isr

No need to handle it in isr, since irq won't happen during isr.

Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap: mailbox: remove class interface
Hiroshi DOYU [Wed, 2 Sep 2009 14:33:19 +0000 (20:03 +0530)]
omap: mailbox: remove class interface

It's not used at present.

Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap: mailbox: remove sequence bit checking
Hiroshi DOYU [Wed, 2 Sep 2009 14:02:42 +0000 (19:32 +0530)]
omap: mailbox: remove sequence bit checking

Any protocol should be handled in the upper layer and mailbox driver
shouldn't care about the contents of messages.

Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap: mailbox: OMAP4 - Add resources and mailbox register base address for OMAP4...
C A Subramaniam [Tue, 8 Sep 2009 09:56:34 +0000 (15:26 +0530)]
omap: mailbox: OMAP4 - Add resources and mailbox register base address for OMAP4 mailbox

This patch adds resource information of mailbox driver for
OMAP4 mailbox module. Register base address also added

Signed-off-by: C A Subramaniam <subramaniam.ca@ti.com>
Signed-off-by: Ramesh Gupta G <grgupta@ti.com>
Acked-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap: mailbox: Add build specific changes to support omap mailbox
C A Subramaniam [Mon, 7 Sep 2009 09:24:20 +0000 (14:54 +0530)]
omap: mailbox: Add build specific changes to support omap mailbox

This patch adds changes to the build related files of mailbox
driver

Signed-off-by: C A Subramaniam <subramaniam.ca@ti.com>
Signed-off-by: Ramesh Gupta G <grgupta@ti.com>
Acked-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap: iovmm: remove cache flush operation
Hiroshi DOYU [Wed, 11 Nov 2009 21:32:31 +0000 (13:32 -0800)]
omap: iovmm: remove cache flush operation

Cache flush operation is handled in the upper client layer and iovmm
modules doesn't have to care about it. This patch will improve some
performance with current camera isp driver.

Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap: iommu: avoid remapping if it's been mapped in MPU side
Hiroshi DOYU [Wed, 11 Nov 2009 21:32:31 +0000 (13:32 -0800)]
omap: iommu: avoid remapping if it's been mapped in MPU side

MPU side (v)-(p) mapping is necessary only if IOVMF_MMIO is set in
"flags".

Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap3: AM35xx: Initialize omap_chip bits
Ranjith Lohithakshan [Wed, 11 Nov 2009 21:32:30 +0000 (13:32 -0800)]
omap3: AM35xx: Initialize omap_chip bits

AM35xx is functionally similar to OMAP3430 ES3.1 from a
powerdomain/clockdomain perspective. This patch initializes the
omap_chip bits on AM35xx for use by powerdomain and clockdomain code.

Signed-off-by: Ranjith Lohithakshan <ranjithl@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap3: AM35xx: Runtime detection of the device
Sanjeev Premi [Wed, 11 Nov 2009 21:32:17 +0000 (13:32 -0800)]
omap3: AM35xx: Runtime detection of the device

Add support to detect AM3505/AM3517 devices at runtime.
Also updates the CPU names printed during boot.

Signed-off-by: Sanjeev Premi <premi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap3: 3630: update is_chip variable
vikram pandita [Wed, 11 Nov 2009 21:31:55 +0000 (13:31 -0800)]
omap3: 3630: update is_chip variable

3630 is getting treated like next rev of 3430
omap_chip.oc variable has to be updated for 3630 version

Otherwise the Core power domain is not getting registered.

This gets used in the registration of power domains in:
"arch/arm/mach-omap2/powerdomains34xx.h"
core_34xx_es3_1_pwrdm
OMAP_CHIP_INIT(CHIP_GE_OMAP3430ES3_1)

Core power doman will get registered for 3630 only when .oc is
populated correctly.

Tested on Zoom3(3630) board

Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
Acked-by: Alexander Shishkin <virtuoso@slind.org>
Acked-by: Ari Kauppi <kauppi@papupata.org>
Acked-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap3: Introduce OMAP3630
Nishanth Menon [Wed, 11 Nov 2009 21:30:59 +0000 (13:30 -0800)]
omap3: Introduce OMAP3630

OMAP3630 is the latest in the family of OMAP3 devices
and among the changes it introduces are:

New OPP levels for new voltage and frequency levels. a bunch of
Bug fixes to various modules feature additions, notably with ISP,
sDMA etc.

Details about the chip is available here:
http://focus.ti.com/general/docs/wtbu/wtbuproductcontent.tsp?templateId=6123&navigationId=12836&contentId=52606

Strategy used:
Strategy to introduce this device into Linux was discussed here:
Ref: http://marc.info/?t=125343303400003&r=1&w=2

Two approaches were available:
a) Consider 3630 generation of devices as a new family of silicon
b) Consider 3630 as an offshoot of 3430 family of devices

As a common consensus, (b) seems to be more valid for 3630 as:
* There are changes which are easily handled by using "FEATURES"
  infrastructure.
  For details how to do this, see thread:
  http://marc.info/?t=125050998500001&r=1&w=2
* Most of existing 34xx infrastructure can be reused(almost 90%+)
- so no ugly if (cpu_is_omap34xx() || cpu_is_omap36xx())
  all over the place
- lesser chance of bugs due to reuse of proven code flow
- 36xx specific handling can still be done where required
  within the existing infrastructure

NOTE:
* If additional 34xx series are added, OMAP3430_REV_ESXXXX can be
  added on top of the existing 3630 ones are renumbered

This patch was tested on SDP3430, boot tested on 3630 platform using
3430sdp defconfig

Signed-off-by: Madhusudhan Chikkature Rajashekar <madhu.cr@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
Cc: Allen Pais <allen.pais@ti.com>
Cc: Anand Gadiyar <gadiyar@ti.com>
Cc: Benoit Cousson <b-cousson@ti.com>
Cc: Felipe Balbi <felipe.balbi@nokia.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Sanjeev Premi <premi@ti.com>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
Cc: Sergio Alberto Aguirre Rodriguez <saaguirre@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap3: Runtime detection of OMAP35x devices
Sanjeev Premi [Wed, 11 Nov 2009 21:30:59 +0000 (13:30 -0800)]
omap3: Runtime detection of OMAP35x devices

Add runtime check for these OMAP35x variations
based on the detected Si features:
  OMAP3503, OMAP3515, OMAP3525 and OMA3530.

Also, delayed the call to pr_info() into actual
variant is detected in omap3_cpuinfo()

Signed-off-by: Sanjeev Premi <premi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap3: Runtime detection of Si features
Sanjeev Premi [Wed, 11 Nov 2009 23:23:16 +0000 (15:23 -0800)]
omap3: Runtime detection of Si features

The OMAP35x family has multiple variants differing
in the HW features. This patch detects these features
at runtime and prints information during the boot.

Since most of the code seemed repetitive, macros
have been used for readability.

Signed-off-by: Sanjeev Premi <premi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap1: omap_udc: Add clocking and disable vbus sense for omap7xx
Cory Maccarrone [Wed, 11 Nov 2009 23:23:15 +0000 (15:23 -0800)]
omap1: omap_udc: Add clocking and disable vbus sense for omap7xx

The l3_ocpi_ck clock is needed on omap7xx processors for USB.
Additionally, bit 8 of the SOFT_REQ_REG needs to be enabled for
the usb_dc_ck on omap7xx, which is a different bit than that
of the omap16xx-defined clock of the same name.

I added a provision for the usb_dc_ck and l3_ocpi_ck clocks as
dc_clk and hhc_clk, respectively, for omap7xx CPUs.  Additionally,
I added a check in machine_without_vbus_sense for all omap7xx
devices, as presently I know of no omap7xx-based devices that
have vbus sense, and it made more sense to me to use a cpu check
here than to spell out each machine one at a time.  Finally, DMA
is disabled for omap7xx, as it causes problems with these chips.

Cc: linux-usb@vger.kernel.org
Cc: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Cory Maccarrone <darkstar6262@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap1: mmc: Add platform init for omap7xx
Cory Maccarrone [Wed, 11 Nov 2009 23:23:13 +0000 (15:23 -0800)]
omap1: mmc: Add platform init for omap7xx

The MMC mux pins normally used by omap chips in devices.c
are different from what is needed by omap7xx chips.  This
change adds a conditional around the mux setup code to
enable the correct mux pins.

The omap730 and omap850 both use a different clock for the "fck"
clock of the MMC interface than other omap processors based on the
SOFT_REQ_REG, pin 12.  The "ick" clock is the same as that used
by other omap processors.

* Added the missing clock definition as mmc3_ck to clock.h
* Added the clock definition to omap_clks in clock.c
* Added CK_7XX to the mmci-omap.0 "ick" clock already in clock.c

With these changes, it is now possible to initialize and use MMC
cards with omap730 and omap850 devices.

Signed-off-by: Cory Maccarrone <darkstar6262@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap: introduce OMAP_LL_DEBUG_NONE DEBUG_LL config
vikram pandita [Wed, 11 Nov 2009 23:23:13 +0000 (15:23 -0800)]
omap: introduce OMAP_LL_DEBUG_NONE DEBUG_LL config

Zoom2/Zoom3 kind of boards do not use omap uarts for console.
These use external debug board for console.

So these boards should not have "Uncompressing Kernel...."
log put on omap uarts.

By interoducing OMAP_LL_DEBUG_NONE option,
unnecessary writes to omap uarts is avoided.

In future, the DEBUG_LL interface will be enhanced
to use external debug board.

Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap: Eliminate OMAP_MAX_NR_PORTS
Alexander Shishkin [Wed, 11 Nov 2009 23:23:11 +0000 (15:23 -0800)]
omap: Eliminate OMAP_MAX_NR_PORTS

Eliminate OMAP_MAX_NR_PORTS

Note that also the null terminator entry for omap1
serial_platform_data needs to be now removed to avoid
oopsing.

Note that mach-omap1 uses struct plat_serial8250_port
array, which requires a null terminator at the end,
and that's why we need to use ARRAY_SIZE - 1. This
is not needed on mach-omap2 as the array used is
struct omap_uart_state, and does not use a null
terminator.

Signed-off-by: Alexander Shishkin <virtuoso@slind.org>
Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoMerge branch 'pm-upstream/pm-cpuidle' of ssh://master.kernel.org/pub/scm/linux/kernel...
Tony Lindgren [Wed, 11 Nov 2009 23:21:24 +0000 (15:21 -0800)]
Merge branch 'pm-upstream/pm-cpuidle' of ssh:///linux/kernel/git/khilman/linux-omap-pm into 7xx-iosplit-plat-merge

16 years agoMerge branch 'pm-upstream/pm-off' of ssh://master.kernel.org/pub/scm/linux/kernel...
Tony Lindgren [Wed, 11 Nov 2009 23:20:53 +0000 (15:20 -0800)]
Merge branch 'pm-upstream/pm-off' of ssh:///linux/kernel/git/khilman/linux-omap-pm into 7xx-iosplit-plat-merge

16 years agoomap3: Decrease cpufreq transition latency
Mike Turquette [Wed, 11 Nov 2009 19:00:38 +0000 (11:00 -0800)]
omap3: Decrease cpufreq transition latency

Adjust OMAP3 frequency transition latency from 10,000,000uS to a more
reasonable 300,000uS.  This causes ondemand and conservative governors to
sample CPU load more often resulting in more responsive behavior.

Tested on Android 2.6.29; using this value and conservative governor, CORE
power consumption on Zoom2 was comparable to the old and unresponsive
10,000,000uS value while UI responsiveness was greatly improved.

Signed-off-by: Mike Turquette <mturquette@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoOMAP3: PM: Added resched check into idle calls
Tero Kristo [Fri, 20 Mar 2009 13:21:02 +0000 (15:21 +0200)]
OMAP3: PM: Added resched check into idle calls

Fixes a bug where scheduling is delayed until next wakeup due to race
condition (e.g. interrupt requests scheduling just before omap_sram_idle
is entered.)

Signed-off-by: Tero Kristo <tero.kristo@nokia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: idle: Remove fclk check for idle loop
Peter 'p2' De Schrijver [Tue, 10 Mar 2009 16:05:19 +0000 (18:05 +0200)]
OMAP3: PM: idle: Remove fclk check for idle loop

This patch removes the check to see if some functional clocks are
still enabled before entering sleep.  This is no longer needed when
using safe state (C1) that keeps CORE active.

Signed-off-by: Peter 'p2' De Schrijver <peter.de-schrijver@nokia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: Use pwrdm_set_next_pwrst instead of set_pwrdm_state in idle loop
Jouni Hogander [Tue, 28 Oct 2008 08:59:05 +0000 (10:59 +0200)]
OMAP3: PM: Use pwrdm_set_next_pwrst instead of set_pwrdm_state in idle loop

It is more efficient to use pwrdm_set_next_pwrst for mpu, core and neon
instead of set_pwrdm_state in idle loop. It is anyway known that those are
active in idle loop. So no need to use set_pwrdm_state.

Signed-off-by: Jouni Hogander <jouni.hogander@nokia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: CPUidle: Start C-state definitions from base 0
Sanjeev Premi [Fri, 13 Mar 2009 16:04:25 +0000 (21:34 +0530)]
OMAP3: PM: CPUidle: Start C-state definitions from base 0

The current definition of C-states starts from base 1.
Whereas, the cpuidle driver uses base 0. This patch
eliminates need for explicit mapping (add/ sbutract)
due to different base values.

Signed-off-by: Sanjeev Premi <premi@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: CPUidle: Add new lower-latency C1 state
Peter 'p2' De Schrijver [Fri, 13 Mar 2009 16:19:16 +0000 (18:19 +0200)]
OMAP3: PM: CPUidle: Add new lower-latency C1 state

This patch introduces a new C state which allows MPU to go to WFI but keeps
the core domain active. This offers a much better wakeup latency (3us vs
10s of us for the current C1) at the cost of a higher power consumption.

Signed-off-by: Peter 'p2' De Schrijver <peter.de-schrijver@nokia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: CPUidle: fix init sequencing
Kalle Jokiniemi [Fri, 26 Sep 2008 08:04:20 +0000 (11:04 +0300)]
OMAP3: PM: CPUidle: fix init sequencing

Previously omap3_idle_init() was called in device_init, while
omap_pm_init() is called at late_initcall. This causes the cpu idle
driver to call omap_sram_idle before it is properly initialized. This
patch fixes the issue by moving omap3_idle_init into omap3_pm_init.

Signed-off-by: Kalle Jokiniemi <ext-kalle.jokiniemi@nokia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: CPUidle: check activity for C2, C3, correct accounting
Kevin Hilman [Wed, 29 Oct 2008 00:32:11 +0000 (17:32 -0700)]
OMAP3: PM: CPUidle: check activity for C2, C3, correct accounting

Use the activity check for states C2 and C3 as well.  This is
primarily to prevent deeper states during UART activity.

Also, if a different state is chosen than the target state, update the
'last_state' accordingly so that CPUidle state accounting is coorect.

Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: CPUidle: obey enable_off_mode flag
Kevin Hilman [Wed, 29 Oct 2008 00:30:07 +0000 (17:30 -0700)]
OMAP3: PM: CPUidle: obey enable_off_mode flag

If 'enable_off_mode' is not set, force powerdomain states to RET
instead of OFF.

Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: CPUidle: support retention and off-mode C-states
Rajendra Nayak [Wed, 8 Oct 2008 12:01:22 +0000 (17:31 +0530)]
OMAP3: PM: CPUidle: support retention and off-mode C-states

This patch adds support and enables state C4(MPU RET + CORE RET)
and MPU OFF states (C3 and C5.)

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: CPUidle: base driver and support for C1-C2
Rajendra Nayak [Wed, 8 Oct 2008 12:00:58 +0000 (17:30 +0530)]
OMAP3: PM: CPUidle: base driver and support for C1-C2

Basic CPUidle driver for OMAP3 with deepest sleep state supported
being MPU CSWR.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: Program SDRC to send self refresh on timeout of AUTO_CNT
Rajendra Nayak [Tue, 9 Jun 2009 17:00:41 +0000 (22:30 +0530)]
OMAP3: PM: Program SDRC to send self refresh on timeout of AUTO_CNT

Due to an OMAP3 errata (1.142), on HS/EMU devices SDRC should be
programed to issue automatic self refresh on timeout
of AUTO_CNT = 1 prior to any transition to OFF mode.
This is needed only on sil rev's ES3.0 and above.

This patch enables the above needed WA in the SDRC power register
value stored in scratchpad, so that ROM code restores this value
in SDRC POWER on the wakeup path.
The original SDRC POWER register value is stored and restored back
in omap_sram_idle() function.

This fixes some random crashes observed while stressing suspend
on HS/EMU devices.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Kalle Jokiniemi <kalle.jokiniemi@digia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: Enable IO-CHAIN wakeup
Kalle Jokiniemi [Thu, 26 Mar 2009 13:59:01 +0000 (15:59 +0200)]
OMAP3: PM: Enable IO-CHAIN wakeup

OMAP 3430 ES3.1 chips have a separate bit for IO daisy-chain
wake up enabling. It needs to be enabled when entering
retention or off state, otherwise waking up might not work
in all situations.

Signed-off-by: Kalle Jokiniemi <kalle.jokiniemi@digia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: MPU and CORE should stay awake if there is CAM domain ACTIVE
Tero Kristo [Thu, 11 Dec 2008 14:46:57 +0000 (16:46 +0200)]
OMAP3: PM: MPU and CORE should stay awake if there is CAM domain ACTIVE

MPU and CORE should stay awake if there is CAM domain ACTIVE. This is
because that module doesn't have wake-up capability.

This should replace the patch that is currently in the PM branch.

Signed-off-by: Jouni Hogander <jouni.hogander@nokia.com>
Signed-off-by: Tero Kristo <tero.kristo@nokia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: Prevent PER from going OFF when CORE is going INA
Tero Kristo [Mon, 1 Dec 2008 11:17:29 +0000 (13:17 +0200)]
OMAP3: PM: Prevent PER from going OFF when CORE is going INA

OMAP3 can't generate wakeups in this state, thus it is not permitted.

Signed-off-by: Tero Kristo <tero.kristo@nokia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: decouple PER and CORE context save and restore
Kevin Hilman [Wed, 5 Nov 2008 04:50:52 +0000 (20:50 -0800)]
OMAP3: PM: decouple PER and CORE context save and restore

Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoPM debug: allow configurable wakeup from suspend on OMAP GPtimer
Kevin Hilman [Tue, 6 Oct 2009 21:30:23 +0000 (14:30 -0700)]
PM debug: allow configurable wakeup from suspend on OMAP GPtimer

Using debugfs, export a configurable wakeup timer to be used to
wakeup system from suspend.

If a non-zero value is written to
/debug/pm_debug/wakeup_timer_seconds, A timer wakeup event will wake
the system and resume after the configured number of seconds.

Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM debug: allow runtime toggle of PM features
Kevin Hilman [Tue, 6 Oct 2009 21:25:09 +0000 (14:25 -0700)]
OMAP3: PM debug: allow runtime toggle of PM features

Allow enable/disable of low-power states during idle.  To
enable low-power idle:

   echo 1 > /debug/pm_debug/sleep_while_idle

 to disable:

   echo 0 > /debug/pm_debug/sleep_while_idle

Also allow enable/disable of OFF-mode.  To enable:

   echo 1 > /debug/pm_debug/enable_off_mode

 to disable:

   echo 0 > /debug/pm_debug/enable_off_mode

Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: Wait for SDRC ready iso a blind delay
Peter 'p2' De Schrijver [Fri, 16 Jan 2009 16:53:48 +0000 (18:53 +0200)]
OMAP3: PM: Wait for SDRC ready iso a blind delay

This patch improves the wakeup SRAM code polling the SDRC to become ready
instead of just waiting for a fixed amount of time.

Signed-off-by: Peter 'p2' De Schrijver <peter.de-schrijver@nokia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoPM: Disable usb host HW save and restore
Kalle Jokiniemi [Thu, 23 Apr 2009 10:58:51 +0000 (13:58 +0300)]
PM: Disable usb host HW save and restore

The hardware SAVEANDRESTORE mechanism seems to leave
USB HOST power domain permanently into active state
after one transition from off to active state.
Disabling for now.

Signed-off-by: Kalle Jokiniemi <ext-kalle.jokiniemi@nokia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: Fix INTC context save/restore
Aaro Koskinen [Thu, 12 Mar 2009 16:12:29 +0000 (18:12 +0200)]
OMAP3: PM: Fix INTC context save/restore

Wrong index was used for ILR.

Signed-off-by: Aaro Koskinen <Aaro.Koskinen@nokia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: SDRC auto-refresh workaround for off-mode
Tero Kristo [Mon, 13 Oct 2008 14:58:50 +0000 (17:58 +0300)]
OMAP3: PM: SDRC auto-refresh workaround for off-mode

Errata: ES3.0, ES3.1 SDRC not sending auto-refresh when OMAP wakes-up
from OFF mode

Signed-off-by: Tero Kristo <tero.kristo@nokia.com>
Signed-off-by: Kalle Jokiniemi <kalle.jokiniemi@digia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP: Store reboot mode in scratchpad on OMAP34xx
Juha Yrjola [Mon, 9 Mar 2009 21:21:01 +0000 (21:21 +0000)]
OMAP: Store reboot mode in scratchpad on OMAP34xx

The reboot mode can be communicated to a bootloader (or the
kernel itself) with a scratchpad register. This functionality
is especially useful, if userspace is allowed to change
the reboot mode.

Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP: PM: Clear DMA channel state after a wakeup
Aaro Koskinen [Wed, 20 May 2009 13:58:30 +0000 (16:58 +0300)]
OMAP: PM: Clear DMA channel state after a wakeup

Clear DMA channel states so that users can assume a known initial
state.

Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: Fix PLL_MOD CLKEN offset in scratchpad
Kalle Jokiniemi [Tue, 12 May 2009 11:02:16 +0000 (14:02 +0300)]
OMAP3: PM: Fix PLL_MOD CLKEN offset in scratchpad

The CM_CLKEN_PLL register saved in scratchpad memory
was wrongly using offset of 0x0004 instead of 0x0000.

The effect of this was that boot ROM code would
restore the wrong value when waking up from off mode.
This wrong value, however, will be overwritten by
prcm context restore. Still, a short period of wrong
clock settings in CM_CLKEN_PLL remained between ROM
code and prcm context restore. This is fixed by the
patch.

Problem reported by: Jouni Hogander <jouni.hogander@nokia.com>

Signed-off-by: Kalle Jokiniemi <kalle.jokiniemi@digia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoARM: OMAP: SMS: save/restore of SMS_SYSCONFIG for off-mode
Kalle Jokiniemi [Wed, 13 May 2009 10:32:11 +0000 (13:32 +0300)]
ARM: OMAP: SMS: save/restore of SMS_SYSCONFIG for off-mode

The SMS_SYSCONFIG register gets reset in off mode, added a
save/restore mechanism for that.

Signed-off-by: Kalle Jokiniemi <kalle.jokiniemi@digia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: Fix secure SRAM context save/restore
Kalle Jokiniemi [Thu, 26 Mar 2009 13:59:00 +0000 (15:59 +0200)]
OMAP3: PM: Fix secure SRAM context save/restore

The secure sram context save uses dma channels 0 and 1.
In order to avoid collision between kernel DMA transfers and
ROM code dma transfers, we need to reserve DMA channels 0
1 on high security devices.

A bug in ROM code leaves dma irq status bits uncleared.
Hence those irq status bits need to be cleared when restoring
DMA context after off mode.

There was also a faulty parameter given to PPA in the secure
ram context save assembly code, which caused interrupts to
be enabled during secure ram context save. This caused the
save to fail sometimes, which resulted the saved context
to be corrupted, but also left DMA channels in secure mode.
The secure mode DMA channels caused "DMA secure error with
device 0" errors to be displayed.

Signed-off-by: Kalle Jokiniemi <kalle.jokiniemi@digia.com>
Signed-off-by: Jouni Hogander <jouni.hogander@nokia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: Save and restore also CM_CLKSEL1_PLL_IVA2
Jouni Hogander [Thu, 5 Feb 2009 11:34:01 +0000 (13:34 +0200)]
OMAP3: PM: Save and restore also CM_CLKSEL1_PLL_IVA2

CM_CLKSEL1_PLL_IVA2 is not saved/restored currently. This patch is
adding save and restore for it.

Signed-off-by: Jouni Hogander <jouni.hogander@nokia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: Enable SDRAM auto-refresh during sleep
Tero Kristo [Mon, 13 Oct 2008 10:17:06 +0000 (13:17 +0300)]
OMAP3: PM: Enable SDRAM auto-refresh during sleep

Fix for ES3.0 bug: SDRC not sending auto-refresh when OMAP wakes-up
from OFF mode (warning for HS devices.)

Signed-off-by: Tero Kristo <tero.kristo@nokia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: save secure RAM only during init
Tero Kristo [Fri, 12 Dec 2008 09:20:05 +0000 (11:20 +0200)]
OMAP3: PM: save secure RAM only during init

The function omap3_save_secure_ram() is now called only once during
the initialization of the device and consequent sleep cycles will
re-use the same saved contents for secure RAM. Users who need secure
services should do secure RAM saving before entering off-mode, if a
secure service has been accessed after last save.

There are both latency and reliability issues with saving secure RAM
context in the idle path. The context save uses a hardware resource
which takes an order of hundreds of milliseconds to initialize after a
wake up from off-mode, and also there is no way of checking whether it
is ready from kernel side or not. It just crashes if you use it too
quickly

Additional fix to ensure scratchpad save is done after secure
RAM by Roger Quadros.

Signed-off-by: Tero Kristo <tero.kristo@nokia.com>
Signed-off-by: Roger Quadros <ext-roger.quadros@nokia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3 PM: off-mode support for HS/EMU devices
Tero Kristo [Mon, 13 Oct 2008 10:15:00 +0000 (13:15 +0300)]
OMAP3 PM: off-mode support for HS/EMU devices

For HS/EMU devices, some additional resources need to be
saved/restored for off-mode support.  Namely, saving the secure RAM
and a pointer to it in the scratchpad.

Signed-off-by: Tero Kristo <tero.kristo@nokia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP: PM: DMA context save/restore for off-mode support
Tero Kristo [Thu, 28 Aug 2008 13:13:31 +0000 (13:13 +0000)]
OMAP: PM: DMA context save/restore for off-mode support

For HS/EMU devices, these additional features are also used:

- DMA interrupt disable routine added
- Added DMA controller reset to DMA context restore

Signed-off-by: Tero Kristo <tero.kristo@nokia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: CORE domain off-mode support
Rajendra Nayak [Fri, 26 Sep 2008 12:20:07 +0000 (17:50 +0530)]
OMAP3: PM: CORE domain off-mode support

Add context save and restore for CORE powerdomain resources in order
to support off-mode.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: MPU off-mode support
Rajendra Nayak [Fri, 26 Sep 2008 12:19:56 +0000 (17:49 +0530)]
OMAP3: PM: MPU off-mode support

Adds a 'save_state' option when calling into SRAM idle function
and adds some minor cleanups of SRAM asm code.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: Restore MMU table entry
Rajendra Nayak [Fri, 26 Sep 2008 12:19:34 +0000 (17:49 +0530)]
OMAP3: PM: Restore MMU table entry

During the MMU restoration on the restore path from MPU OFF, the page
table entry for the page consisting of the code being executed is
modified to make MMU return VA=PA.

The MMU is then enabled and the original entry is being stored in
scratchpad.  This patch reads the original values stored in
scratchpad, and restores them back.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: handle PER/NEON/CORE in idle
Rajendra Nayak [Fri, 26 Sep 2008 12:19:22 +0000 (17:49 +0530)]
OMAP3: PM: handle PER/NEON/CORE in idle

Expand the powerdomains handled in the idle path to include PER, NEON
and CORE.  This includes properly clearing the previous powerstates,
linking NEON state to MPU state and calling the UART prepare functions
for only the appropraite powerdomain transitions (CORE for UART1,2,
PER for UART3.)

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: restore SRAM functions after off-mode.
Rajendra Nayak [Fri, 26 Sep 2008 12:19:14 +0000 (17:49 +0530)]
OMAP3: PM: restore SRAM functions after off-mode.

Generalize the copy of SRAM functions into omap_push_sram_idle()
so it can be used on init but also after off-mode transitions.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: SCM context save/restore
Rajendra Nayak [Fri, 26 Sep 2008 12:19:02 +0000 (17:49 +0530)]
OMAP3: PM: SCM context save/restore

Add context save and restore for the System Control Module to suport
off-mode.

ETK and debobs definitions added by Peter De Schrijver.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Peter 'p2' De Schrijver <peter.de-schrijver@nokia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: Populate scratchpad contents
Rajendra Nayak [Fri, 26 Sep 2008 12:18:46 +0000 (17:48 +0530)]
OMAP3: PM: Populate scratchpad contents

This patch populates the scratchpad contents as expected by the
bootROM code.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: PRCM context save/restore
Rajendra Nayak [Fri, 26 Sep 2008 12:18:31 +0000 (17:48 +0530)]
OMAP3: PM: PRCM context save/restore

Add context save and restore for PRCM module to support off-mode.
Additional registers (CM_CLKSEL4, CM_CLKEN, CM_CLKEN2) added by Tero
Kristo.

Missing CM_CLKEN_PLL_IVA2 register added by Kalle Jokiniemi.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Tero Kristo <tero.kristo@nokia.com>
Signed-off-by: Kalle Jokiniemi <kalle.jokiniemi@digia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: INTC context save/restore
Rajendra Nayak [Fri, 26 Sep 2008 12:18:20 +0000 (17:48 +0530)]
OMAP3: PM: INTC context save/restore

Add context save and restore for the INTC module to support off-mode.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: GPIO context save/restore
Rajendra Nayak [Fri, 26 Sep 2008 12:17:48 +0000 (17:47 +0530)]
OMAP3: PM: GPIO context save/restore

Add context save and restore to enable off-mode.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoOMAP3: PM: GPMC context save/restore
Rajendra Nayak [Fri, 26 Sep 2008 12:17:33 +0000 (17:47 +0530)]
OMAP3: PM: GPMC context save/restore

This patch adds the context save and restore functions for GPMC to
enable off-mode.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
16 years agoUSB: host: ehci: introduce omap ehci-hcd driver
Felipe Balbi [Wed, 11 Nov 2009 19:31:29 +0000 (11:31 -0800)]
USB: host: ehci: introduce omap ehci-hcd driver

this driver has been sitting in linux-omap tree for quite
some time. It adds support for omap's ehci controller.

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Cc: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
16 years agoomap3: update Pandora defconfig
Grazvydas Ignotas [Wed, 11 Nov 2009 19:00:38 +0000 (11:00 -0800)]
omap3: update Pandora defconfig

This patch updates defconfig to enable options needed to properly
boot OMAP3 pandora board. It also enables MMC, OTG, GPIO LEDs,
TWL4030 GPIO and sound drivers.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap3: 3430sdp: Enable Linux Regulator framework
Sergio Aguirre [Wed, 11 Nov 2009 19:00:37 +0000 (11:00 -0800)]
omap3: 3430sdp: Enable Linux Regulator framework

Some drivers have dependencies on this, and therefore should be
enabled.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap3: beagle: Fix USB host port power control
Jarkko Nikula [Wed, 11 Nov 2009 19:00:36 +0000 (11:00 -0800)]
omap3: beagle: Fix USB host port power control

The host port power is enabled by driving the nEN_USB_PWR low as stated in
the comment. This fix is originally from Steve Sakoman <steve@sakoman.com>.

Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>
Cc: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap3: pandora: Fix keypad keymap
Grazvydas Ignotas [Wed, 11 Nov 2009 19:00:35 +0000 (11:00 -0800)]
omap3: pandora: Fix keypad keymap

The original TWL4030 keypad driver from linux-omap used KEY()
macro defined as (col, row), but while it was merged upstream
it was changed to use matrix keypad infrastructure, which uses
(row, col) format. Update the keymap in board file to match
layout of mainline driver.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap1: Amstrad Delta defconfig fixes
Janusz Krzysztofik [Wed, 11 Nov 2009 19:00:34 +0000 (11:00 -0800)]
omap1: Amstrad Delta defconfig fixes

The patch provides the following fixes:

- keep kernel small enough to boot with standard tools,
- ensure compatibility with both new and legacy distros,
- turn on support for recently added or fixed hardware features.

Created and tested against linux-2.6.32-rc5.

Signed-off-by: Janusz Krzysztofik <jkrzysz@tis.icnet.pl>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap: Fix omapfb/lcdc on OMAP1510 broken when PM set
Janusz Krzysztofik [Wed, 11 Nov 2009 19:00:03 +0000 (11:00 -0800)]
omap: Fix omapfb/lcdc on OMAP1510 broken when PM set

With CONFIG_PM=y, the omapfb/lcdc device on Amstrad Delta, after initially
starting correctly, breaks with the following error messages:

omapfb omapfb: resetting (status 0xffffff96,reset count 1)
...
omapfb omapfb: resetting (status 0xffffff96,reset count 100)
omapfb omapfb: too many reset attempts, giving up.

Looking closer at this I have found that it had been broken almost 2 years ago
with commit 2418996e3b100114edb2ae110d5d4acb928909d2, PM fixes for OMAP1.

The definite reason for broken omapfb/lcdc behavoiur in PM mode
appeared to be ARM_IDLECT1:IDLIF_ARM (bit 6) put into idle regardless of LCD
DMA possibly running. The bit were set based on return value of the
omap_dma_running() function that did not check for dedicated LCD DMA
channel status. The patch below fixes this.

Note that the hardcoded register value will be fixed during the next merge
cycle to use OMAP_LCDC_ defines. Currently the OMAP_LCDC_ defines are local
to drivers/video/omap/lcdc.c, so let's not start moving those right now.

Created against linux-2.6.32-rc6

Tested on Amstrad Delta

Signed-off-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap: Use resource_size
Tobias Klauser [Wed, 11 Nov 2009 02:55:19 +0000 (18:55 -0800)]
omap: Use resource_size

Use the resource_size function instead of manually calculating the
resource size. This reduces the chance of introducing off-by-one errors
and actually fixes one in mailbox.c.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap: Fix race condition in omap dma driver
Tao Hu [Wed, 11 Nov 2009 02:55:17 +0000 (18:55 -0800)]
omap: Fix race condition in omap dma driver

The bug could cause irq enable bit of one DMA channel is
cleared/set unexpectedly when 2 (or more) drivers are calling
omap_request_dma()/omap_free_dma() simultaneously

Signed-off-by: Fei Yang <AFY095@motorola.com>
Signed-off-by: Tao Hu <taohu@motorola.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoMerge branch '7xx-iosplit-plat' with omap-fixes
Tony Lindgren [Wed, 11 Nov 2009 02:10:34 +0000 (18:10 -0800)]
Merge branch '7xx-iosplit-plat' with omap-fixes

16 years agoupdate mach-types
Vikram Pandita [Tue, 10 Nov 2009 20:49:04 +0000 (12:49 -0800)]
update mach-types

Added zoom3 and sdp3630 board support

Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap: Fix Unlikely(x) < y
Roel Kluin [Wed, 4 Nov 2009 21:00:42 +0000 (13:00 -0800)]
omap: Fix Unlikely(x) < y

The closing parenthesis was not on the right location.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap_hsmmc: Add missing probe handler hook to platform driver data
Roger Quadros [Wed, 4 Nov 2009 21:00:41 +0000 (13:00 -0800)]
omap_hsmmc: Add missing probe handler hook to platform driver data

The missing probe handler hook will never probe the driver. Add it back.
Fixes broken MMC on OMAP.

We use platform_driver_probe() API since omap_hsmmc is not a hot-pluggable
device.

Signed-off-by: Roger Quadros <ext-roger.quadros@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoLinux 2.6.32-rc6 v2.6.32-rc6
Linus Torvalds [Tue, 3 Nov 2009 19:37:49 +0000 (11:37 -0800)]
Linux 2.6.32-rc6