]> git.dujemihanovic.xyz Git - u-boot.git/commit
riscv: fu540: Use correct API to get L2 cache controller base address
authorBin Meng <bin.meng@windriver.com>
Tue, 18 Aug 2020 08:09:20 +0000 (01:09 -0700)
committerAndes <uboot@andestech.com>
Tue, 25 Aug 2020 01:33:16 +0000 (09:33 +0800)
commit52dc7ae74918d01fa55ca103841a0eaa0dfa7409
tree93d7e5693f014ffc6f303d97ec759f69f0fc5f0d
parent1aa3966173fe92fa3c46638ee8eb8b8491f521d6
riscv: fu540: Use correct API to get L2 cache controller base address

At present fdtdec_get_addr() is used to get L2 cache controller base
address. This only works for a fixed #address-cells and #size-cells.
Change to use fdtdec_get_addr_size_auto_parent() instead.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Rick Chen <rick@andestech.com>
Reviewed-by: Pragnesh Patel <pragnesh.patel@openfive.com>
arch/riscv/cpu/fu540/cache.c