pandora-kernel.git
14 years agoARM: OMAP1: Fix warnings about enabling 32 KiHz timer
Tony Lindgren [Fri, 7 Oct 2011 00:05:51 +0000 (17:05 -0700)]
ARM: OMAP1: Fix warnings about enabling 32 KiHz timer

Fix "Enable 32kHz OS timer in order to allow sleep states in idle"
warning. We are now compiling in bothe MPU timer and 32 KiHz timer,
so this warning is only valid when CONFIG_OMAP_32K_TIMER is not set.

Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years agoLinux-omap rebuilt: Merged fixes-part2, updated testing-misc with DT append
Tony Lindgren [Thu, 6 Oct 2011 23:58:11 +0000 (16:58 -0700)]
Linux-omap rebuilt: Merged fixes-part2, updated testing-misc with DT append

$ git checkout -b tmp-rebuild-1317945478 linus
$ git merge -m "Merge fixes-part2 dt-merge soc board testing-board" fixes-part2 dt-merge soc board testing-board
$ git merge -s ours master
$ git checkout master
$ git merge tmp-rebuild-1317945478

To view the changes since the last rebuild, please do
$ git diff b582dcf16ba63cd7ad2e5cd00ebf36fc72257513..0bf77c61220622695527aaac335a31b3bea0b8b5 arch/arm/*omap*/

Merge branch 'master' into tmp-rebuild-1317945478

14 years agoMerge fixes-part2 dt-merge soc board testing-board
Tony Lindgren [Thu, 6 Oct 2011 23:57:58 +0000 (16:57 -0700)]
Merge fixes-part2 dt-merge soc board testing-board

Merge branches 'fixes-part2', 'dt-merge', 'soc', 'board' and 'testing-board' into tmp-rebuild-1317945478

14 years agoMerge branch 'testing-misc' into dt-merge
Tony Lindgren [Thu, 6 Oct 2011 23:57:25 +0000 (16:57 -0700)]
Merge branch 'testing-misc' into dt-merge

Conflicts:
arch/arm/mach-omap1/board-ams-delta.c
arch/arm/mach-omap1/board-generic.c
arch/arm/mach-omap1/board-h2.c
arch/arm/mach-omap1/board-h3.c
arch/arm/mach-omap1/board-nokia770.c
arch/arm/mach-omap1/board-osk.c
arch/arm/mach-omap1/board-palmte.c
arch/arm/mach-omap1/board-palmtt.c
arch/arm/mach-omap1/board-palmz71.c
arch/arm/mach-omap1/board-sx1.c
arch/arm/mach-omap1/board-voiceblue.c
arch/arm/mach-omap2/board-generic.c

14 years agoARM:OMAP4 add Phytec phyCORE-OMAP4 board
Jan Weitzel [Thu, 6 Oct 2011 23:56:42 +0000 (16:56 -0700)]
ARM:OMAP4 add Phytec phyCORE-OMAP4 board

This adds support for the Phytec OMAP4430 board called phyCORE-OMAP4 PCM049.

Signed-off-by: Jan Weitzel <j.weitzel@phytec.de>
[tony@atomide.com: updated for timer and twl cleanup, and to select the board by default]
Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years agoInitial B&N Nook Color (encore) support
Oleg Drokin [Thu, 6 Oct 2011 23:56:41 +0000 (16:56 -0700)]
Initial B&N Nook Color (encore) support

Bare-bones board file, comes with serial console, gpio keys,
MMC/SDCard and USB (peripheral) support.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
[tony@atomide.com: updated for irq and timer cleanup and to select the board by default]
Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years agoARM: OMAP: AM3517: Support for MMC1 voltages
Abhilash K V [Thu, 6 Oct 2011 23:56:32 +0000 (16:56 -0700)]
ARM: OMAP: AM3517: Support for MMC1 voltages

This patch fixes the following error message which appears
while intializing MMC1 on the AM3517 EVM base-board:
    mmc0: host doesn't support card's voltages
    mmc0: error -22 whilst initialising SD card
The ocr_mask, which enumerates the volatges supported by the
MMC card was not being indicated before, assuming that a separate
Vcc regulator maybe another controllable regulator driver would be
doing this. This patch statically specifies a subset of the voltages
supported by the MMC driver, which are provided by the current fixed
voltage regulator on AM3517 EVM.

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Abhilash K V <abhilash.kv@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years agoARM: OMAP: AM3517EVM: Add support for base-board MMC slot
Vaibhav Hiremath [Thu, 6 Oct 2011 23:56:31 +0000 (16:56 -0700)]
ARM: OMAP: AM3517EVM: Add support for base-board MMC slot

Add support for base-board MMC slot

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Abhilash K V <abhilash.kv@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years agoarm:omap:am33xx: Update common omap platform files
Afzal Mohammed [Thu, 6 Oct 2011 23:56:12 +0000 (16:56 -0700)]
arm:omap:am33xx: Update common omap platform files

This patch updates the common platform files with AM335X device
support (AM33XX family).

The approach taken in this patch is,
AM33XX device will be considered as OMAP3 variant, and a separate
SoC class created for AM33XX family of devices with a subclass type
for AM335X device, which is newly added device in the family.

This means, cpu_is_omap34xx(), cpu_is_am33xx() and cpu_is_am335x()
checks will return success on AM335X device.
A kernel config option CONFIG_SOC_OMAPAM33XX is added under OMAP3
to include support for AM33XX build.

Also, cpu_mask and RATE_IN_XXX flags have crossed 8 bit hence
struct clksel_rate.flags, struct prcm_config.flags and cpu_mask
are changed to u16 from u8.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Cc: Hemant Pedanekar <hemantp@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years agoARM: mach-davinci: make DAVINCI_UART_INFO into a relative offset
Nicolas Pitre [Thu, 6 Oct 2011 23:47:53 +0000 (16:47 -0700)]
ARM: mach-davinci: make DAVINCI_UART_INFO into a relative offset

This is the first step to remove PLAT_PHYS_OFFSET usage from the debug
UART code.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Tested-by: Kevin Hilman <khilman@ti.com>
14 years agoARM: mach-omap2: clean up debug-macro.S
Nicolas Pitre [Thu, 6 Oct 2011 23:47:47 +0000 (16:47 -0700)]
ARM: mach-omap2: clean up debug-macro.S

This achieves two goals:

1) Get rid of omap_uart_v2p() and omap_uart_p2v() which were the last users
   of PLAT_PHYS_OFFSET.

2) Remove the probing of the M bit in the CP15 control reg and make
   the access to the .data variables completely position independent.

