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:
parent
9eac282024
commit
1b1eca6b06
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue