]> git.baikalelectronics.ru Git - uboot.git/commit
arm: mach-k3: common: Use ddr_init in spl_enable_dcache
authorGeorgi Vlaev <g-vlaev@ti.com>
Tue, 14 Jun 2022 14:45:30 +0000 (17:45 +0300)
committerTom Rini <trini@konsulko.com>
Wed, 6 Jul 2022 18:30:08 +0000 (14:30 -0400)
commit39f1fb48018f616bb566c10943aefd0f622ad7c1
tree20659c88c1d678c7ff059c88eaf78beb41ce8472
parent2651a8edba9bff76026ebb076dc0f1b85fe99fa8
arm: mach-k3: common: Use ddr_init in spl_enable_dcache

The spl_enable_dcache() function calls dram_init_banksize()
to get the total memory size. Normally the dram_init_banksize()
setups the memory banks, while the total size is reported
by ddr_init(). This worked so far for K3 since we set the
gd->ram_size in dram_init_banksize() as well.

Signed-off-by: Georgi Vlaev <g-vlaev@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/arm/mach-k3/common.c