android_kernel_xiaomi_sm8350/arch/arm/mach-at91
Andrei Birjukov d82ad6d683 [ARM] at91: fix for Atmel AT91 powersaving
We've discovered that our AT91SAM9260 board consumed too much power when
returning from a slowclock low-power mode.  RAM self-refresh is enabled in
a bootloader in our case, this is how we saw a difference.  Estimated ca.
30mA more on 4V battery than the same state before powersaving.

After a small research we found that there seems to be a bogus
sdram_selfrefresh_disable() call at the end of at91_pm_enter() call, which
overwrites the LPR register with uninitialized value.  Please find the
suggested patch attached.

This patch fixes correct restoring of LPR register of the Atmel AT91 SDRAM
controller when returning from a power saving mode.

Signed-off-by: Andrei Birjukov <andrei.birjukov@artecdesign.ee>
Acked-by: Andrew Victor <linux@maxim.org.za>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2009-02-22 22:37:21 +00:00
..
include/mach [ARM] 5400/1: Add support for inverted rdy_busy pin for Atmel nand device controller 2009-02-16 21:40:39 +00:00
at91cap9_devices.c [ARM] 5390/1: AT91: Watchdog fixes 2009-02-14 16:01:57 +00:00
at91cap9.c [ARM] fix AT91, davinci, h720x, ks8695, msm, mx2, mx3, netx, omap1, omap2, pxa, s3c 2009-01-08 16:29:42 +00:00
at91rm9200_devices.c
at91rm9200_time.c Merge branch 'cpus4096-for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2009-01-02 11:44:09 -08:00
at91rm9200.c [ARM] fix AT91, davinci, h720x, ks8695, msm, mx2, mx3, netx, omap1, omap2, pxa, s3c 2009-01-08 16:29:42 +00:00
at91sam9rl_devices.c [ARM] 5390/1: AT91: Watchdog fixes 2009-02-14 16:01:57 +00:00
at91sam9rl.c [ARM] fix AT91, davinci, h720x, ks8695, msm, mx2, mx3, netx, omap1, omap2, pxa, s3c 2009-01-08 16:29:42 +00:00
at91sam926x_time.c cpumask: convert struct clock_event_device to cpumask pointers. 2008-12-13 21:20:26 +10:30
at91sam9260_devices.c [ARM] 5390/1: AT91: Watchdog fixes 2009-02-14 16:01:57 +00:00
at91sam9260.c [ARM] fix AT91, davinci, h720x, ks8695, msm, mx2, mx3, netx, omap1, omap2, pxa, s3c 2009-01-08 16:29:42 +00:00
at91sam9261_devices.c [ARM] 5390/1: AT91: Watchdog fixes 2009-02-14 16:01:57 +00:00
at91sam9261.c [ARM] fix AT91, davinci, h720x, ks8695, msm, mx2, mx3, netx, omap1, omap2, pxa, s3c 2009-01-08 16:29:42 +00:00
at91sam9263_devices.c [ARM] 5390/1: AT91: Watchdog fixes 2009-02-14 16:01:57 +00:00
at91sam9263.c [ARM] fix AT91, davinci, h720x, ks8695, msm, mx2, mx3, netx, omap1, omap2, pxa, s3c 2009-01-08 16:29:42 +00:00
at91x40_time.c
at91x40.c
board-1arm.c
board-afeb-9260v1.c [ARM] 5326/1: AFEB9260: Fix for i2c_board_info structure 2008-10-30 15:43:42 +00:00
board-cam60.c [ARM] 5289/1: [AT91] Convert boards to use sam9_smc_configure() 2008-12-01 17:18:13 +00:00
board-cap9adk.c [ARM] 5319/1: AT91: support AT91CAP9 revC CPUs 2008-12-01 17:22:07 +00:00
board-carmeva.c
board-csb337.c
board-csb637.c
board-dk.c
board-eb01.c
board-eb9200.c
board-ecbat91.c
board-ek.c
board-kafa.c
board-kb9202.c
board-neocore926.c [ARM] 5290/1: [AT91] Add support for the Adeneo NeoCore 926 board 2008-12-01 17:18:15 +00:00
board-picotux200.c
board-qil-a9260.c [ARM] 5289/1: [AT91] Convert boards to use sam9_smc_configure() 2008-12-01 17:18:13 +00:00
board-sam9-l9260.c [ARM] 5289/1: [AT91] Convert boards to use sam9_smc_configure() 2008-12-01 17:18:13 +00:00
board-sam9g20ek.c [ARM] 5289/1: [AT91] Convert boards to use sam9_smc_configure() 2008-12-01 17:18:13 +00:00
board-sam9rlek.c [ARM] fix AT91, davinci, h720x, ks8695, msm, mx2, mx3, netx, omap1, omap2, pxa, s3c 2009-01-08 16:29:42 +00:00
board-sam9260ek.c [ARM] 5289/1: [AT91] Convert boards to use sam9_smc_configure() 2008-12-01 17:18:13 +00:00
board-sam9261ek.c [ARM] 5289/1: [AT91] Convert boards to use sam9_smc_configure() 2008-12-01 17:18:13 +00:00
board-sam9263ek.c [ARM] 5289/1: [AT91] Convert boards to use sam9_smc_configure() 2008-12-01 17:18:13 +00:00
board-usb-a9260.c [ARM] 5289/1: [AT91] Convert boards to use sam9_smc_configure() 2008-12-01 17:18:13 +00:00
board-usb-a9263.c [ARM] 5289/1: [AT91] Convert boards to use sam9_smc_configure() 2008-12-01 17:18:13 +00:00
board-yl-9200.c
clock.c
clock.h
generic.h
gpio.c [ARM] 5391/1: AT91: Enable GPIO clocks earlier 2009-02-14 16:03:36 +00:00
irq.c
Kconfig [ARM] 5290/1: [AT91] Add support for the Adeneo NeoCore 926 board 2008-12-01 17:18:15 +00:00
leds.c
Makefile [ARM] 5290/1: [AT91] Add support for the Adeneo NeoCore 926 board 2008-12-01 17:18:15 +00:00
Makefile.boot
pm_slowclock.S
pm.c [ARM] at91: fix for Atmel AT91 powersaving 2009-02-22 22:37:21 +00:00
sam9_smc.c [ARM] 5287/2: [AT91] Configuration of Static Memory Controller 2008-12-01 17:18:08 +00:00
sam9_smc.h [ARM] 5287/2: [AT91] Configuration of Static Memory Controller 2008-12-01 17:18:08 +00:00