mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-30 00:21:06 +00:00
sh: Cleanup source code of R7780MP
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
This commit is contained in:
parent
0955ef34c0
commit
4ec7e915cf
1 changed files with 10 additions and 12 deletions
|
@ -38,7 +38,7 @@ int checkboard(void)
|
||||||
int board_init(void)
|
int board_init(void)
|
||||||
{
|
{
|
||||||
/* SCIF Enable */
|
/* SCIF Enable */
|
||||||
*(vu_short*)PHCR = 0x0000;
|
writew(0x0, PHCR);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -62,20 +62,18 @@ void ide_set_reset (int idereset)
|
||||||
{
|
{
|
||||||
/* if reset = 1 IDE reset will be asserted */
|
/* if reset = 1 IDE reset will be asserted */
|
||||||
if (idereset) {
|
if (idereset) {
|
||||||
(*(vu_short *)FPGA_CFCTL) = 0x432;
|
writew(0x432, FPGA_CFCTL);
|
||||||
#if defined(CONFIG_R7780MP)
|
#if defined(CONFIG_R7780MP)
|
||||||
(*(vu_short *)FPGA_CFPOW) |= 0x01;
|
writew(inw(FPGA_CFPOW)|0x01, FPGA_CFPOW);
|
||||||
#else
|
#else
|
||||||
(*(vu_short *)FPGA_CFPOW) |= 0x02;
|
writew(inw(FPGA_CFPOW)|0x02, FPGA_CFPOW);
|
||||||
#endif
|
#endif
|
||||||
(*(vu_short *)FPGA_CFCDINTCLR) = 0x01;
|
writew(0x01, FPGA_CFCDINTCLR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(CONFIG_PCI)
|
|
||||||
static struct pci_controller hose;
|
static struct pci_controller hose;
|
||||||
void pci_init_board(void)
|
void pci_init_board(void)
|
||||||
{
|
{
|
||||||
pci_sh7780_init(&hose);
|
pci_sh7780_init(&hose);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
Loading…
Reference in a new issue