There is a catch though: the busyuart macro needs to know where the LSR
register is which might be at a different offset depending on the hardware.
Given that this macro is given only two registers and that one of them
must be preserved, the trick is to always pass the LSR register address
around, and deduce the base address for the THR register by masking out
the LSR offset in senduart instead.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Tested-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
14 years agoARM: mach-omap1: clean up debug-macro.S
Nicolas Pitre [Thu, 6 Oct 2011 23:47:41 +0000 (16:47 -0700)]
ARM: mach-omap1: clean up debug-macro.S

This achieves two goals:

1) Get rid of omap_uart_v2p() and omap_uart_p2v() which were the last users
   of PLAT_PHYS_OFFSET.

2) Remove the probing of the M bit in the CP15 control reg and make
   the access to the .data variables completely position independent.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Tested-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
14 years agoARM: plat-omap: make OMAP_UART_INFO into a relative offset
Nicolas Pitre [Thu, 6 Oct 2011 23:47:34 +0000 (16:47 -0700)]
ARM: plat-omap: make OMAP_UART_INFO into a relative offset

This is the first step to remove PLAT_PHYS_OFFSET usage from the debug
UART code.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Tested-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
14 years agoARM: add an extra temp register to the low level debugging addruart macro
Nicolas Pitre [Thu, 6 Oct 2011 23:47:27 +0000 (16:47 -0700)]
ARM: add an extra temp register to the low level debugging addruart macro

Some platforms (like OMAP not to name it) are doing rather complicated
hacks just to determine the base UART address to use.  Let's give their
addruart macro some slack by providing an extra work register which will
allow for much needed cleanups.

This is basically a no-op as this commit is only adding the extra argument
to the macro but no one is using it yet.

Signed-off-by: nicolas Pitre <nicolas.pitre@linaro.org>
Reviewed-by: Kevin Hilman <khilman@ti.com>
14 years agoARM: zImage: prevent constant copy+rebuild of lib1funcs.S
Nicolas Pitre [Thu, 6 Oct 2011 23:46:35 +0000 (16:46 -0700)]
ARM: zImage: prevent constant copy+rebuild of lib1funcs.S

The rule to copy this file doesn't have to be forced.  However
lib1funcs.[So] have to be listed amongst the targets.

This prevents zImage from being recreated needlessly.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Dave Martin <dave.martin@linaro.org>
Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
Tested-by: David Brown <davidb@codeaurora.org>
14 years agoARM: zImage: allow supplementing appended DTB with traditional ATAG data
Nicolas Pitre [Thu, 6 Oct 2011 23:46:30 +0000 (16:46 -0700)]
ARM: zImage: allow supplementing appended DTB with traditional ATAG data

Some old bootloaders can't be updated to a device tree capable one,
yet they provide ATAGs with memory configuration, the ramdisk address,
the kernel cmdline string, etc.  To allow a device tree enabled
kernel to be used with such bootloaders, it is necessary to convert those
ATAGs into FDT properties and fold them into the DTB appended to zImage.

Currently the following ATAGs are converted:

ATAG_CMDLINE
ATAG_MEM
ATAG_INITRD2

If the corresponding information already exists in the appended DTB, it
is replaced, otherwise the required node is created to hold it.

The code looks for ATAGs at the location pointed by the value of r2 upon
entry into the zImage code.  If no ATAGs are found there, an attempt at
finding ATAGs at the typical 0x100 offset from start of RAM is made.
Otherwise the DTB is left unchanged.

Thisstarted from an older patch from John Bonesio <bones@secretlab.ca>,
with contributions from David Brown <davidb@codeaurora.org>.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Dave Martin <dave.martin@linaro.org>
Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
Tested-by: David Brown <davidb@codeaurora.org>
14 years agoARM: zImage: gather some string functions into string.c
Nicolas Pitre [Thu, 6 Oct 2011 23:46:25 +0000 (16:46 -0700)]
ARM: zImage: gather some string functions into string.c

This is a small subset of string functions needed by commits to come.
Except for memcpy() which is unchanged from its original location, their
implementation is meant to be small, and -Os is enforced to prevent gcc
from doing pointless loop unrolling.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Dave Martin <dave.martin@linaro.org>
Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
Tested-by: David Brown <davidb@codeaurora.org>
14 years agoARM: zImage: make sure appended DTB doesn't get overwritten by kernel .bss
Nicolas Pitre [Thu, 6 Oct 2011 23:46:19 +0000 (16:46 -0700)]
ARM: zImage: make sure appended DTB doesn't get overwritten by kernel .bss

The appended DTB gets relocated with the decompressor code to get out
of the way of the decompressed kernel.  However the kernel's .bss section
may be larger than the relocated code and data, and then the DTB gets
overwritten.  Let's make sure the relocation takes care of moving zImage
far enough so no such conflict with .bss occurs.

Thanks to Tony Lindgren <tony@atomide.com> for figuring out this issue.

While at it, let's clean up the code a bit so that the wont_overwrite
symbol is used while determining if a conflict exists, making the above
change more precise as well as eliminating some ARM/THUMB alternates.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Dave Martin <dave.martin@linaro.org>
Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
Tested-by: David Brown <davidb@codeaurora.org>
14 years agoARM: zImage: Allow the appending of a device tree binary
John Bonesio [Thu, 6 Oct 2011 23:46:14 +0000 (16:46 -0700)]
ARM: zImage: Allow the appending of a device tree binary

This patch provides the ability to boot using a device tree that is appended
to the raw binary zImage (e.g. cat zImage <filename>.dtb > zImage_w_dtb).

Signed-off-by: John Bonesio <bones@secretlab.ca>
[nico: ported to latest zImage changes plus additional cleanups/improvements]
Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Tony Lindgren <tony@atomide.com>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Dave Martin <dave.martin@linaro.org>
Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
Tested-by: David Brown <davidb@codeaurora.org>
14 years agoARM: zImage: ensure it is always a multiple of 64 bits in size
Nicolas Pitre [Thu, 6 Oct 2011 23:46:08 +0000 (16:46 -0700)]
ARM: zImage: ensure it is always a multiple of 64 bits in size

This is needed for proper alignment when the DTB appending feature
is used.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Dave Martin <dave.martin@linaro.org>
Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
Tested-by: David Brown <davidb@codeaurora.org>
14 years agoARM: OMAP: change get_context_loss_count ret value to int
Tomi Valkeinen [Thu, 9 Jun 2011 13:56:23 +0000 (16:56 +0300)]
ARM: OMAP: change get_context_loss_count ret value to int

get_context_loss_count functions return context loss count as u32, and
zero means an error. However, zero is also returned when context has
never been lost and could also be returned when the context loss count
has wrapped and goes to zero.

Change the functions to return an int, with negative value meaning an
error.

OMAP HSMMC code uses omap_pm_get_dev_context_loss_count(), but as the
hsmmc code handles the returned value as an int, with negative value
meaning an error, this patch actually fixes hsmmc code also.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Acked-by: Kevin Hilman <khilman@ti.com>
Acked-by: Paul Walmsley <paul@pwsan.com>
[tony@atomide.com: updated to fix a warning with recent dmtimer changes]
Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years agoARM: OMAP2: Fix H4 matrix keyboard warning
Tony Lindgren [Thu, 6 Oct 2011 22:43:00 +0000 (15:43 -0700)]
ARM: OMAP2: Fix H4 matrix keyboard warning

