diff options
author | Jens Scharsig <js_at_ng@scharsoft.de> | 2010-02-03 22:46:58 +0100 |
---|---|---|
committer | Tom Rix <Tom.Rix@windriver.com> | 2010-02-12 12:31:55 -0600 |
commit | 0cf0b93161beb3f3ed5e37e6112aedf15da17e8a (patch) | |
tree | b620b5a93d12d5039bc541be298165a7f06f2212 /cpu/arm926ejs/at91/reset.c | |
parent | 7f9e8633ac9c846e7e4f867507cbd5de1bd99e0c (diff) | |
download | u-boot-imx-0cf0b93161beb3f3ed5e37e6112aedf15da17e8a.zip u-boot-imx-0cf0b93161beb3f3ed5e37e6112aedf15da17e8a.tar.gz u-boot-imx-0cf0b93161beb3f3ed5e37e6112aedf15da17e8a.tar.bz2 |
convert common files to new SoC access
* add's a warning to all files, which need update to new SoC access
* convert common files in cpu/../at91 and a lot of drivers to use
c stucture SoC access
Signed-off-by: Jens Scharsig <js_at_ng@scharsoft.de>
Diffstat (limited to 'cpu/arm926ejs/at91/reset.c')
-rw-r--r-- | cpu/arm926ejs/at91/reset.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cpu/arm926ejs/at91/reset.c b/cpu/arm926ejs/at91/reset.c index f963e14..1b67e77 100644 --- a/cpu/arm926ejs/at91/reset.c +++ b/cpu/arm926ejs/at91/reset.c @@ -32,10 +32,12 @@ */ void reset_cpu(ulong ignored) { + at91_rstc_t *rstc = (at91_rstc_t *) AT91_RSTC_BASE; + /* this is the way Linux does it */ - at91_sys_write(AT91_RSTC_CR, AT91_RSTC_KEY | - AT91_RSTC_PROCRST | - AT91_RSTC_PERRST); + + writel(AT91_RSTC_KEY | AT91_RSTC_CR_PROCRST | AT91_RSTC_CR_PERRST, + &rstc->cr); while (1); /* Never reached */ |