summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorKate Liu <[email protected]>2020-12-11 13:46:13 -0800
committerTom Rini <[email protected]>2021-01-18 15:14:37 -0500
commit34a5addb7b57cb5a0ad5940ff7ef1df7edb0ff55 (patch)
tree104d7ee8e40513cdd6445d1f244194f421b9f08f /arch
parent161df94b3c43674cd7850ae7c0d49be43c8dc520 (diff)
board: presidio: Add Parallel NAND support
Set environment for Nand flash (U-boot 2020.04): - add nand flash in the device tree - add new default configuration file for G3 using parallel Nand - set nand parameters in presidio_asic.h Signed-off-by: Kate Liu <[email protected]> Signed-off-by: Alex Nemirovsky <[email protected]> CC: Tom Rini <[email protected]> Reviewed-by: Tom Rini <[email protected]>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/dts/ca-presidio-engboard.dts14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/dts/ca-presidio-engboard.dts b/arch/arm/dts/ca-presidio-engboard.dts
index eef433e768e..0ab52fdfda8 100644
--- a/arch/arm/dts/ca-presidio-engboard.dts
+++ b/arch/arm/dts/ca-presidio-engboard.dts
@@ -52,6 +52,20 @@
clock-frequency = <400000>;
};
+ nand: nand-controller@f4324000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "cortina,ca-nand";
+ reg = <0 0xf4324000 0x3b0>, /* NAND controller */
+ <0 0xf7001000 0xb4>, /* DMA_GLOBAL */
+ <0 0xf7001a00 0x80>; /* DMA channel0 for FLASH */
+ status = "okay";
+ nand-ecc-mode = "hw";
+ nand-ecc-strength = <16>;
+ nand-ecc-step-size = <1024>; /* Must be 1024 */
+ nand_flash_base_addr = <0xe0000000>;
+ };
+
sflash: sflash-controller@f4324000 {
#address-cells = <2>;
#size-cells = <1>;