Convert to use matrix keyboard to remove the warning
"Please update the board to use matrix-keypad driver".

Based on similar setup in palmtc.c. Note that this
patch is compile tested only because of lack of working
hardware.

Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years agoARM: OMAP2+: timer: Remove omap_device_pm_latency
Benoit Cousson [Tue, 4 Oct 2011 21:20:41 +0000 (23:20 +0200)]
ARM: OMAP2+: timer: Remove omap_device_pm_latency

Remove the structure since a default one is now available.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Cc: Kevin Hilman <khilman@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years agoARM: OMAP2+: clock data: Remove redundant timer clkdev
Benoit Cousson [Tue, 4 Oct 2011 21:20:40 +0000 (23:20 +0200)]
ARM: OMAP2+: clock data: Remove redundant timer clkdev

The commit 318c3e15cd55c73a26ae22a65a8183655b3003f9
added some "fck" clock alias to timer devices that are
not needed anymore since hwmod framework will create
them automatically.

A warning was added to highlight and thus fix the redundancy.

[    0.616424]  omap_timer.1: alias fck already exists
[    0.621948]  omap_timer.2: alias fck already exists
[    0.627380]  omap_timer.3: alias fck already exists
[    0.632781]  omap_timer.4: alias fck already exists
[    0.638214]  omap_timer.5: alias fck already exists
[    0.643615]  omap_timer.6: alias fck already exists
[    0.649078]  omap_timer.7: alias fck already exists
[    0.654479]  omap_timer.8: alias fck already exists
[    0.659881]  omap_timer.9: alias fck already exists
[    0.665283]  omap_timer.10: alias fck already exists
[    0.670776]  omap_timer.11: alias fck already exists

Remove all the clkdev entries for timer fck alias.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Cc: Tarun Kanti DebBarma <tarun.kanti@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years agoARM: OMAP4: hsmmc: configure SDMMC1_DR0 properly
Balaji T K [Mon, 3 Oct 2011 12:22:51 +0000 (17:52 +0530)]
ARM: OMAP4: hsmmc: configure SDMMC1_DR0 properly

Fix the typo, instead it should be SDMMC1
USBC1 is not related to MMC1 I/Os

Signed-off-by: Balaji T K <balajitk@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years agoARM: OMAP4: hsmmc: Fix Pbias configuration on regulator OFF
Balaji T K [Mon, 3 Oct 2011 12:22:50 +0000 (17:52 +0530)]
ARM: OMAP4: hsmmc: Fix Pbias configuration on regulator OFF

MMC1 data line IO's are powered down in before set regulator function.
IO's should not be powered ON when regulator is OFF.
Keep the IO's in power pown mode after regulator OFF otherwise VMODE_ERROR
interrupt is generated due to mismatch in input (regulator)
voltage and MMC IO drive voltage.
Delete incorrect comments which are not applicable for OMAP4.

Signed-off-by: Balaji T K <balajitk@ti.com>
Signed-off-by: Kishore Kadiyala <kishore.kadiyala@ti.com>
Reported-by: Viswanath Puttagunta <vishp@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years agoARM: OMAP: Devkit8000: Remove double omap_mux_init_gpio
Thomas Weber [Tue, 6 Sep 2011 15:11:49 +0000 (17:11 +0200)]
ARM: OMAP: Devkit8000: Remove double omap_mux_init_gpio

Remove the init of card detect pin because
omap_mux_init_gpio() is called during hsmmc initialization
for the write protect and card detect pin.

Signed-off-by: Thomas Weber <weber@corscience.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years agoARM: OMAP: usb: musb: OMAP: Delete unused function
Bjarne Steinsbo [Thu, 6 Oct 2011 20:03:46 +0000 (13:03 -0700)]
ARM: OMAP: usb: musb: OMAP: Delete unused function

Not in use anymore.

Signed-off-by: Bjarne Steinsbo <bsteinsbo@gmail.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years agoARM: OMAP: Warn if omap_ioremap is called before SoC detection
Tony Lindgren [Thu, 6 Oct 2011 00:22:39 +0000 (17:22 -0700)]
ARM: OMAP: Warn if omap_ioremap is called before SoC detection

We don't have cpu_is_omapxxxx SoC detection initialized until
SoC detection is initialized from init_early.

Note that with the common map_io we should no longer need
cpu_is_omapxxxx for map_io.

Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years agoARM: OMAP3: hwmod: fix variant registration and remove SmartReflex from common list
Paul Walmsley [Thu, 6 Oct 2011 20:39:28 +0000 (14:39 -0600)]
ARM: OMAP3: hwmod: fix variant registration and remove SmartReflex from common list

