summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-08-26 19:10:46 (GMT)
committerTom Rini <trini@konsulko.com>2017-08-26 19:10:46 (GMT)
commitf72b96ec8f7a7b2e2952333c00d907cf0fd726a3 (patch)
tree94406c1ca1da2e3f55e9d63b995186ff6c467eca /board
parent0031af9ce7b1c2d98ce77cc20bd7546d64e334fe (diff)
parentf7f79b4493b8beeb1de099d1d1c86049b018ef5c (diff)
downloadu-boot-f72b96ec8f7a7b2e2952333c00d907cf0fd726a3.tar.xz
Merge branch 'rmobile' of git://git.denx.de/u-boot-sh
Diffstat (limited to 'board')
-rw-r--r--board/renesas/salvator-x/salvator-x.c39
-rw-r--r--board/renesas/ulcb/ulcb.c35
2 files changed, 2 insertions, 72 deletions
diff --git a/board/renesas/salvator-x/salvator-x.c b/board/renesas/salvator-x/salvator-x.c
index 6270de4..a09cd56 100644
--- a/board/renesas/salvator-x/salvator-x.c
+++ b/board/renesas/salvator-x/salvator-x.c
@@ -161,22 +161,9 @@ int board_init(void)
return 0;
}
-static struct eth_pdata salvator_x_ravb_platdata = {
- .iobase = 0xE6800000,
- .phy_interface = 0,
- .max_speed = 1000,
-};
-
-U_BOOT_DEVICE(salvator_x_ravb) = {
- .name = "ravb",
- .platdata = &salvator_x_ravb_platdata,
-};
-
#ifdef CONFIG_SH_SDHI
int board_mmc_init(bd_t *bis)
{
- int ret = -ENODEV;
-
/* SDHI0 */
gpio_request(GPIO_GFN_SD0_DAT0, NULL);
gpio_request(GPIO_GFN_SD0_DAT1, NULL);
@@ -192,11 +179,6 @@ int board_mmc_init(bd_t *bis)
gpio_direction_output(GPIO_GP_5_2, 1); /* power on */
gpio_direction_output(GPIO_GP_5_1, 1); /* 1: 3.3V, 0: 1.8V */
- ret = sh_sdhi_init(CONFIG_SYS_SH_SDHI0_BASE, 0,
- SH_SDHI_QUIRK_64BIT_BUF);
- if (ret)
- return ret;
-
/* SDHI1/SDHI2 eMMC */
gpio_request(GPIO_GFN_SD1_DAT0, NULL);
gpio_request(GPIO_GFN_SD1_DAT1, NULL);
@@ -219,11 +201,6 @@ int board_mmc_init(bd_t *bis)
gpio_direction_output(GPIO_GP_5_3, 0); /* 1: 3.3V, 0: 1.8V */
gpio_direction_output(GPIO_GP_5_9, 0); /* 1: 3.3V, 0: 1.8V */
- ret = sh_sdhi_init(CONFIG_SYS_SH_SDHI2_BASE, 1,
- SH_SDHI_QUIRK_64BIT_BUF);
- if (ret)
- return ret;
-
#if defined(CONFIG_R8A7795)
/* SDHI3 */
gpio_request(GPIO_GFN_SD3_DAT0, NULL); /* GP_4_9 */
@@ -251,9 +228,7 @@ int board_mmc_init(bd_t *bis)
gpio_direction_output(GPIO_GP_3_15, 1); /* power on */
gpio_direction_output(GPIO_GP_3_14, 1); /* 1: 3.3V, 0: 1.8V */
- ret = sh_sdhi_init(CONFIG_SYS_SH_SDHI3_BASE, 2,
- SH_SDHI_QUIRK_64BIT_BUF);
- return ret;
+ return 0;
}
#endif
@@ -311,15 +286,3 @@ void reset_cpu(ulong addr)
writel(RST_CODE, RST_CA57RESCNT);
#endif
}
-
-static const struct sh_serial_platdata serial_platdata = {
- .base = SCIF2_BASE,
- .type = PORT_SCIF,
- .clk = CONFIG_SH_SCIF_CLK_FREQ,
- .clk_mode = INT_CLK,
-};
-
-U_BOOT_DEVICE(salvator_x_scif2) = {
- .name = "serial_sh",
- .platdata = &serial_platdata,
-};
diff --git a/board/renesas/ulcb/ulcb.c b/board/renesas/ulcb/ulcb.c
index 4005ec8..068cbde 100644
--- a/board/renesas/ulcb/ulcb.c
+++ b/board/renesas/ulcb/ulcb.c
@@ -140,22 +140,9 @@ int board_init(void)
return 0;
}
-static struct eth_pdata salvator_x_ravb_platdata = {
- .iobase = 0xE6800000,
- .phy_interface = 0,
- .max_speed = 1000,
-};
-
-U_BOOT_DEVICE(salvator_x_ravb) = {
- .name = "ravb",
- .platdata = &salvator_x_ravb_platdata,
-};
-
#ifdef CONFIG_SH_SDHI
int board_mmc_init(bd_t *bis)
{
- int ret = -ENODEV;
-
/* SDHI0 */
gpio_request(GPIO_GFN_SD0_DAT0, NULL);
gpio_request(GPIO_GFN_SD0_DAT1, NULL);
@@ -171,11 +158,6 @@ int board_mmc_init(bd_t *bis)
gpio_direction_output(GPIO_GP_5_2, 1); /* power on */
gpio_direction_output(GPIO_GP_5_1, 1); /* 1: 3.3V, 0: 1.8V */
- ret = sh_sdhi_init(CONFIG_SYS_SH_SDHI0_BASE, 0,
- SH_SDHI_QUIRK_64BIT_BUF);
- if (ret)
- return ret;
-
/* SDHI1/SDHI2 eMMC */
gpio_request(GPIO_GFN_SD1_DAT0, NULL);
gpio_request(GPIO_GFN_SD1_DAT1, NULL);
@@ -198,10 +180,7 @@ int board_mmc_init(bd_t *bis)
gpio_direction_output(GPIO_GP_5_3, 0); /* 1: 3.3V, 0: 1.8V */
gpio_direction_output(GPIO_GP_5_9, 0); /* 1: 3.3V, 0: 1.8V */
- ret = sh_sdhi_init(CONFIG_SYS_SH_SDHI2_BASE, 1,
- SH_SDHI_QUIRK_64BIT_BUF);
-
- return ret;
+ return 0;
}
#endif
@@ -243,15 +222,3 @@ int dram_init_banksize(void)
const struct rmobile_sysinfo sysinfo = {
CONFIG_RCAR_BOARD_STRING
};
-
-static const struct sh_serial_platdata serial_platdata = {
- .base = SCIF2_BASE,
- .type = PORT_SCIF,
- .clk = CONFIG_SH_SCIF_CLK_FREQ,
- .clk_mode = INT_CLK,
-};
-
-U_BOOT_DEVICE(salvator_x_scif2) = {
- .name = "serial_sh",
- .platdata = &serial_platdata,
-};