Patchwork [20/21] ARM: mvebu: Enable NAND controller in Armada XP GP board

login
register
mail settings
Submitter Ezequiel Garcia
Date Sept. 19, 2013, 4:01 p.m.
Message ID <1379606505-2529-21-git-send-email-ezequiel.garcia@free-electrons.com>
Download mbox | patch
Permalink /patch/275994/
State Superseded
Headers show

Comments

Ezequiel Garcia - Sept. 19, 2013, 4:01 p.m.
The Armada XP GP board has a NAND flash, so enable it in the devicetree.
In order to skip the driver's custom device detection and use only ONFI
detection, the "marvell,keep-config" parameter is used.

This is needed because we have no support for setting the timings parameters yet.

Not-Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
---
This patch is not ready for inclusion, and I'm only adding it here for
consistency and in case someone wants to test.

 arch/arm/boot/dts/armada-xp-gp.dts | 8 ++++++++
 1 file changed, 8 insertions(+)

Patch

diff --git a/arch/arm/boot/dts/armada-xp-gp.dts b/arch/arm/boot/dts/armada-xp-gp.dts
index c87b2de..0e8389b 100644
--- a/arch/arm/boot/dts/armada-xp-gp.dts
+++ b/arch/arm/boot/dts/armada-xp-gp.dts
@@ -176,6 +176,14 @@ 
 					status = "okay";
 				};
 			};
+
+			nand@d0000 {
+				status = "okay";
+				num-cs = <1>;
+				marvell,nand-keep-config;
+				marvell,nand-enable-arbiter;
+				nand-on-flash-bbt;
+			};
 		};
 	};
 };