summaryrefslogtreecommitdiff
path: root/board/r7780mp
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>2008-06-17 16:27:41 +0900
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>2008-07-07 11:21:38 +0900
commit4ec7e915cfaa31b392755dd2c8231e64736d2ea8 (patch)
tree6e9c6b1bb503863798f2936a5aaf17bd6666ada4 /board/r7780mp
parent0955ef34c0454ae2ee59a78657a0f01fb3ef16d6 (diff)
downloadu-boot-imx-4ec7e915cfaa31b392755dd2c8231e64736d2ea8.zip
u-boot-imx-4ec7e915cfaa31b392755dd2c8231e64736d2ea8.tar.gz
u-boot-imx-4ec7e915cfaa31b392755dd2c8231e64736d2ea8.tar.bz2
sh: Cleanup source code of R7780MP
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'board/r7780mp')
-rw-r--r--board/r7780mp/r7780mp.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/board/r7780mp/r7780mp.c b/board/r7780mp/r7780mp.c
index 1a37711..19c35d3 100644
--- a/board/r7780mp/r7780mp.c
+++ b/board/r7780mp/r7780mp.c
@@ -38,12 +38,12 @@ int checkboard(void)
int board_init(void)
{
/* SCIF Enable */
- *(vu_short*)PHCR = 0x0000;
+ writew(0x0, PHCR);
return 0;
}
-int dram_init (void)
+int dram_init(void)
{
DECLARE_GLOBAL_DATA_PTR;
@@ -53,29 +53,27 @@ int dram_init (void)
return 0;
}
-void led_set_state (unsigned short value)
+void led_set_state(unsigned short value)
{
}
-void ide_set_reset (int idereset)
+void ide_set_reset(int idereset)
{
/* if reset = 1 IDE reset will be asserted */
- if (idereset){
- (*(vu_short *)FPGA_CFCTL) = 0x432;
+ if (idereset) {
+ writew(0x432, FPGA_CFCTL);
#if defined(CONFIG_R7780MP)
- (*(vu_short *)FPGA_CFPOW) |= 0x01;
+ writew(inw(FPGA_CFPOW)|0x01, FPGA_CFPOW);
#else
- (*(vu_short *)FPGA_CFPOW) |= 0x02;
+ writew(inw(FPGA_CFPOW)|0x02, FPGA_CFPOW);
#endif
- (*(vu_short *)FPGA_CFCDINTCLR) = 0x01;
+ writew(0x01, FPGA_CFCDINTCLR);
}
}
-#if defined(CONFIG_PCI)
static struct pci_controller hose;
void pci_init_board(void)
{
- pci_sh7780_init( &hose );
+ pci_sh7780_init(&hose);
}
-#endif