u-boot/arch/arm/cpu/armv7
Siarhei Siamashka f257796773 sunxi: dram: Remove broken super-standby remnants
If the dram->ppwrsctl (SDR_DPCR) register has the lowest bit set to 1,
this means that DRAM is currently in self-refresh mode and retaining the
old data. Since we have no idea what to do in this situation yet, just
set this register to 0 and initialize DRAM in the same way as on any
normal reboot (discarding whatever was stored there).

This part of code was apparently used by the Allwinner boot0 bootloader
to handle resume from the so-called super-standby mode. But this
particular code got somehow mangled on the way from the boot0 bootloader
to the u-boot-sunxi bootloader and has no chance of doing anything even
remotely sane. For example:
1. in the original boot0 code we had "mctl_write_w(SDR_DPCR,
   0x16510000)" (write to the register) and in the u-boot it now looks
   like "setbits_le32(&dram->ppwrsctl, 0x16510000)" (set bits in the
   register)
2. in the original boot0 code it was issuing three commands "0x12, 0x17,
   0x13" (Self-Refresh entry, Self-Refresh exit, Refresh), but in the
   u-boot they have become "0x12, 0x12, 0x13" (Self-Refresh entry,
   Self-Refresh entry, Refresh)

Signed-off-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2014-08-12 08:42:32 +02:00
..
am33xx am43xx: Tune the system to avoid DSS underflows 2014-07-07 19:42:34 -04:00
at91 ARMv7: at91: enable ICache and DCache. 2014-06-14 18:07:03 +02:00
bcm281xx arch: bcm281xx: Initial commit of bcm281xx architecture code 2014-02-22 19:30:24 +01:00
exynos Merge remote-tracking branch 'u-boot-samsung/master' 2014-07-01 20:52:51 +02:00
highbank ARM: highbank: convert to common timer code 2013-11-04 11:08:10 -05:00
keystone ARM: keystone2: spl: add K2E SoC support 2014-07-25 16:26:11 -04:00
kona-common sizes.h - consolidate for all architectures 2014-03-04 12:15:01 -05:00
mx5 kbuild: move asm-offsets.c from SoC directory to arch/$(ARCH)/lib 2014-03-28 15:06:29 -04:00
mx6 mx6: soc: Update the comments of set_ldo_voltage() 2014-07-09 15:10:10 +02:00
omap-common ARM: omap: clean redundant PISMO_xx macros used in OMAP3 2014-07-25 16:26:12 -04:00
omap3 ARM: omap: Remove unused arch/arm/cpu/armv7/omap3/mem.c 2014-07-25 16:26:09 -04:00
omap4 sizes.h - consolidate for all architectures 2014-03-04 12:15:01 -05:00
omap5 ARM: DRA7xx: ctrl: Fix efuse register addresses 2014-05-23 19:40:04 -04:00
rmobile arm: rmobile: Add support R8A7794 2014-07-24 14:03:46 +09:00
s5p-common armv7: convert makefiles to Kbuild style 2013-10-31 12:53:39 -04:00
s5pc1xx armv7: convert makefiles to Kbuild style 2013-10-31 12:53:39 -04:00
socfpga socfpga: Relocate arch common functions away from board 2014-07-05 10:14:46 +02:00
sunxi sunxi: dram: Remove broken super-standby remnants 2014-08-12 08:42:32 +02:00
tegra-common armv7: convert makefiles to Kbuild style 2013-10-31 12:53:39 -04:00
tegra20 tegra20: display: fix checking of return value 2014-06-19 09:18:05 -07:00
tegra30 kbuild: add dummy obj-y to create built-in.o 2014-02-19 11:07:50 -05:00
tegra114 kbuild: add dummy obj-y to create built-in.o 2014-02-19 11:07:50 -05:00
tegra124 arm: delete unused macro CONFIG_ARCH_DEVICE_TREE 2014-02-24 10:56:33 -05:00
u8500 armv7: convert makefiles to Kbuild style 2013-10-31 12:53:39 -04:00
vf610 armv7: convert makefiles to Kbuild style 2013-10-31 12:53:39 -04:00
zynq ARM: zynq: Show ECC status on the same line as DRAM size 2014-07-23 15:36:55 +02:00
arch_timer.c arm: add support for arch timer 2014-04-17 17:24:38 -04:00
cache_v7.c ARM: cache_v7: use __weak 2014-07-04 19:57:22 +02:00
config.mk Merge branch 'master' of git://git.denx.de/u-boot-arm 2014-02-26 16:49:58 -05:00
cpu.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
lowlevel_init.S arm: use canonical sub mnemonic 2014-01-14 12:38:47 +01:00
Makefile ARM: HYP/non-sec/PSCI: emit DT nodes 2014-07-28 17:19:52 +02:00
nonsec_virt.S ARM: HYP/non-sec: add the option for a second-stage monitor 2014-07-28 17:19:26 +02:00
psci.S ARM: HYP/non-sec: add generic ARMv7 PSCI code 2014-07-28 17:19:18 +02:00
start.S arm: move exception handling out of start.S files 2014-05-15 16:24:53 +02:00
syslib.c ARM: OMAP: hide custom bit manipulation function sr32() 2014-04-17 14:39:54 -04:00
virt-dt.c ARM: HYP/non-sec/PSCI: emit DT nodes 2014-07-28 17:19:52 +02:00
virt-v7.c ARM: HYP/non-sec: remove MIDR check to validate CBAR 2014-07-28 17:19:55 +02:00