Commit d6504acd2125984c61dce24727dd3842d0144015 ("OMAP2+: hwmod:
remove OMAP_CHIP*") tests the inverse condition of what it should be
testing for the return value from omap_hwmod_register().  This causes
several IP blocks to not be registered on several OMAP3 family devices.

Fixing that bug also unmasked another bug, originally reported by
Chase Maupin <chase.maupin@ti.com> and then subsequently by Abhilash K
V <abhilash.kv@ti.com>, which caused SmartReflex IP blocks to be
registered on SoCs that don't support them.

Thanks to Russell King - ARM Linux <linux@arm.linux.org.uk> for comments
on a previous version of the patch.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Chase Maupin <chase.maupin@ti.com>
Cc: Abhilash K V <abhilash.kv@ti.com>
Cc: Russell King - ARM Linux <linux@arm.linux.org.uk>
Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years agoLinux-omap rebuilt: Updated to -rc9, merge sram map_io changes, please test
Tony Lindgren [Thu, 6 Oct 2011 02:12:12 +0000 (19:12 -0700)]
Linux-omap rebuilt: Updated to -rc9, merge sram map_io changes, please test

$ git checkout -b tmp-rebuild-1317867125 linus
$ git merge -m "Merge dt-merge board testing-board" dt-merge board testing-board
$ git merge -s ours master
$ git checkout master
$ git merge tmp-rebuild-1317867125

To view the changes since the last rebuild, please do
$ git diff c3ed934ee5c306540e6d0f3e0ce6ed8a8d27c947..7146f1d8fc8983bfce945ede61739c0a05e3f5c0 arch/arm/*omap*/

Merge branch 'master' into tmp-rebuild-1317867125

14 years agoMerge dt-merge board testing-board
Tony Lindgren [Thu, 6 Oct 2011 02:12:06 +0000 (19:12 -0700)]
Merge dt-merge board testing-board

Merge branches 'dt-merge', 'board' and 'testing-board' into tmp-rebuild-1317867125

14 years agoMerge branch 'sram-map-io' into dt-merge
Tony Lindgren [Thu, 6 Oct 2011 02:09:23 +0000 (19:09 -0700)]
Merge branch 'sram-map-io' into dt-merge

Conflicts:
arch/arm/mach-omap1/board-ams-delta.c
arch/arm/mach-omap1/board-generic.c
arch/arm/mach-omap1/board-h2.c
arch/arm/mach-omap1/board-h3.c
arch/arm/mach-omap1/board-nokia770.c
arch/arm/mach-omap1/board-osk.c
arch/arm/mach-omap1/board-palmte.c
arch/arm/mach-omap1/board-palmtt.c
arch/arm/mach-omap1/board-palmz71.c
arch/arm/mach-omap1/board-sx1.c
arch/arm/mach-omap1/board-voiceblue.c

14 years agoMerge branch 'testing-misc' into dt-merge
Tony Lindgren [Thu, 6 Oct 2011 02:08:47 +0000 (19:08 -0700)]
Merge branch 'testing-misc' into dt-merge

Conflicts:
arch/arm/mach-omap2/board-generic.c

14 years agoARM:OMAP4 add Phytec phyCORE-OMAP4 board
Jan Weitzel [Thu, 6 Oct 2011 01:48:03 +0000 (18:48 -0700)]
ARM:OMAP4 add Phytec phyCORE-OMAP4 board

This adds support for the Phytec OMAP4430 board called phyCORE-OMAP4 PCM049.

Signed-off-by: Jan Weitzel <j.weitzel@phytec.de>
[tony@atomide.com: updated for timer and twl cleanup, and to select the board by default]
Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years agoInitial B&N Nook Color (encore) support
Oleg Drokin [Thu, 6 Oct 2011 01:48:03 +0000 (18:48 -0700)]
Initial B&N Nook Color (encore) support

Bare-bones board file, comes with serial console, gpio keys,
MMC/SDCard and USB (peripheral) support.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
[tony@atomide.com: updated for irq and timer cleanup and to select the board by default]
Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years agoARM: OMAP: BUG if omap_ioremap is called before SoC detection
Tony Lindgren [Thu, 6 Oct 2011 00:22:39 +0000 (17:22 -0700)]
ARM: OMAP: BUG if omap_ioremap is called before SoC detection

We don't have cpu_is_omapxxxx SoC detection initialized until
SoC detection is initialized from init_early. Just BUG for
now if omap_ioremap is being called too early.

Note that with the common map_io we should no longer need
cpu_is_omapxxxx for map_io.

Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years agoARM: OMAP: Move set_globals initialization to happen in init_early
Tony Lindgren [Wed, 5 Oct 2011 01:17:41 +0000 (18:17 -0700)]
ARM: OMAP: Move set_globals initialization to happen in init_early

Otherwise we can't do generic map_io as we currently rely on
static mappings that work only because of arch_ioremap.

Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years agoARM: OMAP: Move set_globals initialization to happen in init_early
Tony Lindgren [Wed, 5 Oct 2011 01:17:41 +0000 (18:17 -0700)]
ARM: OMAP: Move set_globals initialization to happen in init_early

Otherwise we can't do generic map_io as we currently rely on
static mappings that work only because of arch_ioremap.

Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years agoARM: OMAP: Map SRAM later on with ioremap_exec()
Tony Lindgren [Tue, 4 Oct 2011 20:52:57 +0000 (13:52 -0700)]
ARM: OMAP: Map SRAM later on with ioremap_exec()

This allows us to remove omap hacks for map_io.

Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years agoARM: OMAP: Remove calls to SRAM allocations for framebuffer
Tony Lindgren [Tue, 4 Oct 2011 23:21:42 +0000 (16:21 -0700)]
ARM: OMAP: Remove calls to SRAM allocations for framebuffer

This assumes fixed mappings which will not work once we move
to use ioremap_exec(). It seems that these are currently
not in use, or in use for some out of tree corner cases.

If SRAM support for framebuffer is wanted, it should be done
with ioremap in the driver.

Note that further removal of the code can now be done,
but that can be done seprately by the driver maintainers.

Acked-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years agoARM: OMAP: Avoid cpu_is_omapxxxx usage until map_io is done
Tony Lindgren [Wed, 5 Oct 2011 01:26:28 +0000 (18:26 -0700)]
ARM: OMAP: Avoid cpu_is_omapxxxx usage until map_io is done

This way we don't need to initialize SoC detection early
and can start using generic map_io.

Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years agoARM: OMAP1: Use generic map_io, init_early and init_irq
Tony Lindgren [Wed, 5 Oct 2011 22:14:02 +0000 (15:14 -0700)]
ARM: OMAP1: Use generic map_io, init_early and init_irq

This allows removing omap hacks for map_io allowing generic
map_io.

Note that in the future we can't do cpu_is_omapxxxx detection
until in init_early. This means that board-innovator.c now
assumes 15xx only, and board-generic.c assumes 16xx only.
This is best fixed later on by passing the SoC type from
device tree.

Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years agoARM: Add __arm_ioremap_exec for mapping external memory as MT_MEMORY
Tony Lindgren [Wed, 5 Oct 2011 22:14:01 +0000 (15:14 -0700)]
ARM: Add __arm_ioremap_exec for mapping external memory as MT_MEMORY

This allows mapping external memory such as SRAM for use.

This is needed for some small chunks of code, such as reprogramming
SDRAM memory source clocks that can't be executed in SDRAM. Other
use cases include some PM related code.

Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years agoLinux 3.1-rc9 v3.1-rc9
Linus Torvalds [Wed, 5 Oct 2011 01:11:50 +0000 (18:11 -0700)]
Linux 3.1-rc9

14 years agoLinux-omap rebuilt: Merged rebuilt dt-base and dt one more time to avoid duplicate...
Tony Lindgren [Tue, 4 Oct 2011 21:13:28 +0000 (14:13 -0700)]
Linux-omap rebuilt: Merged rebuilt dt-base and dt one more time to avoid duplicate commits

$ git checkout -b tmp-rebuild-1317762795 linus
$ git merge -m "Merge dt-merge board testing-board cbus" dt-merge board testing-board cbus
$ git merge -s ours master
$ git checkout master
$ git merge tmp-rebuild-1317762795

To view the changes since the last rebuild, please do
$ git diff 5e2564df31555377ee96e718d025d198035143ac..1904e448e9c809e5821a8d68cef33d821085ee8d arch/arm/*omap*/

Merge branch 'master' into tmp-rebuild-1317762795

14 years agoMerge dt-merge board testing-board cbus
Tony Lindgren [Tue, 4 Oct 2011 21:13:18 +0000 (14:13 -0700)]
Merge dt-merge board testing-board cbus

Merge branches 'dt-merge', 'board', 'testing-board' and 'cbus' into tmp-rebuild-1317762795

14 years agoMerge branch 'testing-misc' into dt-merge
Tony Lindgren [Tue, 4 Oct 2011 21:08:10 +0000 (14:08 -0700)]
Merge branch 'testing-misc' into dt-merge

Conflicts:
arch/arm/mach-omap2/board-generic.c

14 years agoMerge branch 'for_3.2/3_omap_devicetree' of git://gitorious.org/omap-pm/linux into dt
Tony Lindgren [Tue, 4 Oct 2011 20:54:30 +0000 (13:54 -0700)]
Merge branch 'for_3.2/3_omap_devicetree' of git://gitorious.org/omap-pm/linux into dt

14 years agoarm/dts: OMAP3+: Add mpu, dsp and iva nodes
Benoit Cousson [Tue, 16 Aug 2011 09:49:08 +0000 (11:49 +0200)]
arm/dts: OMAP3+: Add mpu, dsp and iva nodes

Add nodes for devices used by PM code (mpu, dsp, iva).

Add a cpus node as well as recommended in the DT spec.

Remove mpu, dsp, iva devices init if is populated.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Cc: Kevin Hilman <khilman@ti.com>
14 years agoarm/dts: OMAP4: Add a main ocp entry bound to l3-noc driver
Benoit Cousson [Fri, 12 Aug 2011 11:48:47 +0000 (13:48 +0200)]
arm/dts: OMAP4: Add a main ocp entry bound to l3-noc driver

Used the main OCP node to add bindings with the l3_noc driver.
Remove l3_noc static device creation if DT is populated.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
14 years agoARM: OMAP2+: l3-noc: Add support for device-tree
Benoit Cousson [Fri, 12 Aug 2011 11:52:50 +0000 (13:52 +0200)]
ARM: OMAP2+: l3-noc: Add support for device-tree

Add device-tree support for the l3-noc driver.

Use platform_driver_register to defer the probing at device init
time.

Add documentation for the l3-noc bindings.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
14 years agoARM: OMAP2+: board-generic: Add i2c static init
Benoit Cousson [Thu, 22 Sep 2011 19:52:02 +0000 (21:52 +0200)]
ARM: OMAP2+: board-generic: Add i2c static init

Still needed to boot until the i2c & twl driver is adapted to
device-tree. Otherwise the voltage control code will try to
access the twl and crash.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Cc: Tony Lindgren <tony@atomide.com>
14 years agoARM: OMAP2+: board-generic: Add DT support to generic board
Benoit Cousson [Tue, 20 Sep 2011 19:24:47 +0000 (21:24 +0200)]
ARM: OMAP2+: board-generic: Add DT support to generic board

Re-cycle the original board-generic.c file to support Device Tree
for every OMAP2+ variants.

The current approach is an intermediate step before having only
one machine descriptor that will use some generic DT aware
functions.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Cc: Tony Lindgren <tony@atomide.com>
14 years agoarm/dts: Add support for OMAP3 Beagle board
Benoit Cousson [Wed, 13 Jul 2011 20:14:54 +0000 (01:44 +0530)]
arm/dts: Add support for OMAP3 Beagle board

Add OMAP3 beagleboard DTS file to use the omap3.dtsi SoC file.

Add a default bootargs line to allow a boot from RAMDISK.

Add memory node information.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Cc: G, Manjunath Kondaiah <manjugk@ti.com>
14 years agoarm/dts: Add initial device tree support for OMAP3 SoC
Benoit Cousson [Tue, 16 Aug 2011 15:32:01 +0000 (21:02 +0530)]
arm/dts: Add initial device tree support for OMAP3 SoC

Add initial OMAP3 soc file with empty ocp bus.

Based on initial patch from Manju:
http://www.spinics.net/lists/linux-omap/msg55830.html

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Cc: G, Manjunath Kondaiah <manjugk@ti.com>
14 years agoarm/dts: Add support for OMAP4 SDP board
Benoit Cousson [Tue, 16 Aug 2011 13:59:52 +0000 (15:59 +0200)]
arm/dts: Add support for OMAP4 SDP board

Add the SDP/Blaze (Software Development Board) support with
device tree.
That file is based on the omap4-panda.dts.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Cc: G, Manjunath Kondaiah <manjugk@ti.com>
14 years agoarm/dts: Add support for OMAP4 PandaBoard
Benoit Cousson [Tue, 16 Aug 2011 13:57:51 +0000 (15:57 +0200)]
arm/dts: Add support for OMAP4 PandaBoard

Based on the original omap4-panda.dts file from Manju.
http://www.spinics.net/lists/linux-omap/msg55836.html

Add memory information and a default bootargs to allow
a boot from RAMDISK.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Cc: G, Manjunath Kondaiah <manjugk@ti.com>
14 years agoarm/dts: Add initial device tree support for OMAP4 SoC
Benoit Cousson [Tue, 9 Aug 2011 15:15:17 +0000 (17:15 +0200)]
arm/dts: Add initial device tree support for OMAP4 SoC

Add initial device-tree support for OMAP4 SoC.

This is based on the original panda board patch done by Manju:
http://permalink.gmane.org/gmane.linux.ports.arm.omap/60393

Add the generic GIC interrupt-controller from ARM.

Add an empty "soc" node to contain non memory mapped IPs
(DSP, MPU, IPU...).

Note: Since reg, irq and dma are provided by hwmod for the
moment, these attributes will not be present at all in DTS
to highlight the gap. They will be added as soon as dma bindings
will be there and drivers will be adapted.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Cc: G, Manjunath Kondaiah <manjugk@ti.com>
14 years agoMerge git://github.com/davem330/net
Linus Torvalds [Tue, 4 Oct 2011 17:37:06 +0000 (10:37 -0700)]
Merge git://github.com/davem330/net

* git://github.com/davem330/net:
  pch_gbe: Fixed the issue on which a network freezes
  pch_gbe: Fixed the issue on which PC was frozen when link was downed.
  make PACKET_STATISTICS getsockopt report consistently between ring and non-ring
  net: xen-netback: correctly restart Tx after a VM restore/migrate
  bonding: properly stop queuing work when requested
  can bcm: fix incomplete tx_setup fix
  RDSRDMA: Fix cleanup of rds_iw_mr_pool
  net: Documentation: Fix type of variables
  ibmveth: Fix oops on request_irq failure
  ipv6: nullify ipv6_ac_list and ipv6_fl_list when creating new socket
  cxgb4: Fix EEH on IBM P7IOC
  can bcm: fix tx_setup off-by-one errors
  MAINTAINERS: tehuti: Alexander Indenbaum's address bounces
  dp83640: reduce driver noise
  ptp: fix L2 event message recognition

14 years agoMerge branch 'fix/asoc' of git://github.com/tiwai/sound
Linus Torvalds [Tue, 4 Oct 2011 16:59:22 +0000 (09:59 -0700)]
Merge branch 'fix/asoc' of git://github.com/tiwai/sound

* 'fix/asoc' of git://github.com/tiwai/sound:
  ASoC: omap_mcpdm_remove cannot be __devexit
  ASoC: Fix setting update bits for WM8753_LADC and WM8753_RADC
  ASoC: use a valid device for dev_err() in Zylonite

14 years agoMerge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux
Linus Torvalds [Tue, 4 Oct 2011 16:54:18 +0000 (09:54 -0700)]
Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux

* 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
  drm/radeon/kms: fix channel_remap setup (v2)
  drm/radeon: Set cursor x/y to 0 when x/yorigin > 0.
  drm/radeon: Update AVIVO cursor coordinate origin before x/yorigin calculation.
  drm/radeon: Simplify cursor x/yorigin calculation.
  drm/radeon/kms: fix cursor image off-by-one error
  drm/radeon/kms: Fix logic error in DP HPD handler
  drm/radeon/kms: add retry limits for native DP aux defer
  drm/radeon/kms: fix regression in DP aux defer handling

14 years agoMerge branch 'spi/merge' of git://git.secretlab.ca/git/linux-2.6
Linus Torvalds [Tue, 4 Oct 2011 16:52:56 +0000 (09:52 -0700)]
Merge branch 'spi/merge' of git://git.secretlab.ca/git/linux-2.6

* 'spi/merge' of git://git.secretlab.ca/git/linux-2.6:
  spi-topcliff-pch: Fix overrun issue
  spi-topcliff-pch: Add recovery processing in case FIFO overrun error occurs
  spi-topcliff-pch: Fix CPU read complete condition issue
  spi-topcliff-pch: Fix SSN Control issue
  spi-topcliff-pch: add tx-memory clear after complete transmitting

14 years agoPCI: Disable MPS configuration by default
Jon Mason [Mon, 3 Oct 2011 14:50:20 +0000 (09:50 -0500)]
PCI: Disable MPS configuration by default

Add the ability to disable PCI-E MPS turning and using the BIOS
configured MPS defaults.  Due to the number of issues recently
discovered on some x86 chipsets, make this the default behavior.

Also, add the option for peer to peer DMA MPS configuration.  Peer to
peer DMA is outside the scope of this patch, but MPS configuration could
prevent it from working by having the MPS on one root port different
than the MPS on another.  To work around this, simply make the system
wide MPS the smallest possible value (128B).

Signed-off-by: Jon Mason <mason@myri.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
14 years agoARM: OMAP: omap_device: Add a method to build an omap_device from a DT node
Benoit Cousson [Wed, 10 Aug 2011 11:32:08 +0000 (13:32 +0200)]
ARM: OMAP: omap_device: Add a method to build an omap_device from a DT node

Add a notifier called during device_add phase. If an of_node is present,
retrieve the hwmod entry in order to populate properly the omap_device
structure.

For the moment the resource from the device-tree are overloaded.
DT does not support named resource yet, and thus, most driver will not
work without that information.

Add a documentation to capture the specifics OMAP bindings needed for
device-tree support.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Cc: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Kevin Hilman <khilman@ti.com>
14 years agoARM: OMAP: omap_device: Add omap_device_[alloc|delete] for DT integration
Benoit Cousson [Tue, 9 Aug 2011 14:47:01 +0000 (16:47 +0200)]
ARM: OMAP: omap_device: Add omap_device_[alloc|delete] for DT integration

Split the omap_device_build_ss into two smaller functions
that will allow to populate a platform_device already allocated by
device-tree.

The functionality of the omap_device_build_ss is still the same, but
the omap_device_alloc will be usable with devices already built by
device-tree.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
14 years agoof: Add helpers to get one string in multiple strings property
Benoit Cousson [Tue, 27 Sep 2011 15:45:43 +0000 (17:45 +0200)]
of: Add helpers to get one string in multiple strings property

Add of_property_read_string_index and of_property_count_strings
to retrieve one string inside a property that will contains
severals strings.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Kevin Hilman <khilman@ti.com>
14 years agoARM: OMAP2+: devices: Remove all omap_device_pm_latency structures
Benoit Cousson [Wed, 10 Aug 2011 13:30:09 +0000 (15:30 +0200)]
ARM: OMAP2+: devices: Remove all omap_device_pm_latency structures

Remove all these duplicated structures since a default one is now
available.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
14 years agoARM: OMAP: omap_device: Create a default omap_device_pm_latency
Benoit Cousson [Tue, 9 Aug 2011 14:54:19 +0000 (16:54 +0200)]
ARM: OMAP: omap_device: Create a default omap_device_pm_latency

Most devices are using the same default omap_device_pm_latency structure
during device built. In order to avoid the duplication of the same
structure everywhere, add a default structure that will be used if
the device does not have an explicit one.

Next patches will clean the duplicated structures.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Cc: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
14 years agoARM: OMAP2+: pm: Remove static devices variable for mpu, dsp, iva and l3 PM
Benoit Cousson [Tue, 16 Aug 2011 13:03:59 +0000 (15:03 +0200)]
ARM: OMAP2+: pm: Remove static devices variable for mpu, dsp, iva and l3 PM

Since the device pointer is now retrieved using the hwmod name, remove
the static variables used to store the device pointers for DSP, MPU, IVA
and L3 devices for PM/DVFS usage.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
14 years agoARM: OMAP2+: pm: Use hwmod name instead of dev pointer
Benoit Cousson [Tue, 16 Aug 2011 13:02:20 +0000 (15:02 +0200)]
ARM: OMAP2+: pm: Use hwmod name instead of dev pointer

Replace the struct device parameter of omap2_set_init_voltage
by the hwmod name. It will avoid having to store explicitely
the device pointer into a static variable.

Moreover, it will be a little bit more scalable if we introduce
new DVFS devices.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
14 years agoARM: OMAP3: beagle-board: Use the omap_hwmod_name_get_dev API
Benoit Cousson [Tue, 16 Aug 2011 12:01:23 +0000 (14:01 +0200)]
ARM: OMAP3: beagle-board: Use the omap_hwmod_name_get_dev API

Replace the multiple omap2_get_XXX_device APIs with the new
omap_hwmod_name_get_dev that uses the hwmod name to get the proper
device.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Cc: Nishanth Menon <nm@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
14 years agoARM: OMAP: omap_device: Add omap_device_get_by_hwmod_name
Nishanth Menon [Wed, 27 Jul 2011 20:02:32 +0000 (15:02 -0500)]
ARM: OMAP: omap_device: Add omap_device_get_by_hwmod_name

An API which translates a standard hwmod name to corresponding
platform_device is useful for drivers when they need to look up the
device associated with a hwmod name to map back into the device
structure pointers. These ideally should be used by drivers in
mach directory. Using a generic hwmod name like "gpu" instead of
the actual device name which could change in the future, allows
us to:
a) Could in effect help replace apis such as omap2_get_mpuss_device,
omap2_get_iva_device, omap2_get_l3_device, omap4_get_dsp_device,
etc..
b) Scale to more devices rather than be restricted to named functions
c) Simplify driver's platform_data from passing additional fields
all doing the same thing with different function pointer names
just for accessing a different device name.

Signed-off-by: Nishanth Menon <nm@ti.com>
[b-cousson@ti.com: Adapt it to the new pdev pointer inside od,
remove the unneeded helpers, and fold the next patch here]
Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
14 years agoMerge branches 'cleanup-part3', 'voltage', 'dmtimer' and 'l3' into dt-base
Tony Lindgren [Tue, 4 Oct 2011 16:47:06 +0000 (09:47 -0700)]
Merge branches 'cleanup-part3', 'voltage', 'dmtimer' and 'l3' into dt-base

14 years agodrm/radeon/kms: fix channel_remap setup (v2)
Alex Deucher [Tue, 4 Oct 2011 14:46:34 +0000 (10:46 -0400)]
drm/radeon/kms: fix channel_remap setup (v2)

Most asics just use the hw default value which requires
no explicit programming.  For those that need a different
value, the vbios will program it properly.  As such,
there's no need to program these registers explicitly
in the driver.  Changing MC_SHARED_CHREMAP requires a reload
of all data in vram otherwise its contents will be scambled.

Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=40103

v2: drop now unused channel_remap functions.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
14 years agoLinux-omap rebuilt: Remerged branches into dt-base because of duplicate merge
Tony Lindgren [Tue, 4 Oct 2011 16:21:28 +0000 (09:21 -0700)]
Linux-omap rebuilt: Remerged branches into dt-base because of duplicate merge

