2 * Copyright (C) 2008 Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
4 * SPDX-License-Identifier: GPL-2.0+
9 #include <asm/processor.h>
15 puts("BOARD: Renesas Technology Corp. R0P7785LC0011RL\n");
24 static struct pci_controller hose;
25 void pci_init_board(void)
27 pci_sh7780_init(&hose);
30 int board_eth_init(bd_t *bis)
32 return pci_eth_init(bis);
35 #if defined(CONFIG_SH_32BIT)
36 int do_pmb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
39 writel(0x00000004, 0xff000010);
41 /* delete PMB for peripheral */
42 writel(0, PMB_ADDR_BASE(0));
43 writel(0, PMB_DATA_BASE(0));
44 writel(0, PMB_ADDR_BASE(1));
45 writel(0, PMB_DATA_BASE(1));
46 writel(0, PMB_ADDR_BASE(2));
47 writel(0, PMB_DATA_BASE(2));
49 /* add PMB for SDRAM(0x40000000 - 0x47ffffff) */
50 writel(mk_pmb_addr_val(0x80), PMB_ADDR_BASE(8));
51 writel(mk_pmb_data_val(0x40, 0, 1, 1, 0, 1, 1), PMB_DATA_BASE(8));
52 writel(mk_pmb_addr_val(0xa0), PMB_ADDR_BASE(12));
53 writel(mk_pmb_data_val(0x40, 1, 1, 1, 0, 0, 1), PMB_DATA_BASE(12));
60 "pmb - PMB setting\n",
62 " - PMB setting for all SDRAM mapping"