mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
board: tbs2910: Add pinctrl driver and convert gpio to driver model
We need this for additional driver model conversions. Signed-off-by: Soeren Moch <smoch@web.de>
This commit is contained in:
parent
b184dc077a
commit
f0b427aca6
2 changed files with 6 additions and 0 deletions
|
@ -138,6 +138,7 @@ static void setup_iomux_enet(void)
|
||||||
imx_iomux_v3_setup_multiple_pads(enet_pads, ARRAY_SIZE(enet_pads));
|
imx_iomux_v3_setup_multiple_pads(enet_pads, ARRAY_SIZE(enet_pads));
|
||||||
|
|
||||||
/* Reset AR8035 PHY */
|
/* Reset AR8035 PHY */
|
||||||
|
gpio_request(IMX_GPIO_NR(1, 25), "ETH_PHY_RESET");
|
||||||
gpio_direction_output(IMX_GPIO_NR(1, 25) , 0);
|
gpio_direction_output(IMX_GPIO_NR(1, 25) , 0);
|
||||||
udelay(500);
|
udelay(500);
|
||||||
gpio_set_value(IMX_GPIO_NR(1, 25), 1);
|
gpio_set_value(IMX_GPIO_NR(1, 25), 1);
|
||||||
|
@ -230,12 +231,14 @@ int board_mmc_init(bd_t *bis)
|
||||||
case 0:
|
case 0:
|
||||||
imx_iomux_v3_setup_multiple_pads(
|
imx_iomux_v3_setup_multiple_pads(
|
||||||
usdhc2_pads, ARRAY_SIZE(usdhc2_pads));
|
usdhc2_pads, ARRAY_SIZE(usdhc2_pads));
|
||||||
|
gpio_request(USDHC2_CD_GPIO, "MMC0_CD");
|
||||||
gpio_direction_input(USDHC2_CD_GPIO);
|
gpio_direction_input(USDHC2_CD_GPIO);
|
||||||
usdhc_cfg[0].sdhc_clk = mxc_get_clock(MXC_ESDHC2_CLK);
|
usdhc_cfg[0].sdhc_clk = mxc_get_clock(MXC_ESDHC2_CLK);
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
imx_iomux_v3_setup_multiple_pads(
|
imx_iomux_v3_setup_multiple_pads(
|
||||||
usdhc3_pads, ARRAY_SIZE(usdhc3_pads));
|
usdhc3_pads, ARRAY_SIZE(usdhc3_pads));
|
||||||
|
gpio_request(USDHC3_CD_GPIO, "MMC1_CD");
|
||||||
gpio_direction_input(USDHC3_CD_GPIO);
|
gpio_direction_input(USDHC3_CD_GPIO);
|
||||||
usdhc_cfg[1].sdhc_clk = mxc_get_clock(MXC_ESDHC3_CLK);
|
usdhc_cfg[1].sdhc_clk = mxc_get_clock(MXC_ESDHC3_CLK);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -42,10 +42,13 @@ CONFIG_DEFAULT_DEVICE_TREE="imx6q-tbs2910"
|
||||||
CONFIG_ENV_IS_IN_MMC=y
|
CONFIG_ENV_IS_IN_MMC=y
|
||||||
CONFIG_DM=y
|
CONFIG_DM=y
|
||||||
CONFIG_DWC_AHSATA=y
|
CONFIG_DWC_AHSATA=y
|
||||||
|
CONFIG_DM_GPIO=y
|
||||||
CONFIG_FSL_ESDHC=y
|
CONFIG_FSL_ESDHC=y
|
||||||
CONFIG_PHYLIB=y
|
CONFIG_PHYLIB=y
|
||||||
CONFIG_MII=y
|
CONFIG_MII=y
|
||||||
CONFIG_PCI=y
|
CONFIG_PCI=y
|
||||||
|
CONFIG_PINCTRL=y
|
||||||
|
CONFIG_PINCTRL_IMX6=y
|
||||||
CONFIG_DM_THERMAL=y
|
CONFIG_DM_THERMAL=y
|
||||||
CONFIG_USB=y
|
CONFIG_USB=y
|
||||||
CONFIG_USB_STORAGE=y
|
CONFIG_USB_STORAGE=y
|
||||||
|
|
Loading…
Reference in a new issue