pandora-kernel.git
15 years agoLinux-omap rebuilt: omap-fixes merged to mainline, for-next changed
Tony Lindgren [Fri, 5 Feb 2010 04:07:44 +0000 (20:07 -0800)]
Linux-omap rebuilt: omap-fixes merged to mainline, for-next changed

$ git checkout -b tmp-rebuild-1265342855 linus
$ git merge -m "Merge omap-fixes" omap-fixes
$ git merge -m "Merge omap-testing" omap-testing
$ git merge -m "Merge for-next" for-next
$ git merge -m "Merge cbus" cbus
$ git merge -s ours master
$ git checkout master
$ git merge tmp-rebuild-1265342855

To view the changes since the last rebuild, please do
$ git diff c4461675c40f13222f04512bebae570aead2ebee..e599f12601d91bcca5212e30c326d975f71a1422 arch/arm/*omap*/

15 years agoMerge cbus
Tony Lindgren [Fri, 5 Feb 2010 04:07:38 +0000 (20:07 -0800)]
Merge cbus

15 years agoMerge for-next
Tony Lindgren [Fri, 5 Feb 2010 04:07:37 +0000 (20:07 -0800)]
Merge for-next

15 years agoARM: dma-mapping: fix for speculative prefetching
Russell King [Fri, 5 Feb 2010 04:05:52 +0000 (20:05 -0800)]
ARM: dma-mapping: fix for speculative prefetching

ARMv6 and ARMv7 CPUs can perform speculative prefetching, which makes
DMA cache coherency handling slightly more interesting.  Rather than
being able to rely upon the CPU not accessing the DMA buffer until DMA
has completed, we now must expect that the cache could be loaded with
possibly stale data from the DMA buffer.

Where DMA involves data being transferred to the device, we clean the
cache before handing it over for DMA, otherwise we invalidate the buffer
to get rid of potential writebacks.  On DMA Completion, if data was
transferred from the device, we invalidate the buffer to get rid of
any stale speculative prefetches.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
15 years agoARM: dma-mapping: remove dmac_clean_range and dmac_inv_range
Russell King [Fri, 5 Feb 2010 04:05:52 +0000 (20:05 -0800)]
ARM: dma-mapping: remove dmac_clean_range and dmac_inv_range

These are now unused, and so can be removed.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
15 years agoARM: dma-mapping: provide per-cpu type map/unmap functions
Russell King [Fri, 5 Feb 2010 04:05:51 +0000 (20:05 -0800)]
ARM: dma-mapping: provide per-cpu type map/unmap functions

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
15 years agoARM: dma-mapping: simplify dma_cache_maint_page
Russell King [Fri, 5 Feb 2010 04:05:51 +0000 (20:05 -0800)]
ARM: dma-mapping: simplify dma_cache_maint_page

dma_cache_maint_contiguous is now simple enough to live inside
dma_cache_maint_page, so move it there.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
15 years agoARM: dma-mapping: move selection of page ops out of dma_cache_maint_contiguous
Russell King [Fri, 5 Feb 2010 04:05:50 +0000 (20:05 -0800)]
ARM: dma-mapping: move selection of page ops out of dma_cache_maint_contiguous

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
15 years agoARM: dma-mapping: push buffer ownership down into dma-mapping.c
Russell King [Fri, 5 Feb 2010 04:05:50 +0000 (20:05 -0800)]
ARM: dma-mapping: push buffer ownership down into dma-mapping.c

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
15 years agoARM: dma-mapping: introduce the idea of buffer ownership
Russell King [Fri, 5 Feb 2010 04:05:50 +0000 (20:05 -0800)]
ARM: dma-mapping: introduce the idea of buffer ownership

The DMA API has the notion of buffer ownership; make it explicit in the
ARM implementation of this API.  This gives us a set of hooks to allow
us to deal with CPU cache issues arising from non-cache coherent DMA.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Tested-By: Jamie Iles <jamie@jamieiles.com>
15 years agoARM: Select CPU_32v6K for CPU_V7 only if ARCH_OMAP2 is not selected
Tony Lindgren [Fri, 5 Feb 2010 04:05:49 +0000 (20:05 -0800)]
ARM: Select CPU_32v6K for CPU_V7 only if ARCH_OMAP2 is not selected

Otherwise the kernel built with both CPU_V6 and CPU_V7 will not
boot on omap2.

Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoUSB: musb: don't dereference NULL tusb_dma indma_controller_destroy()
Roel Kluin [Fri, 5 Feb 2010 04:05:49 +0000 (20:05 -0800)]
USB: musb: don't dereference NULL tusb_dma indma_controller_destroy()

Test whether tusb_dma is not NULL before dereferencing

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agousb: host: ehci: adding regulator framework in ehci-omap.cdriver
Ajay Kumar Gupta [Fri, 5 Feb 2010 04:05:49 +0000 (20:05 -0800)]
usb: host: ehci: adding regulator framework in ehci-omap.cdriver

OMAP3 has three HS USB ports so it can have three different regulator
for each PHY connected to each port.

Currently these regulators are assumed to be optional and driver doesn't
fail but continue with the initialization if it doesn't get any regulators.

Regulator supply names has to be mapped in board files as 'hsusbN' where
'N' is port number and can be {0, 1 ,2}.

Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agousb: host: ehci: fix missing kfree in remove path also
Ajay Kumar Gupta [Fri, 5 Feb 2010 04:05:48 +0000 (20:05 -0800)]
usb: host: ehci: fix missing kfree in remove path also

