diff options
author | Wolfgang Denk <wd@denx.de> | 2008-07-09 23:09:36 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-07-09 23:09:36 +0200 |
commit | 2caea1ebee1fb20e1b229f1f821225829fb87f0e (patch) | |
tree | 86070cd53a417f857754822f15ba8536a9df2c40 /board/sh7763rdp/sh7763rdp.c | |
parent | 417faf285b2527acb2de24c5cd3e2621d385408c (diff) | |
parent | 689c1b30caacba3fbca0b1813facb3ab70b6cd63 (diff) | |
download | u-boot-imx-2caea1ebee1fb20e1b229f1f821225829fb87f0e.zip u-boot-imx-2caea1ebee1fb20e1b229f1f821225829fb87f0e.tar.gz u-boot-imx-2caea1ebee1fb20e1b229f1f821225829fb87f0e.tar.bz2 |
Merge branch 'master' of git://www.denx.de/git/u-boot-sh
Diffstat (limited to 'board/sh7763rdp/sh7763rdp.c')
-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 6f9501b..92ac7b7 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) { } |