9
0
Fork 0

pcm038: add flash timing initialization

Add init code for the CS0 flash timing registers. These values are not
optimized yet, they are more or less copied from the Windows CE
installation.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
This commit is contained in:
Robert Schwebel 2007-12-17 19:50:41 +01:00 committed by Marc Kleine-Budde
parent 2e8e082fd3
commit 37443467a5
1 changed files with 5 additions and 0 deletions

View File

@ -158,6 +158,11 @@ board_init_lowlevel:
writel(0x09030908, PCDR1) /* PERDIV1=08 @133 MHz */
/* PERDIV1=04 @266 MHz */
/* configure 16 bit nor flash on cs0 */
writel(0x0000CC03, 0xD8002000)
writel(0xa0330D01, 0xD8002004)
writel(0x00220800, 0xD8002008)
/* skip sdram initialization if we run from ram */
cmp pc, #0xa0000000
bls 1f