rk3568: add nand support for spl and uboot

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I3b849db025ae15dde22636ae17ac2d19c5484dd6
This commit is contained in:
Yifeng Zhao 2020-11-26 10:05:15 +08:00
parent 568252a02c
commit 5d96bba97e
2 changed files with 17 additions and 3 deletions

View File

@ -13,7 +13,7 @@
chosen { chosen {
stdout-path = &uart2; 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"; 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>;
};
};

View File

@ -11,9 +11,9 @@
#define CONFIG_SPL_FRAMEWORK #define CONFIG_SPL_FRAMEWORK
#define CONFIG_SPL_TEXT_BASE 0x00000000 #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_START_ADDR 0x03fe0000
#define CONFIG_SPL_BSS_MAX_SIZE 0x00002000 #define CONFIG_SPL_BSS_MAX_SIZE 0x00010000
#define CONFIG_SPL_STACK 0x03fe0000 #define CONFIG_SPL_STACK 0x03fe0000
#define CONFIG_SYS_MALLOC_LEN (32 << 20) #define CONFIG_SYS_MALLOC_LEN (32 << 20)