Merge branch 'rmobile' of git://git.denx.de/u-boot-sh
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user