1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2007,2008
4 * Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
10 #include <asm/processor.h>
15 puts("BOARD: Renesas Solutions R2D Plus\n");
24 int board_late_init(void)
29 #define FPGA_BASE 0xA4000000
30 #define FPGA_CFCTL (FPGA_BASE + 0x04)
31 #define CFCTL_EN (0x432)
32 #define FPGA_CFPOW (FPGA_BASE + 0x06)
33 #define CFPOW_ON (0x02)
34 #define FPGA_CFCDINTCLR (FPGA_BASE + 0x2A)
35 #define CFCDINTCLR_EN (0x01)
37 void ide_set_reset(int idereset)
39 /* if reset = 1 IDE reset will be asserted */
41 outw(CFCTL_EN, FPGA_CFCTL); /* CF enable */
42 outw(inw(FPGA_CFPOW)|CFPOW_ON, FPGA_CFPOW); /* Power OM */
43 outw(CFCDINTCLR_EN, FPGA_CFCDINTCLR); /* Int clear */
47 int board_eth_init(bd_t *bis)
49 return pci_eth_init(bis);