From f7aa59b29a451cc502078a9e4ba32345a4250c05 Mon Sep 17 00:00:00 2001 From: Alessandro Rubini Date: Mon, 22 Jun 2009 09:18:57 +0200 Subject: arm nomadik: allow Nand and OneNand to coexists The evaluation kit has both Nand and OneNand, both drivers are there and the two configurations only select a different default for the jffs partition. This adds the OneNand driver and cleans up storage. Signed-off-by: Alessandro Rubini Acked-by: Andrea Gallo --- board/st/nhk8815/nhk8815.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'board/st') diff --git a/board/st/nhk8815/nhk8815.c b/board/st/nhk8815/nhk8815.c index edf4626..085a5e0 100644 --- a/board/st/nhk8815/nhk8815.c +++ b/board/st/nhk8815/nhk8815.c @@ -53,6 +53,10 @@ int board_init(void) writel(0x0000305b, REG_FSMC_BCR1); writel(0x00033f33, REG_FSMC_BTR1); + /* Set up SMCS0 for OneNand: sram-like once again */ + writel(0x000030db, NOMADIK_FSMC_BASE + 0x00); /* FSMC_BCR0 */ + writel(0x02100551, NOMADIK_FSMC_BASE + 0x04); /* FSMC_BTR0 */ + icache_enable(); return 0; } -- cgit v1.1