u-boot/arch
Icenowy Zheng 176868bc65 sunxi: enable dual rank detection in DesignWare-like DRAM code
The DesignWare-like DRAM code used to set the controller defaultly to
single rank mode, which makes it not able to detect the second rank.

Set the default value to dual rank, thus the rank detection code can
work and finally the rank setting will be the correct value.

Currently we know little about the dual-rank on R40, and the usage
of A15 address line seems to be breaking dual-rank support. The only R40
board currently available (Sinovoip Banana Pi M2 Ultra) uses A15 rather
than dual-rank, thus we cannot do research for it. So dual rank detection
is temporarily disabled on R40.

This change is tested on a Orange Pi One (H3, single rank), a Pine64+
2GiB version (A64, single rank) , a Pinebook early prototype with DDR3
(A64, dual rank) and a SoPine with some LPDDR3 patch (A64, dual CS pins
on one chip).

Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Tested-by: Jagan Teki <jagan@amarulasolutions.com>
2017-06-08 22:37:55 +05:30
..
arc arc: Make u-boot-arc.h a private header 2017-06-05 11:02:31 -04:00
arm sunxi: enable dual rank detection in DesignWare-like DRAM code 2017-06-08 22:37:55 +05:30
avr32 Remove various unused interrupt related code 2017-04-06 20:42:18 -04:00
m68k spi: Zap cf_qspi driver and related code 2017-01-15 18:29:04 +01:00
microblaze spl: make image arg or fdt blob address reconfigurable 2017-05-08 11:38:40 -04:00
mips mips: Make u-boot-mips.h a private header 2017-06-05 11:02:33 -04:00
nds32 nds32: Remove include files from common.h 2017-06-05 11:02:36 -04:00
nios2 fdt: Move fdt_fixup_ethernet to a common place 2017-05-01 09:11:59 -04:00
powerpc common: freescale: Move arch-specific declarations 2017-06-05 12:30:55 -04:00
sandbox bootstage: Require timer_get_boot_us() to be defined 2017-06-05 14:13:04 -04:00
sh sh: generate position independent code for all platforms 2016-12-02 21:32:54 -05:00
x86 x86: Don't include asm/u-boot.h in common 2017-06-05 11:02:35 -04:00
xtensa board_f: Rename initdram() to dram_init() 2017-04-13 09:40:57 -04:00
.gitignore .gitignore: drop include/asm/proc from ignore pattern 2014-06-19 11:18:54 -04:00
Kconfig Kconfig: Migrate FS_FAT / FAT_WRITE 2017-06-03 17:55:34 -04:00