diff options
author | stroese <stroese> | 2004-12-16 18:35:58 +0000 |
---|---|---|
committer | stroese <stroese> | 2004-12-16 18:35:58 +0000 |
commit | f2dfe44fd68d6f2d5af037333e6f34d052b0f368 (patch) | |
tree | 94b8d950cdee3c06d0dd361ece79154b4af3bbf9 /board/esd/dp405/dp405.c | |
parent | 20aacbf0180fdbcb8b5660d0e8da8cdb49bd3a2c (diff) | |
download | u-boot-imx-f2dfe44fd68d6f2d5af037333e6f34d052b0f368.zip u-boot-imx-f2dfe44fd68d6f2d5af037333e6f34d052b0f368.tar.gz u-boot-imx-f2dfe44fd68d6f2d5af037333e6f34d052b0f368.tar.bz2 |
DP405 board update
Diffstat (limited to 'board/esd/dp405/dp405.c')
-rw-r--r-- | board/esd/dp405/dp405.c | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/board/esd/dp405/dp405.c b/board/esd/dp405/dp405.c index 84a4a33..056063e 100644 --- a/board/esd/dp405/dp405.c +++ b/board/esd/dp405/dp405.c @@ -62,6 +62,14 @@ int board_early_init_f (void) */ mtebc (epcr, 0xa8400000); /* ebc always driven */ + /* + * Reset CPLD via GPIO13 (CS4) pin + */ + out32(GPIO0_OR, in32(GPIO0_OR) & ~(0x80000000 >> 13)); + udelay(1000); /* wait 1ms */ + out32(GPIO0_OR, in32(GPIO0_OR) | (0x80000000 >> 13)); + udelay(1000); /* wait 1ms */ + return 0; } @@ -76,13 +84,11 @@ int misc_init_f (void) int misc_init_r (void) { - /* - * Reset CPLD via GPIO13 (CS4) pin - */ - out32(GPIO0_OR, in32(GPIO0_OR) & ~(0x80000000 >> 13)); - udelay(1000); /* wait 1ms */ - out32(GPIO0_OR, in32(GPIO0_OR) | (0x80000000 >> 13)); - udelay(1000); /* wait 1ms */ + DECLARE_GLOBAL_DATA_PTR; + + /* adjust flash start and offset */ + gd->bd->bi_flashstart = 0 - gd->bd->bi_flashsize; + gd->bd->bi_flashoffset = 0; return (0); } @@ -110,7 +116,7 @@ int checkboard (void) id1 = trans[(~(in32(GPIO0_IR) >> 5)) & 0x0000000f]; id2 = trans[(~(in32(GPIO0_IR) >> 9)) & 0x0000000f]; - printf(" (ID=0x%1X%1X)\n", id1, id2); + printf(" (ID=0x%1X%1X, PLD=0x%02X)\n", id2, id1, in8(0xf0001000)); return 0; } |