5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of
8 * the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
23 #include <asm/processor.h>
31 #if defined(CONFIG_R7780MP)
32 puts("BOARD: Renesas Solutions R7780MP\n");
34 puts("BOARD: Renesas Solutions R7780RP\n");
49 DECLARE_GLOBAL_DATA_PTR;
51 gd->bd->bi_memstart = CFG_SDRAM_BASE;
52 gd->bd->bi_memsize = CFG_SDRAM_SIZE;
53 printf("DRAM: %dMB\n", CFG_SDRAM_SIZE / (1024 * 1024));
57 void led_set_state(unsigned short value)
62 void ide_set_reset(int idereset)
64 /* if reset = 1 IDE reset will be asserted */
66 writew(0x432, FPGA_CFCTL);
67 #if defined(CONFIG_R7780MP)
68 writew(inw(FPGA_CFPOW)|0x01, FPGA_CFPOW);
70 writew(inw(FPGA_CFPOW)|0x02, FPGA_CFPOW);
72 writew(0x01, FPGA_CFCDINTCLR);
76 static struct pci_controller hose;
77 void pci_init_board(void)
79 pci_sh7780_init(&hose);
82 int board_eth_init(bd_t *bis)
84 return pci_eth_init(bis);