$ git checkout -b tmp-rebuild-1317745277 linus
$ git merge -m "Merge dt-merge board testing-board cbus" dt-merge board testing-board cbus
$ git merge -s ours master
$ git checkout master
$ git merge tmp-rebuild-1317745277

To view the changes since the last rebuild, please do
$ git diff 3f074538a586d997d138e2080acf2e2451f0f565..0cdbd17e9d60cf553a4c6c3e977dc655d2c46b91 arch/arm/*omap*/

Merge branch 'master' into tmp-rebuild-1317745277

14 years agoMerge dt-merge board testing-board cbus
Tony Lindgren [Tue, 4 Oct 2011 16:21:19 +0000 (09:21 -0700)]
Merge dt-merge board testing-board cbus

Merge branches 'dt-merge', 'board', 'testing-board' and 'cbus' into tmp-rebuild-1317745277

14 years agoMerge branch 'testing-misc' into dt-merge
Tony Lindgren [Tue, 4 Oct 2011 16:19:29 +0000 (09:19 -0700)]
Merge branch 'testing-misc' into dt-merge

Conflicts:
arch/arm/mach-omap2/board-generic.c

14 years agoMerge branch 'for_3.2/3_omap_devicetree' of git://gitorious.org/omap-pm/linux into dt
Tony Lindgren [Tue, 4 Oct 2011 16:17:15 +0000 (09:17 -0700)]
Merge branch 'for_3.2/3_omap_devicetree' of git://gitorious.org/omap-pm/linux into dt

Conflicts:
arch/arm/mach-omap2/omap_l3_noc.c

14 years agoMerge branches 'fixes' and 'l3' into dt-base
Tony Lindgren [Tue, 4 Oct 2011 16:16:22 +0000 (09:16 -0700)]
Merge branches 'fixes' and 'l3' into dt-base

14 years agospi-topcliff-pch: Fix overrun issue
Tomoya MORINAGA [Tue, 6 Sep 2011 08:16:38 +0000 (17:16 +0900)]
spi-topcliff-pch: Fix overrun issue

We found that adding load, Rx data sometimes drops.(with DMA transfer mode)
The cause is that before starting Rx-DMA processing, Tx-DMA processing starts.
This causes FIFO overrun occurs.

This patch fixes the issue by modifying FIFO tx-threshold and DMA descriptor
size like below.

                      Current                   this patch
Rx-descriptor   4Byte+12Byte*341    -->    12Byte*340-4Byte-12Byte
Rx-threshold                   (Not modified)
Tx-descriptor   4Byte+12Byte*341    -->    16Byte-12Byte*340
Rx-threshold    12Byte              -->    2Byte

Signed-off-by: Tomoya MORINAGA <tomoya-linux@dsn.okisemi.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
14 years agospi-topcliff-pch: Add recovery processing in case FIFO overrun error occurs
Tomoya MORINAGA [Tue, 6 Sep 2011 08:16:37 +0000 (17:16 +0900)]
spi-topcliff-pch: Add recovery processing in case FIFO overrun error occurs

Add recovery processing in case FIFO overrun error occurs with DMA transfer mode.

Signed-off-by: Tomoya MORINAGA <tomoya-linux@dsn.okisemi.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
14 years agospi-topcliff-pch: Fix CPU read complete condition issue
Tomoya MORINAGA [Tue, 6 Sep 2011 08:16:36 +0000 (17:16 +0900)]
spi-topcliff-pch: Fix CPU read complete condition issue

We found Rx data sometimes drops.(with non-DMA transfer mode)
The cause is read complete condition is not true.

This patch fixes the issue.

Signed-off-by: Tomoya MORINAGA <tomoya-linux@dsn.okisemi.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
14 years agospi-topcliff-pch: Fix SSN Control issue
Tomoya MORINAGA [Tue, 6 Sep 2011 08:16:35 +0000 (17:16 +0900)]
spi-topcliff-pch: Fix SSN Control issue

During processing 1 command/data series,
SSN should keep LOW.
However, currently, SSN becomes HIGH.
This patch fixes the issue.

Signed-off-by: Tomoya MORINAGA <tomoya-linux@dsn.okisemi.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
14 years agospi-topcliff-pch: add tx-memory clear after complete transmitting
Tomoya MORINAGA [Tue, 6 Sep 2011 08:16:34 +0000 (17:16 +0900)]
spi-topcliff-pch: add tx-memory clear after complete transmitting

Currently, in case of reading date from SPI flash,
command is sent twice.
The cause is that tx-memory clear processing is missing .
This patch adds the tx-momory clear processing.

Signed-off-by: Tomoya MORINAGA <tomoya-linux@dsn.okisemi.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
14 years agolis3: fix regression of HP DriveGuard with 8bit chip
Takashi Iwai [Tue, 4 Oct 2011 01:09:14 +0000 (18:09 -0700)]
lis3: fix regression of HP DriveGuard with 8bit chip

Commit 2a7fade7e03 ("hwmon: lis3: Power on corrections") caused a
regression on HP laptops with 8bit chip.  Writing CTRL2_BOOT_8B bit seems
clearing the BIOS setup, and no proper interrupt for DriveGuard will be
triggered any more.

Since the init code there is basically only for embedded devices, put a
pdata check so that the problematic initialization will be skipped for
hp_accel stuff.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Cc: Eric Piel <eric.piel@tremplin-utc.net>
Cc: Samu Onkalo <samu.p.onkalo@nokia.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@google.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
14 years agoLinux-omap rebuilt: Merged in initial dt patches
Tony Lindgren [Tue, 4 Oct 2011 00:02:05 +0000 (17:02 -0700)]
Linux-omap rebuilt: Merged in initial dt patches

$ git checkout -b tmp-rebuild-1317686513 linus
$ git merge -m "Merge dt-merge board testing-board cbus" dt-merge board testing-board cbus
$ git merge -s ours master
$ git checkout master
$ git merge tmp-rebuild-1317686513

To view the changes since the last rebuild, please do
$ git diff 1dd8838c74476fe13e51334ad2444e6c963cf5ff..5ee5d4c6fa86b5648fd4f743286ffc26b8561134 arch/arm/*omap*/

Merge branch 'master' into tmp-rebuild-1317686513

14 years agoMerge dt-merge board testing-board cbus
Tony Lindgren [Tue, 4 Oct 2011 00:01:56 +0000 (17:01 -0700)]
Merge dt-merge board testing-board cbus

Merge branches 'dt-merge', 'board', 'testing-board' and 'cbus' into tmp-rebuild-1317686513

14 years agoMerge branch 'testing-misc' into dt-merge
Tony Lindgren [Tue, 4 Oct 2011 00:01:39 +0000 (17:01 -0700)]
Merge branch 'testing-misc' into dt-merge

Conflicts:
arch/arm/mach-omap2/board-generic.c

14 years agoMerge branch 'for_3.2/3_omap_devicetree' of git://gitorious.org/omap-pm/linux into dt
Tony Lindgren [Mon, 3 Oct 2011 23:38:55 +0000 (16:38 -0700)]
Merge branch 'for_3.2/3_omap_devicetree' of git://gitorious.org/omap-pm/linux into dt

Conflicts:
arch/arm/mach-omap2/omap_l3_noc.c

14 years agoMerge branch 'fixes' into dt-base
Tony Lindgren [Mon, 3 Oct 2011 23:38:16 +0000 (16:38 -0700)]
Merge branch 'fixes' into dt-base

14 years agoARM:OMAP4 add Phytec phyCORE-OMAP4 board
Jan Weitzel [Mon, 3 Oct 2011 23:28:49 +0000 (16:28 -0700)]
ARM:OMAP4 add Phytec phyCORE-OMAP4 board

This adds support for the Phytec OMAP4430 board called phyCORE-OMAP4 PCM049.

Signed-off-by: Jan Weitzel <j.weitzel@phytec.de>
[tony@atomide.com: updated for timer and twl cleanup, and to select the board by default]
Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years agoInitial B&N Nook Color (encore) support
Oleg Drokin [Mon, 3 Oct 2011 23:28:48 +0000 (16:28 -0700)]
Initial B&N Nook Color (encore) support

Bare-bones board file, comes with serial console, gpio keys,
MMC/SDCard and USB (peripheral) support.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
[tony@atomide.com: updated for irq and timer cleanup and to select the board by default]
Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years agoMerge branches 'voltage' and 'l3' into dt-base
Tony Lindgren [Mon, 3 Oct 2011 23:11:19 +0000 (16:11 -0700)]
Merge branches 'voltage' and 'l3' into dt-base

14 years agoMerge branch 'hwmon-for-linus' of git://github.com/groeck/linux
Linus Torvalds [Mon, 3 Oct 2011 19:54:56 +0000 (12:54 -0700)]
Merge branch 'hwmon-for-linus' of git://github.com/groeck/linux

* 'hwmon-for-linus' of git://github.com/groeck/linux:
  hwmon: (coretemp) Avoid leaving around dangling pointer
  hwmon: (coretemp) Fixup platform device ID change

14 years agoMerge git://github.com/davem330/ide
Linus Torvalds [Mon, 3 Oct 2011 19:53:43 +0000 (12:53 -0700)]
Merge git://github.com/davem330/ide

* git://github.com/davem330/ide:
  ide-disk: Fix request requeuing

14 years agoMerge branch 'btrfs-3.0' of git://github.com/chrismason/linux
Linus Torvalds [Mon, 3 Oct 2011 19:17:44 +0000 (12:17 -0700)]
Merge branch 'btrfs-3.0' of git://github.com/chrismason/linux

* 'btrfs-3.0' of git://github.com/chrismason/linux:
  Btrfs: force a page fault if we have a shorty copy on a page boundary

14 years agoARM: OMAP: irq: loop counter fix in omap_init_irq()
Tapani Utriainen [Fri, 30 Sep 2011 18:05:56 +0000 (11:05 -0700)]
ARM: OMAP: irq: loop counter fix in omap_init_irq()

Fixes bug where variable i was redundantly used for counting two nested loops.

Signed-off-by: Tapani Utriainen <tapani@technexion.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years agoARM: OMAP4: Keyboard: Fix section mismatch in the board file
Bjarne Steinsbo [Fri, 30 Sep 2011 18:05:56 +0000 (11:05 -0700)]
ARM: OMAP4: Keyboard: Fix section mismatch in the board file

`keypad_pads' is referred to by `keypad_data' which is
not __initdata, so `keypad_pads' should not be __initdata either.

Signed-off-by: Bjarne Steinsbo <bsteinsbo@gmail.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years agoide-disk: Fix request requeuing
Borislav Petkov [Mon, 3 Oct 2011 18:28:18 +0000 (14:28 -0400)]
ide-disk: Fix request requeuing

Simon Kirby reported that on his RAID setup with idedisk underneath
the box OOMs after a couple of days of runtime. Running with
CONFIG_DEBUG_KMEMLEAK pointed to idedisk_prep_fn() which unconditionally
allocates an ide_cmd struct. However, ide_requeue_and_plug() can be
called more than once per request, either from the request issue or the
IRQ handler path and do blk_peek_request() ends up in idedisk_prep_fn()
repeatedly, allocating a struct ide_cmd everytime and "forgetting" the
previous pointer.

Make sure the code reuses the old allocated chunk.

Reported-and-tested-by: Simon Kirby <sim@hostway.ca>
Cc: <stable@kernel.org> [ 39.x, 3.0.x ]
Link: http://marc.info/?l=linux-kernel&m=131667641517919
Link: http://lkml.kernel.org/r/20110922072643.GA27232@hostway.ca
Signed-off-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: David S. Miller <davem@davemloft.net>