Skip to content
Snippets Groups Projects
Commit 2111cb44 authored by David Müller (ELSOFT AG)'s avatar David Müller (ELSOFT AG) Committed by Scott Wood
Browse files

fix s3c2410_nand timing default values


The attached patch fixes wrong timing default values and adds the
possibility to specify board specific timing value in the board config file.

Signed-off-by: default avatarDavid Mueller <d.mueller@elsoft.ch>
parent 068a208b
No related branches found
No related tags found
No related merge requests found
...@@ -133,9 +133,15 @@ int board_nand_init(struct nand_chip *nand) ...@@ -133,9 +133,15 @@ int board_nand_init(struct nand_chip *nand)
writel(readl(&clk_power->clkcon) | (1 << 4), &clk_power->clkcon); writel(readl(&clk_power->clkcon) | (1 << 4), &clk_power->clkcon);
/* initialize hardware */ /* initialize hardware */
twrph0 = 3; #if defined(CONFIG_S3C24XX_CUSTOM_NAND_TIMING)
twrph1 = 0; tacls = CONFIG_S3C24XX_TACLS;
tacls = 0; twrph0 = CONFIG_S3C24XX_TWRPH0;
twrph1 = CONFIG_S3C24XX_TWRPH1;
#else
tacls = 4;
twrph0 = 8;
twrph1 = 8;
#endif
cfg = S3C2410_NFCONF_EN; cfg = S3C2410_NFCONF_EN;
cfg |= S3C2410_NFCONF_TACLS(tacls - 1); cfg |= S3C2410_NFCONF_TACLS(tacls - 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment