2 * Copyright (C) 2007,2008 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
3 * Copyright (C) 2008 Yusuke Goda <goda.yusuke@renesas.com>
5 * SPDX-License-Identifier: GPL-2.0+
10 #include <asm/processor.h>
18 #if defined(CONFIG_R7780MP)
19 puts("BOARD: Renesas Solutions R7780MP\n");
21 puts("BOARD: Renesas Solutions R7780RP\n");
34 void led_set_state(unsigned short value)
39 void ide_set_reset(int idereset)
41 /* if reset = 1 IDE reset will be asserted */
43 writew(0x432, FPGA_CFCTL);
44 #if defined(CONFIG_R7780MP)
45 writew(inw(FPGA_CFPOW)|0x01, FPGA_CFPOW);
47 writew(inw(FPGA_CFPOW)|0x02, FPGA_CFPOW);
49 writew(0x01, FPGA_CFCDINTCLR);
53 static struct pci_controller hose;
54 void pci_init_board(void)
56 pci_sh7780_init(&hose);
59 int board_eth_init(bd_t *bis)
61 /* return >= 0 if a chip is found, the board's AX88796L is n2k-based */
62 return ne2k_register() + pci_eth_init(bis);