diff --git a/arch/arm/dts/rk3568-u-boot.dtsi b/arch/arm/dts/rk3568-u-boot.dtsi index 001ea635b0..d04f975615 100644 --- a/arch/arm/dts/rk3568-u-boot.dtsi +++ b/arch/arm/dts/rk3568-u-boot.dtsi @@ -13,7 +13,7 @@ chosen { stdout-path = &uart2; - u-boot,spl-boot-order = &sdhci, &spi_nand, &spi_nor; + u-boot,spl-boot-order = &sdhci, &nandc0, &spi_nand, &spi_nor; }; }; @@ -137,3 +137,17 @@ status = "okay"; }; +&nandc0 { + u-boot,dm-spl; + status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + + nand@0 { + u-boot,dm-spl; + reg = <0>; + nand-ecc-mode = "hw_syndrome"; + nand-ecc-strength = <16>; + nand-ecc-step-size = <1024>; + }; +}; diff --git a/include/configs/rk3568_common.h b/include/configs/rk3568_common.h index 7cbe468849..c35e339aa9 100644 --- a/include/configs/rk3568_common.h +++ b/include/configs/rk3568_common.h @@ -11,9 +11,9 @@ #define CONFIG_SPL_FRAMEWORK #define CONFIG_SPL_TEXT_BASE 0x00000000 -#define CONFIG_SPL_MAX_SIZE 0x00028000 +#define CONFIG_SPL_MAX_SIZE 0x00038000 #define CONFIG_SPL_BSS_START_ADDR 0x03fe0000 -#define CONFIG_SPL_BSS_MAX_SIZE 0x00002000 +#define CONFIG_SPL_BSS_MAX_SIZE 0x00010000 #define CONFIG_SPL_STACK 0x03fe0000 #define CONFIG_SYS_MALLOC_LEN (32 << 20)