9
0
Fork 0

S3C24xx/NFC: Re-enable the controller after NAND boot test

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 <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Juergen Beisert 2011-03-12 20:14:52 +01:00 committed by Sascha Hauer
parent 9eac282024
commit 1b1eca6b06
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}