diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2009-03-27 23:26:43 +0100 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2009-04-04 20:42:21 +0200 |
commit | f82518d7f443ebac5f8821103a3c521c963aa6ee (patch) | |
tree | 2e9d268371311b19943e5f41ec6d15dfdeb7e766 /board/atmel | |
parent | 3524049cd053746298e4cfab2449882e75c146fc (diff) | |
download | u-boot-imx-f82518d7f443ebac5f8821103a3c521c963aa6ee.zip u-boot-imx-f82518d7f443ebac5f8821103a3c521c963aa6ee.tar.gz u-boot-imx-f82518d7f443ebac5f8821103a3c521c963aa6ee.tar.bz2 |
at91rm9200: Reset update
Update the rm9200 reset sequence to try executing a board-specific reset
function and move specific board reset to board.
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'board/atmel')
-rw-r--r-- | board/atmel/at91rm9200dk/at91rm9200dk.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/board/atmel/at91rm9200dk/at91rm9200dk.c b/board/atmel/at91rm9200dk/at91rm9200dk.c index b89a3fd..c761dd7 100644 --- a/board/atmel/at91rm9200dk/at91rm9200dk.c +++ b/board/atmel/at91rm9200dk/at91rm9200dk.c @@ -54,6 +54,16 @@ int board_init (void) return 0; } +void board_reset (void) +{ + AT91PS_PIO pio = AT91C_BASE_PIOA; + + /* Clear PA19 to trigger the hard reset */ + writel(0x00080000, pio->PIO_CODR); + writel(0x00080000, pio->PIO_OER); + writel(0x00080000, pio->PIO_PER); +} + int dram_init (void) { gd->bd->bi_dram[0].start = PHYS_SDRAM; |