From adb77bf754050ddd0339ce2b966c652bea4dc394 Mon Sep 17 00:00:00 2001
From: Alessandro Rubini <rubini@gnudd.com>
Date: Tue, 6 Mar 2012 01:26:28 +0100
Subject: [PATCH 3/8] nand wrs: it's 16-bits not 8

---
 arch/arm/boards/pm9g45/init.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/boards/pm9g45/init.c b/arch/arm/boards/pm9g45/init.c
index 9b22276..9ecd628 100644
--- a/arch/arm/boards/pm9g45/init.c
+++ b/arch/arm/boards/pm9g45/init.c
@@ -44,9 +44,9 @@ static struct atmel_nand_data nand_pdata = {
 	.ale		= 21,
 	.cle		= 22,
 /*	.det_pin	= ... not connected */
-	.rdy_pin	= AT91_PIN_PD3,
+	.rdy_pin	= AT91_PIN_PC8,
 	.enable_pin	= AT91_PIN_PC14,
-	.bus_width_16	= 0,
+	.bus_width_16	= 1,
 };
 
 static struct sam9_smc_config pm_nand_smc_config = {
@@ -69,7 +69,7 @@ static struct sam9_smc_config pm_nand_smc_config = {
 
 static void pm_add_device_nand(void)
 {
-	pm_nand_smc_config.mode |= AT91_SMC_DBW_8;
+	pm_nand_smc_config.mode |= AT91_SMC_DBW_16;
 
 	/* configure chip-select 3 (NAND) */
 	sam9_smc_configure(3, &pm_nand_smc_config);
-- 
1.7.7.2