Added missing kfree() in ehci_hcd_omap_remove().

Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agousb: musb: Add 'extvbus' in musb_hdrc_platform_data
Ajay Kumar Gupta [Fri, 5 Feb 2010 04:05:48 +0000 (20:05 -0800)]
usb: musb: Add 'extvbus' in musb_hdrc_platform_data

Some of the board might use external Vbus power supply on musb
interface which would require to program ULPI_BUSCONTROL register.

Adding 'extvbus' flag which can be set from such boards which will
be checked at musb driver files before programming ULPI_BUSCONTROL.

Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agousb: musb: save dynfifo in musb struct
Ajay Kumar Gupta [Fri, 5 Feb 2010 04:05:47 +0000 (20:05 -0800)]
usb: musb: save dynfifo in musb struct

Save dynamic FIFO read only information for later uses during
musb_save/restore_context functions.

Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agousb: musb: handle irqs in the order dictated by programmingguide
Arnaud Mandy [Fri, 5 Feb 2010 04:05:47 +0000 (20:05 -0800)]
usb: musb: handle irqs in the order dictated by programmingguide

MUSB's programming guide dictates how we should handle its
irqs and in which order. Follow that.

Signed-off-by: Arnaud Mandy <ext-arnaud.2.mandy@nokia.com>
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agousb: musb: clean up commit 'workaround Blackfin FIFO anomalies'
Bryan Wu [Fri, 5 Feb 2010 04:05:47 +0000 (20:05 -0800)]
usb: musb: clean up commit 'workaround Blackfin FIFO anomalies'

The version applied had a few comments which are now
done.

Thanks to Sergei for pointing out.

Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agousb: musb: Fix cppi_channel_abort() function to handle Txabort correctly
Swaminathan S [Fri, 5 Feb 2010 04:05:46 +0000 (20:05 -0800)]
usb: musb: Fix cppi_channel_abort() function to handle Txabort correctly

This patch fixes the Tx abort/teardown logic. We now wait for the teardown
completion interrupt and acknowledge the same by setting the tx_complete
register to 0.

This change is needed to ensure that abort processing works on DM365 platform.
Without this change after completion of abort processing the system is
overwhelmed with continuous stream of abort interrupts.

This change has been tested on all CPPI3.x platforms (DM644x, DM646x, DM35x,
DM36x).

Signed-off-by: Swaminathan S <swami.iyer@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agousb: musb: workaround toggle bug when doing bulk transferafter isoc
Swaminathan S [Fri, 5 Feb 2010 04:05:46 +0000 (20:05 -0800)]
usb: musb: workaround toggle bug when doing bulk transferafter isoc

This patch implements the work around for a Mentor controller related
bug where it's observed a BULK Tx toggle error on the bus when a
BULK IO gets scheduled on an endpoint that was earlier used for
handling ISOC transaction and needed to start on 1 toggle.  When such
a situation arises even if the TXCSR toggle bits are programmed
correctly by the musb driver the data gets transmitted with 0 toggle
which leads to toggle error on the bus and the BULK transaction fails.
In case of MSC write, the device gets reset by the Host.

This Mentor bug is observed on almost all Mentor versions (1.3, 1.5,
1.8).  Confirmed on DM644x, DM355, DM365, OMAPL13x platforms.

