]> git.ipfire.org Git - thirdparty/u-boot.git/commit
board: nuvuton: arbel: Fix incorrect ram size
authorJim Liu <jim.t90615@gmail.com>
Mon, 23 Oct 2023 07:02:24 +0000 (15:02 +0800)
committerTom Rini <trini@konsulko.com>
Tue, 31 Oct 2023 17:08:04 +0000 (13:08 -0400)
commit1b7026f5f8393d2d189ac768240ba7e764f8ab5e
tree93ee0717da46537b8baeaf4561f1507bcba0aefb
parent1af3e71972a62a363c24eace8b4f121c8baef75d
board: nuvuton: arbel: Fix incorrect ram size

1. Fix incorrect ram size of 4GB dram with ECC enabled
2. Fix wrong place to set dram bank size
   - The dram bank size should be set in dram_init_banksize
   - Dram_init should not access gd->bd because the board info
     struct is not reserved yet.

Signed-off-by: Jim Liu <JJLIU0@nuvoton.com>
[trini: Rework slightly]
Signed-off-by: Tom Rini <trini@konsulko.com>
board/nuvoton/arbel_evb/arbel_evb.c