]> git.sur5r.net Git - u-boot/commit
sunxi: add bank detection code to H3 DRAM initialization code
authorIcenowy Zheng <icenowy@aosc.xyz>
Sat, 3 Jun 2017 09:10:17 +0000 (17:10 +0800)
committerJagan Teki <jagan@amarulasolutions.com>
Thu, 8 Jun 2017 17:07:55 +0000 (22:37 +0530)
commit66b12526f0bdfb284a5152cd31d5eed849e7b873
treef9f878c9df8376ebbfb85cc58fa4004e4c1b4de2
parent87098d701da77f264c9cbed67a5d6fb27fbaaf3f
sunxi: add bank detection code to H3 DRAM initialization code

Some DDR2 DRAM have only four banks, not eight.

Add code to detect this situation.

Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Tested-by: Jagan Teki <jagan@amarulasolutions.com>
arch/arm/mach-sunxi/dram_sunxi_dw.c