Signed-off-by: Swaminathan S <swami.iyer@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years ago[PATCH/USB,
Anand Gadiyar [Fri, 5 Feb 2010 04:05:46 +0000 (20:05 -0800)]
[PATCH/USB,

MUSB DMA_INTR register may sometimes read zero when infact there
was a pending interrupt. Workaround this by reading the DMA_COUNT
values for all enabled channels when this condition occurs.
Flag these channels as the ones needing to be serviced.

Additionally, the absence of a debug print meant we would never
catch a spurious DMA interrupt in MUSB. So this patch adds a
debug print in the IRQ handler.

Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Cc: Ajay Kumar Gupta <ajay.gupta@ti.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: Vikram Pandita <vikram.pandita@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agousb: musb: hsdma: add wrapper for reading DMA count
Anand Gadiyar [Fri, 5 Feb 2010 04:05:45 +0000 (20:05 -0800)]
usb: musb: hsdma: add wrapper for reading DMA count

Add a wrapper for reading the DMA count register, analogous
to the one for writing to this register.

Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Cc: Vikram Pandita <vikram.pandita@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoUSB: musb: Add new fifo table for a OMAP3 errata
Ajay Kumar Gupta [Fri, 5 Feb 2010 04:05:45 +0000 (20:05 -0800)]
USB: musb: Add new fifo table for a OMAP3 errata

We have observed MSC data read corruption when USB LAN device is
also connected and it's interface is up.

Silicon team has confirmed an errata where in all the active
transfers should use FIFO space either in first 8K or next 8K.
So far we have observed the issue in above use case scenario.

As a workaround to it, adding a new FIFO config (5) fitting well
within first 8K which can be used for such use cases.

Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Acked-by: Anand Gadiyar <gadiyar@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoUSB: musb: remove some of the never defined defines
Felipe Balbi [Fri, 5 Feb 2010 04:05:45 +0000 (20:05 -0800)]
USB: musb: remove some of the never defined defines

just makes the musb init code a bit cleaner.

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoUSB: musb: move to sysfs_groups
Felipe Balbi [Fri, 5 Feb 2010 04:05:44 +0000 (20:05 -0800)]
USB: musb: move to sysfs_groups

it's easier to keep up and add more sysfs entries
as necessary.

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoUSB: musb: move two printk to dev_err
Felipe Balbi [Fri, 5 Feb 2010 04:05:44 +0000 (20:05 -0800)]
USB: musb: move two printk to dev_err

trivial cleanup, no functional changes.

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoUSB: musb: use resource_size()
Felipe Balbi [Fri, 5 Feb 2010 04:05:43 +0000 (20:05 -0800)]
USB: musb: use resource_size()

it makes ioremap() usage looks cleaner.

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoi2c-omap: Fix reg_shift init
Tony Lindgren [Fri, 5 Feb 2010 04:05:43 +0000 (20:05 -0800)]
i2c-omap: Fix reg_shift init

Otherwise register access won't work during probe
for omap_i2c_unidle.

Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoAdd support for 16-bit registers
Cory Maccarrone [Fri, 5 Feb 2010 04:05:43 +0000 (20:05 -0800)]
Add support for 16-bit registers

The current i2c-omap driver is set up for 32-bit registers, which
corresponds to most OMAP devices.  However, OMAP730/850 based
devices use a 16-bit register size.

This change modifies the driver to perform a runtime CPU type check
to determine the register sizes, and uses a bit shift of either 1
or 2 bits to compute the proper register sizes for all registers.

Signed-off-by: Cory Maccarrone <darkstar6262@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agommc-omap: Add support for 16-bit and 32-bit registers
Marek Belisko [Fri, 5 Feb 2010 04:05:43 +0000 (20:05 -0800)]
mmc-omap: Add support for 16-bit and 32-bit registers

The omap850 and omap730 use 16-bit registers instead of 32-bit, requiring
a modification of the register addresses in the mmc-omap driver.  To resolve
this, a bit shift is performed on base register addresses, either by 1 or 2
bits depending on the CPU in use.  This yields the correct registers for
each CPU.

Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: Cory Maccarrone <darkstar6262@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoehci: fix missing kfree in remove path also
Ajay Kumar Gupta [Fri, 5 Feb 2010 04:05:42 +0000 (20:05 -0800)]
ehci: fix missing kfree in remove path also

Added missing kfree() in ehci_hcd_omap_remove().

Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
15 years agoAdd devkit8000_defconfig
Thomas Weber [Fri, 5 Feb 2010 03:45:51 +0000 (19:45 -0800)]
Add devkit8000_defconfig

This patch adds a default config for the Timll Devkit8000.

Signed-off-by: Thomas Weber <weber@corscience.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoAdd minimal support for DevKit8000
Thomas Weber [Fri, 5 Feb 2010 03:45:51 +0000 (19:45 -0800)]
Add minimal support for DevKit8000

These patches add board support for the Timll DevKit8000.

The DevKit8000 is a beagle board clone from Timll, sold by
armkits.com. The DevKit8000 has RS232 serial port, LCD, DVI-D,
S-Video, Ethernet, SD/MMC, keyboard, camera, SPI, I2C, USB and
JTAG interface.

Signed-off-by: Thomas Weber <weber@corscience.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoAM3517: Enable basic I2C Support
Vaibhav Hiremath [Fri, 5 Feb 2010 03:45:51 +0000 (19:45 -0800)]
AM3517: Enable basic I2C Support

Add basic I2C board Hook-up support, where all the 3 I2C instances
are getting registered.

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap3: Update defconfig for IGEP v2 to allow new drivers andfeatures
Enric Balletbo i Serra [Fri, 5 Feb 2010 03:45:50 +0000 (19:45 -0800)]
omap3: Update defconfig for IGEP v2 to allow new drivers andfeatures

Signed-off-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap3: Use timing data for omap2_init_common_hw on IGEP v2
Enric Balletbo i Serra [Fri, 5 Feb 2010 03:45:50 +0000 (19:45 -0800)]
omap3: Use timing data for omap2_init_common_hw on IGEP v2

Signed-off-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoARM: OMAP3: SDRC: add timing data for Numonyx M65KxxxxAM
Enric Balletbo i Serra [Fri, 5 Feb 2010 03:45:49 +0000 (19:45 -0800)]
ARM: OMAP3: SDRC: add timing data for Numonyx M65KxxxxAM

Add timing data for the Numonyx M65KxxxxAM SDRAM chip, used on the
IGEP v2 board.

Signed-off-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap3: Add support for flash on IGEP v2 board
Enric Balletbo i Serra [Fri, 5 Feb 2010 03:45:49 +0000 (19:45 -0800)]
omap3: Add support for flash on IGEP v2 board

This patch adds support for flashes on IGEP v2 boards. For now
only OneNAND is supported.

Signed-off-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap3: Enable DSS2 for IGEP v2 board
Enric Balletbo i Serra [Fri, 5 Feb 2010 03:45:49 +0000 (19:45 -0800)]
omap3: Enable DSS2 for IGEP v2 board

Signed-off-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap3: Add platform init code for EHCI driver on IGEP v2
Enric Balletbo i Serra [Fri, 5 Feb 2010 03:45:48 +0000 (19:45 -0800)]
omap3: Add platform init code for EHCI driver on IGEP v2

Add platform init code for EHCI driver on IGEP v2

Signed-off-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap3: Fix typo on IGEP v2 board
Enric Balletbo i Serra [Fri, 5 Feb 2010 03:45:48 +0000 (19:45 -0800)]
omap3: Fix typo on IGEP v2 board

Fix typo on IGEP v2 board

Signed-off-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap3: Add platform data for the twl4030_codec MFD on IGEP v2
Enric Balletbo i Serra [Fri, 5 Feb 2010 03:45:48 +0000 (19:45 -0800)]
omap3: Add platform data for the twl4030_codec MFD on IGEP v2

Add platform data for the twl4030_codec MFD on IGEP v2

Signed-off-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoOMAP4: MCPDM: Register McPDM platform device
Tony Lindgren [Fri, 5 Feb 2010 03:45:47 +0000 (19:45 -0800)]
OMAP4: MCPDM: Register McPDM platform device

Add platform device for McPDM interface in OMAP4 and register
its memory and irq resources.

Signed-off-by: Jorge Eduardo Candelaria <x0107209@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoARM: OMAP4: Add McPDM base address
Tony Lindgren [Fri, 5 Feb 2010 03:45:47 +0000 (19:45 -0800)]
ARM: OMAP4: Add McPDM base address

Define McPDM physical and L3 base address for OMAP4

Signed-off-by: Jorge Eduardo Candelaria <x0107209@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoOMAP4: IRQ: Add McPDM IRQ definition
Tony Lindgren [Fri, 5 Feb 2010 03:45:47 +0000 (19:45 -0800)]
OMAP4: IRQ: Add McPDM IRQ definition

Support for McPDM IRQs in OMAP4

Signed-off-by: Jorge Eduardo Candelaria <x0107209@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoAM35xx: Update irq.h for AM35xx IPSS module interrupts
Vaibhav Hiremath [Fri, 5 Feb 2010 03:45:46 +0000 (19:45 -0800)]
AM35xx: Update irq.h for AM35xx IPSS module interrupts

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoSigned-off-by: Tony Lindgren <tony@atomide.com>
Tony Lindgren [Fri, 5 Feb 2010 03:45:46 +0000 (19:45 -0800)]
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoAM35xx: Introduce am35xx.h file
Vaibhav Hiremath [Fri, 5 Feb 2010 03:45:46 +0000 (19:45 -0800)]
AM35xx: Introduce am35xx.h file

Add base address definations for new AM35xx IPSS modules, like
VPFE, USBOTG, CPGMAC.

Please note that the OMAP34xx IVA2 memory space is being used for
AM35xx IPSS modules.

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Sriramakrishnan <srk@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap: McBSP: Use cache when modifying individual register bits
Janusz Krzysztofik [Fri, 5 Feb 2010 03:45:46 +0000 (19:45 -0800)]
omap: McBSP: Use cache when modifying individual register bits

Change the way McBSP registers are updated: use cached values instead of
relying upon those read back from the device.

With this patch, I have finally managed to get rid of all random
playback/recording hangups on my OMAP1510 based Amstrad Delta hardware. Before
that, values read back from McBSP registers to be used for updating them
happened to be errornous.

From the hardware side, the issue appeared to be caused by a relatively high
power requirements of an external USB adapter connected to the board's printer
dedicated USB port.

I think there is one important point that makes this patch worth of applying,
apart from my hardware quality. With the current code, if it ever happens to
any machine, no matter if OMAP1510 or newer, to read incorrect value from a
McBSP register, this wrong value will get written back without any checking.
That can lead to hardware damage if, for example, an input pin is turned into
output as a result.

Applies on top of patch 3 from this series:
[PATCH v9 3/4] OMAP: McBSP: Introduce caching in register write operations

Tested on OMAP1510 based Amstrad Delta using linux-omap for-next, commit
fb7380d70e041e4b3892f6b19dff7efb609d15a4 (2.6.33-rc3+ dated 2010-01-11).
Compile-tested with omap_3430sdp_defconfig.

Signed-off-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Acked-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Acked-by: Jarkko Nikula <jhnikula@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap: McBSP: Introduce caching in register write operations
Janusz Krzysztofik [Fri, 5 Feb 2010 03:45:45 +0000 (19:45 -0800)]
omap: McBSP: Introduce caching in register write operations

Determine cache size required per McBSP port at init time, based on
processor type running on.

Allocate space for storing cached copies of McBSP register values at
port request.

Modify omap_msbcp_write() function to update the cache with every
register write operation.

Modify omap_mcbsp_read() to support reading from cache or hardware.

Update MCBSP_READ() macro for modified omap_mcbsp_read() function API.

Introduce a new macro that reads from the cache.

Tested on OMAP1510 based Amstrad Delta using linux-omap for-next, commit
fb7380d70e041e4b3892f6b19dff7efb609d15a4 (2.6.33-rc3+ dated 2010-01-11).
Compile-tested with: omap_perseus2_730_defconfig, omap_generic_1610_defconfig,
omap_generic_2420_defconfig, omap_2430sdp_defconfig, omap_3430sdp_defconfig,
omap_4430sdp_defconfig with CONFIG_OMAP_MCBSP=y selected.

Signed-off-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Acked-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Acked-by: Jarkko Nikula <jhnikula@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap: McBSP: Modify macros/functions API for easy cache access
Janusz Krzysztofik [Fri, 5 Feb 2010 03:45:45 +0000 (19:45 -0800)]
omap: McBSP: Modify macros/functions API for easy cache access

OMAP_MCBSP_READ()/_WRITE() macros and omap_mcbsp_read()/_write() functions
accept McBSP register base address as an argument. In order to support
caching, that must be replaced with an address of the omap_mcbsp structure
that would provide addresses for both register AND cache access.

Since OMAP_ prefix seems obvious in macro names, drop it off in order to
minimize line wrapping throughout the file.

Tested on OMAP1510 based Amstrad Delta using linux-omap for-next, commit
fb7380d70e041e4b3892f6b19dff7efb609d15a4 (2.6.33-rc3+ dated 2010-01-11).
Compile-tested with omap_3430sdp_defconfig.

Signed-off-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Acked-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Acked-by: Jarkko Nikula <jhnikula@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap: McBSP: Use macros for all register read/write operations
Janusz Krzysztofik [Fri, 5 Feb 2010 03:45:45 +0000 (19:45 -0800)]
omap: McBSP: Use macros for all register read/write operations

There are several places where readw()/writew() functions are used instead of
OMAP_MCBSP_READ()/WRITE() macros for manipulating McBSP registers. Replace
them with macros to ensure consistent behaviour after caching is introduced.

Tested on OMAP1510 based Amstrad Delta.
Compile-tested with omap_3430sdp_defconfig.

Signed-off-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Acked-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Acked-by: Jarkko Nikula <jhnikula@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap iommu: fix incorrect address for largepage 1st entry
Hiroshi DOYU [Fri, 5 Feb 2010 03:45:44 +0000 (19:45 -0800)]
omap iommu: fix incorrect address for largepage 1st entry

There was a potential risk that the following "memset" could override
its range if a given address was not the 1st entry of a
largepage. This is not the case for "iovmm".

Reported-by: Hari Nagalla <hnagalla@ti.com>
Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: Hari Nagalla <hnagalla@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap: iommu: fix incorrect address for supersection 1st entry
Hiroshi DOYU [Fri, 5 Feb 2010 03:45:44 +0000 (19:45 -0800)]
omap: iommu: fix incorrect address for supersection 1st entry

There was a potential risk that the following "memset" could override
its range if a given address was not the 1st entry of a
supersection. This is not the case for "iovmm".

Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: Hari Nagalla <hnagalla@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap iommu: cleanup iommu page address mask and definitions
Hiroshi DOYU [Fri, 5 Feb 2010 03:45:44 +0000 (19:45 -0800)]
omap iommu: cleanup iommu page address mask and definitions

This is just a cleanup, but adds a few macros here, which can be used
in the proceeding patches.

Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoOMAP: pandora: add DSS2 support and related regulators
Grazvydas Ignotas [Fri, 5 Feb 2010 03:45:43 +0000 (19:45 -0800)]
OMAP: pandora: add DSS2 support and related regulators

This patch adds configuration data for DSS2 and sets up
display related regulators.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Acked-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap_hsmmc: allow compile without regulator framework
Adrian Hunter [Fri, 5 Feb 2010 03:45:43 +0000 (19:45 -0800)]
omap_hsmmc: allow compile without regulator framework

It is still possible to use the omap_hsmmc module
without the regulator framework.  Accordingly, ifdef
out regulator-specific functions.

Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap_hsmmc: Allow for a shared VccQ
Adrian Hunter [Fri, 5 Feb 2010 03:45:43 +0000 (19:45 -0800)]
omap_hsmmc: Allow for a shared VccQ

EMMC can have two voltage supplies, Vcc and VccQ
which are implemented in the code as consumer
supplies vmmc and vmmc_aux.

If the regulator that supplies vmmc_aux is shared
with other consumers, then sending it to sleep
will disrupt those consumers.  However, the
TWL4030-family regulators may have OFF remapped
to SLEEP, in which case 'regulator_disable()'
will put the regulator to sleep only when all
consumers are disabled - which is the desired
behaviour.

This patch adds a platform data field to allow
that option.

Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap_hsmmc: Ensure regulator enable / disable are paired
Adrian Hunter [Fri, 5 Feb 2010 03:45:42 +0000 (19:45 -0800)]
omap_hsmmc: Ensure regulator enable / disable are paired

Stop using 'regulator_is_enabled()' and just pair enables
with disables so that the regulator reference counts can
work correctly.

Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap_hsmmc: Fix disable timeouts
Adrian Hunter [Fri, 5 Feb 2010 03:45:42 +0000 (19:45 -0800)]
omap_hsmmc: Fix disable timeouts

Disable timeouts are in msecs not jiffies.

Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap_hsmmc: Allow for power saving without going off
Adrian Hunter [Fri, 5 Feb 2010 03:45:42 +0000 (19:45 -0800)]
omap_hsmmc: Allow for power saving without going off

An eMMC may be always powered on, so that the lowest
power saving state possible is sleeping. Add a field
to the platform data to indicate that.

Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap: RX51: Remux to pull eMMC lines down when powering off
Adrian Hunter [Fri, 5 Feb 2010 03:45:41 +0000 (19:45 -0800)]
omap: RX51: Remux to pull eMMC lines down when powering off

It has been discovered that, when eMMC is powered off, current
will flow from OMAP eMMC data pull-ups to the eMMC voltage supply.
Configuring pads for OMAP off-mode does not help because eMMC is
powered off independently of OMAP off-mode.  Hence the pads are
now re-configured when eMMC is powered on or off.

Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap: Reconnect hsmmc context loss count
Adrian Hunter [Fri, 5 Feb 2010 03:45:41 +0000 (19:45 -0800)]
omap: Reconnect hsmmc context loss count

Call the PM context-loss count function, now that there
is a prototype for it.

Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap: Rename hsmmc symbols to reflect independence from twl4030
Adrian Hunter [Fri, 5 Feb 2010 03:45:41 +0000 (19:45 -0800)]
omap: Rename hsmmc symbols to reflect independence from twl4030

hsmmc.[ch] no longer has any dependency on twl4030
and variable names should be renamed to reflect that.

Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap: Rename mmc-twl4030 files to hsmmc
Adrian Hunter [Fri, 5 Feb 2010 03:45:40 +0000 (19:45 -0800)]
omap: Rename mmc-twl4030 files to hsmmc

mmc-twl4030.[ch] no longer has any dependency on twl4030
and should be renamed to reflect that.

Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap_hsmmc: Move gpio and regulator control from board file
Adrian Hunter [Fri, 5 Feb 2010 03:45:40 +0000 (19:45 -0800)]
omap_hsmmc: Move gpio and regulator control from board file

This patch moves the setup code for GPIO's and Voltage
Regulators from the board file mmc-twl4030.c to the
driver omap_hsmmc.c.  PBIAS and other system control
configuration remains in the board file.

Moving GPIO code to the driver makes the board initialisation
code independent of when GPIO's are defined.  That makes the
board initialisation now entirely independent of its original
twl4030 roots.

Moving Voltage Regulator code to the driver allows for further
development of regulator support in the core MMC code.  It also
permits the MMC core to be compiled as a module, because the
board code no longer calls MMC core functions.

Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap: zoom3: enable ehci support
vikram pandita [Fri, 5 Feb 2010 03:45:40 +0000 (19:45 -0800)]
omap: zoom3: enable ehci support

Zoom3 board has omap3630 EHCI port2 connected to a ULPI phy.
GPIO_64 is connected to the PHY reset pin.

Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
Cc: Gadiyar, Anand <gadiyar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap: serial: fix coding style indentaion
vikram pandita [Fri, 5 Feb 2010 03:45:39 +0000 (19:45 -0800)]
omap: serial: fix coding style indentaion

No logical code change

Fix coding style indentaion as per checkpatch.pl
Fix multi-line comment style reported by Nishanth Menon

Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
Cc: Menon, Nishanth <nm@ti.com>
Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap3: pm: Add T2 Keypad as a wakeup source
Lesly A M [Fri, 5 Feb 2010 03:45:39 +0000 (19:45 -0800)]
omap3: pm: Add T2 Keypad as a wakeup source

Changes for setting the padconf value for sys_nirq line which is
connected to T2 INTR1. This will fix the T2 keypad wakeup.

Signed-off-by: Lesly A M <x0080970@ti.com>
Signed-off-by: Teerth Reddy <teerth@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap: Clean-up for omap_mux_init
Tony Lindgren [Fri, 5 Feb 2010 03:45:38 +0000 (19:45 -0800)]
omap: Clean-up for omap_mux_init

Get rid of the ifdeffery in omap_mux_init by creating
omap_mux_init_package and omap_mux_init_signals functions.

Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoMTD: remove no longer used OMAP flash map
Ladislav Michl [Fri, 5 Feb 2010 03:45:38 +0000 (19:45 -0800)]
MTD: remove no longer used OMAP flash map

All OMAP boards are now using physmap-flash.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap: convert boards to use physmap-flash
Ladislav Michl [Fri, 5 Feb 2010 03:45:38 +0000 (19:45 -0800)]
omap: convert boards to use physmap-flash

Convert OMAP based boards to use physmap-flash. Refreshed against today's
Linux omap kernel tree

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap2/3/4: Add omap4 into omap3_defconfnig
Tony Lindgren [Fri, 5 Feb 2010 03:44:32 +0000 (19:44 -0800)]
omap2/3/4: Add omap4 into omap3_defconfnig

Add omap4 into omap3_defconfig. Note that this does not
yet boot on omap4, but boots on omap2 and omap3.

Also note that CONFIG_SMP does not currently work on
uniprocessor ARMs.

Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap2/3/4: Fix mach-omap2/serial.c for multiboot
Tony Lindgren [Fri, 5 Feb 2010 03:44:31 +0000 (19:44 -0800)]
omap2/3/4: Fix mach-omap2/serial.c for multiboot

Initialize UART4 only for 3630 and 44xx.

Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap: Fix gpio.c for multi-omap for omap4
Tony Lindgren [Fri, 5 Feb 2010 03:44:31 +0000 (19:44 -0800)]
omap: Fix gpio.c for multi-omap for omap4

Set up METHOD_GPIO_44XX instead of trying to use the METHOD_GPIO_24XX.

Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap3/4: Fix compile for multi-omap for clkops_noncore_dpll_ops
Tony Lindgren [Fri, 5 Feb 2010 03:44:31 +0000 (19:44 -0800)]
omap3/4: Fix compile for multi-omap for clkops_noncore_dpll_ops

Rename clkops_noncore_dpll_ops for omap3 and omap4.

Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap2/3/4: Allow booting omap4 with multi-omap configuration
Tony Lindgren [Fri, 5 Feb 2010 03:44:30 +0000 (19:44 -0800)]
omap2/3/4: Allow booting omap4 with multi-omap configuration

Allow booting omap4 with multi-omap configuration.

Tested only on omap2 and omap3, please somebody test
on omap4 and ack.

Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap2/3/4: Clean up entry-macro.s for adding support for omap4 multiboot
Tony Lindgren [Fri, 5 Feb 2010 03:44:30 +0000 (19:44 -0800)]
omap2/3/4: Clean up entry-macro.s for adding support for omap4 multiboot

Move defines around and set up handlers based on MULTI_OMAP2.

Note that this will only allow compiling in omap4 with omap2 and
omap3. It will not yet make omap4 boot with multi-omap.

Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap4: Use get_irqnr_preamble
Tony Lindgren [Fri, 5 Feb 2010 03:44:30 +0000 (19:44 -0800)]
omap4: Use get_irqnr_preamble

Use get_irqnr_preamble

Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap2/3/4: Clean up defines for entry-macro.S
Tony Lindgren [Fri, 5 Feb 2010 03:44:29 +0000 (19:44 -0800)]
omap2/3/4: Clean up defines for entry-macro.S

Define the irq base the same way as for omap2 and omap3,
and start using get_irqnr_preamble.

Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap: Move multi-omap ifdeffery into it's own header file
Tony Lindgren [Fri, 5 Feb 2010 03:44:29 +0000 (19:44 -0800)]
omap: Move multi-omap ifdeffery into it's own header file

This way we can include it easily as needed also for .S files.

Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap2/3: Update omap3_defconfig to build in all the 2420 based boards
Tony Lindgren [Fri, 29 Jan 2010 19:39:03 +0000 (11:39 -0800)]
omap2/3: Update omap3_defconfig to build in all the 2420 based boards

Note that booting 2420 depends on another patch posted earlier to not
select CONFIG_CPU_32v6K if CONFIG_ARCH_OMAP2 is selected.

Also note that we cannot add omap2430 in yet because of the different
clock addresses compared to 2420. Also note that we cannot have
CONFIG_CPU_32v6K=y in order to boot on 24xx.

Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap2/3: Fix initcalls for multi-omap
Tony Lindgren [Fri, 29 Jan 2010 19:39:03 +0000 (11:39 -0800)]
omap2/3: Fix initcalls for multi-omap

Otherwise the wrong initcalls can run.

Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap2/3/4: Replace orred CONFIG_ARCH_OMAP2/3/4 with CONFIG_ARCH_OMAP2PLUS
Tony Lindgren [Fri, 29 Jan 2010 19:39:03 +0000 (11:39 -0800)]
omap2/3/4: Replace orred CONFIG_ARCH_OMAP2/3/4 with CONFIG_ARCH_OMAP2PLUS

omap: Replace orred CONFIG_ARCH_OMAP2/3/4 with CONFIG_ARCH_OMAP2PLUS

Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap3: Replace ARCH_OMAP34XX with ARCH_OMAP3
Tony Lindgren [Fri, 29 Jan 2010 19:39:02 +0000 (11:39 -0800)]
omap3: Replace ARCH_OMAP34XX with ARCH_OMAP3

Replace ARCH_OMAP34XX with ARCH_OMAP3

Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap2: Convert ARCH_OMAP24XX to ARCH_OMAP2
Tony Lindgren [Fri, 29 Jan 2010 19:39:02 +0000 (11:39 -0800)]
omap2: Convert ARCH_OMAP24XX to ARCH_OMAP2

Convert ARCH_OMAP24XX to ARCH_OMAP2

Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap2/3/4: Fix mbox init for multi-omap
Tony Lindgren [Fri, 29 Jan 2010 19:39:01 +0000 (11:39 -0800)]
omap2/3/4: Fix mbox init for multi-omap

Fix mbox init for multi-omap

Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap2/3/4: Fix omap2_map_common_io for multi-omap
Tony Lindgren [Fri, 29 Jan 2010 19:39:01 +0000 (11:39 -0800)]
omap2/3/4: Fix omap2_map_common_io for multi-omap

Fix omap2_map_common_io for multi-omap

Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap: Fix dmtimer.c for multi-omap boot
Tony Lindgren [Fri, 29 Jan 2010 19:39:01 +0000 (11:39 -0800)]
omap: Fix dmtimer.c for multi-omap boot

Fix dmtimer.c for multi-omap boot. Also remove legacy
clk_enable/disable wrappers that are no longer needed.

Note that the clock handling should be further improved
to make use of the clock aliases.

Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap2/3: Multiboot compile fixes to compile in omap2 and omap3
Tony Lindgren [Fri, 29 Jan 2010 19:39:00 +0000 (11:39 -0800)]
omap2/3: Multiboot compile fixes to compile in omap2 and omap3

Allows compiling in omap2 and omap3.

Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap2/3: Make get_irqnr_and_base common for mach-omap2 multiboot
Tony Lindgren [Fri, 29 Jan 2010 19:39:00 +0000 (11:39 -0800)]
omap2/3: Make get_irqnr_and_base common for mach-omap2 multiboot

Make get_irqnr_and_base common for mach-omap2 multiboot

Thanks to a tip from Russell King <rmk+kernel@arm.linux.org.uk>,
this also optimizes the code for non-multiboot configurations by
using get_irqnr_preamble.

Note that this will only work currently for 24xx and 34xx.
Support for 44xx can be added later on for basic multiboot,
and similar patch should be done for mach-omap1/entry-macro.S.

Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap: Remove old DEBUG_LL serial port options
Tony Lindgren [Fri, 29 Jan 2010 19:39:00 +0000 (11:39 -0800)]
omap: Remove old DEBUG_LL serial port options

These are no longer needed. Note that zoom boards
should now set their own function in uncompress.h
and debug-macro.S for the external UART.

Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap: Make uncompress code and DEBUG_LL code generic
Tony Lindgren [Fri, 29 Jan 2010 19:38:59 +0000 (11:38 -0800)]
omap: Make uncompress code and DEBUG_LL code generic

Define arch_decomp_setup() the same way as some other
architectures do. Use arch_id to configure the debug uart
based on the machine_is by storing it into the uart
scratchpad register for DEBUG_LL code to use.

Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap: Clean the serial port defines
Tony Lindgren [Fri, 29 Jan 2010 19:38:59 +0000 (11:38 -0800)]
omap: Clean the serial port defines

This way we don't have conflicts with the defines
with compiling in multiple omaps. Set the addresses
for uarts in struct omap_globals for the early serial
init code.

Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoARM: 5910/1: ARM: Add tmp register for addruart and loadsp
Tony Lindgren [Mon, 1 Feb 2010 22:26:53 +0000 (23:26 +0100)]
ARM: 5910/1: ARM: Add tmp register for addruart and loadsp

Otherwise more complicated uart configuration won't be possible.
We can use r1 for tmp register for both head.S and debug.S.

NOTE: This patch depends on another patch to add the the tmp register
into all debug-macro.S files. That can be done with:

$ sed -i -e "s/addruart,rx|addruart, rx/addruart, rx, tmp/"
arch/arm/*/include/*/debug-macro.S

Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
15 years agoMerge master.kernel.org:/home/rmk/linux-2.6-arm
Linus Torvalds [Fri, 5 Feb 2010 00:09:01 +0000 (16:09 -0800)]
Merge master.kernel.org:/home/rmk/linux-2.6-arm

* master.kernel.org:/home/rmk/linux-2.6-arm:
  ARM: Fix wrong register in proc-arm6_7.S data abort handler
  ARM: 5909/1: ARM: Correct the FPSCR bits setting when raising exceptions
  ARM: 5904/1: ARM: Always generate the IT instruction when compiling for Thumb-2
  ARM: 5907/1: ARM: Fix the reset on the RealView PBX Development board
  mx35: add a missing comma in a pad definition
  mx25: make the FEC AHB clk secondary of the IPG
  mx25: fix time accounting
  mx25: properly initialize clocks
  mx25: remove unused mx25_clocks_init() argument
  i.MX25: implement secondary clocks for uarts and fec
  i.MX25: Allow secondary clocks in DEFINE_CLOCK
  ARM: MX3: Fixed typo in declared enum type name.
  MXC: Add AUDMUXv2 register decode to debugfs
  mx31ads: Provide an IRQ range to the WM835x on the 1133-EV1 module
  mx31ads: Provide a name for EXPIO interrupt chip
  mx31ads: Allow enable/disable of switchable supplies

15 years agoMerge branch 'omap-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
Linus Torvalds [Fri, 5 Feb 2010 00:08:42 +0000 (16:08 -0800)]
Merge branch 'omap-fixes-for-linus' of git://git./linux/kernel/git/tmlind/linux-omap-2.6

* 'omap-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6:
  omap: Disable serial port autoidle by default
  omap: Fix access to already released memory in clk_debugfs_register_one()
  omap: Fix arch/arm/mach-omap2/mux.c: Off by one error
  omap: Fix 3630 mux errors
  OMAP2/3: GPMC: ensure valid clock pointer
  OMAP2/3: IRQ: ensure valid base address
  ARCH OMAP : enable ARCH_HAS_HOLES_MEMORYMODEL for OMAP
  omap: Remove old unused defines for OMAP_32KSYNCT_BASE
  omap: define _toggle_gpio_edge_triggering only for OMAP1

15 years agoMerge branch 'bugfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6
Linus Torvalds [Fri, 5 Feb 2010 00:08:15 +0000 (16:08 -0800)]
Merge branch 'bugfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6

* 'bugfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6:
  NFS: Don't clobber the attribute type in nfs_update_inode()
  NFS: Fix a umount race
  NFS: Fix an Oops when truncating a file
  NFS: Ensure that we handle NFS4ERR_STALE_STATEID correctly
  NFSv4.1: Don't call nfs4_schedule_state_recovery() unnecessarily
  NFSv4: Don't allow posix locking against servers that don't support it
  NFSv4: Ensure that the NFSv4 locking can recover from stateid errors
  NFS: Avoid warnings when CONFIG_NFS_V4=n
  NFS: Make nfs_commitdata_release static
  NFS: Try to commit unstable writes in nfs_release_page()
  NFS: Fix a reference leak in nfs_wb_cancel_page()

15 years agoMerge branch 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
Linus Torvalds [Fri, 5 Feb 2010 00:07:41 +0000 (16:07 -0800)]
Merge branch 'core-fixes-for-linus' of git://git./linux/kernel/git/tip/linux-2.6-tip

* 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
  futex: Handle futex value corruption gracefully
  futex: Handle user space corruption gracefully
  futex_lock_pi() key refcnt fix
  softlockup: Add sched_clock_tick() to avoid kernel warning on kgdb resume

15 years agoMerge git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-2.6-fixes
Linus Torvalds [Fri, 5 Feb 2010 00:06:48 +0000 (16:06 -0800)]
Merge git://git./linux/kernel/git/steve/gfs2-2.6-fixes

* git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-2.6-fixes:
  GFS2: Extend umount wait coverage to full glock lifetime
  GFS2: Wait for unlock completion on umount