arm: socfpga: arria10: Enable cache driver in SPL
authorLey Foon Tan <ley.foon.tan@intel.com>
Tue, 7 Apr 2020 07:43:14 +0000 (15:43 +0800)
committerMarek Vasut <marex@denx.de>
Mon, 13 Apr 2020 11:49:51 +0000 (13:49 +0200)
Adding "u-boot,dm-pre-reloc" and enable CONFIG_SPL_CACHE
to enable cache driver in SPL.

This fixed error below in SPL:
cache controller driver NOT found!

Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
arch/arm/dts/socfpga_arria10-u-boot.dtsi
arch/arm/mach-socfpga/Kconfig

index 0db358cf1f2bd87dce1f640f6b85e5f2c8638d7d..6ff1ea6e5eb7df45246b7276dbcd63c3aec28b54 100644 (file)
        reset-names = "i2c";
 };
 
+&L2 {
+       u-boot,dm-pre-reloc;
+};
+
 &l4_mp_clk {
        u-boot,dm-pre-reloc;
 };
index 38d6c1b2ba32bb9e03b2b53f81e6d69d27e0e027..a3699e82a19e6edd475aef43179a6de1b0df84b6 100644 (file)
@@ -46,6 +46,7 @@ config TARGET_SOCFPGA_ARRIA10
        bool
        select SPL_ALTERA_SDRAM
        select SPL_BOARD_INIT if SPL
+       select SPL_CACHE if SPL
        select CLK
        select SPL_CLK if SPL
        select DM_I2C