diff options
author | Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> | 2008-06-17 16:27:48 +0900 |
---|---|---|
committer | Nobuhiro Iwamatsu <iwamatsu@nigauri.org> | 2008-07-07 11:21:38 +0900 |
commit | 26209e48e8791670c93108029a5c31a30016c6df (patch) | |
tree | bf4c61b515eebf92e7384ab5f7c8a0daa0359c38 /board/sh7763rdp | |
parent | 5cd5b2c96ef0025762931349d350287aec03ab47 (diff) | |
download | u-boot-midas-26209e48e8791670c93108029a5c31a30016c6df.tar.gz u-boot-midas-26209e48e8791670c93108029a5c31a30016c6df.tar.bz2 u-boot-midas-26209e48e8791670c93108029a5c31a30016c6df.zip |
sh: Cleanup source code of SH7763RDP
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'board/sh7763rdp')
-rw-r--r-- | board/sh7763rdp/sh7763rdp.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/board/sh7763rdp/sh7763rdp.c b/board/sh7763rdp/sh7763rdp.c index 6f9501b47f..92ac7b7a96 100644 --- a/board/sh7763rdp/sh7763rdp.c +++ b/board/sh7763rdp/sh7763rdp.c @@ -49,19 +49,20 @@ int board_init(void) { vu_short dat; - *(vu_short *)(CPU_CMDREG) |= 0x0001; + /* Enable mode */ + writew(inw(CPU_CMDREG)|0x0001, CPU_CMDREG); /* GPIO Setting (eth1) */ - dat = *(vu_short *)(PSEL1); - *(vu_short *)PSEL1 = ((dat & ~0xff00) | 0x2400); - *(vu_short *)PFCR = 0; - *(vu_short *)PGCR = 0; - *(vu_short *)PHCR = 0; + dat = inw(PSEL1); + writew(((dat & ~0xff00) | 0x2400), PSEL1); + writew(0, PFCR); + writew(0, PGCR); + writew(0, PHCR); return 0; } -int dram_init (void) +int dram_init(void) { DECLARE_GLOBAL_DATA_PTR; @@ -71,6 +72,6 @@ int dram_init (void) return 0; } -void led_set_state (unsigned short value) +void led_set_state(unsigned short value) { } |