From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1PyUHG-0008Ok-0T for barebox@lists.infradead.org; Sat, 12 Mar 2011 19:15:13 +0000 From: Juergen Beisert Date: Sat, 12 Mar 2011 20:14:52 +0100 Message-Id: <1299957297-8539-2-git-send-email-jbe@pengutronix.de> In-Reply-To: <1299957297-8539-1-git-send-email-jbe@pengutronix.de> References: <1299957297-8539-1-git-send-email-jbe@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 1/6] S3C24xx/NFC: Re-enable the controller after NAND boot test To: barebox@lists.infradead.org Cc: Juergen Beisert From: Juergen Beisert After running the 'nand_boot_test' command, any usage of the NAND fails with a IO error. This happens due to the load routine disables the NAND controller after loading the image. This patch re-enables the NAND controller again after running the test. Signed-off-by: Juergen Beisert --- drivers/mtd/nand/nand_s3c2410.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/mtd/nand/nand_s3c2410.c b/drivers/mtd/nand/nand_s3c2410.c index df0b7c1..6ee3b83 100644 --- a/drivers/mtd/nand/nand_s3c2410.c +++ b/drivers/mtd/nand/nand_s3c2410.c @@ -571,6 +571,10 @@ static int do_nand_boot_test(struct command *cmdtp, int argc, char *argv[]) s3c24x0_nand_load_image(dest, size, 0, pagesize); + /* re-enable the controller again, as this was a test only */ + enable_nand_controller((void *)S3C24X0_NAND_BASE, + BOARD_DEFAULT_NAND_TIMING); + return 0; } -- 1.7.2.3 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox