]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: imx: vining2000: Enable DM GPIO
authorMarek Vasut <marex@denx.de>
Fri, 17 May 2019 20:25:26 +0000 (22:25 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 11 Jun 2019 08:42:48 +0000 (10:42 +0200)
Enable DM GPIO support on iMX6SX VINING|2000 and fix up
board code where applicable.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Cc: Silvio Fricke <silvio.fricke@softing.com>
Cc: Stefano Babic <sbabic@denx.de>
board/softing/vining_2000/vining_2000.c
configs/vining_2000_defconfig

index 9ab7fbeddf0924832acdf79e12a97e2ef47a7ffd..d960773671e50cee7fa0e25a30c6c283c5d7668c 100644 (file)
@@ -133,6 +133,7 @@ int board_eth_init(bd_t *bis)
                goto eth_fail;
 
        /* reset phy */
+       gpio_request(PHY_RESET, "PHY-reset");
        gpio_direction_output(PHY_RESET, 0);
        mdelay(16);
        gpio_set_value(PHY_RESET, 1);
index 02dd223e63cb371455c25569c75516dfffbea614..94df5ac4df26579d8e6e7de7566bf5acf6ab8895 100644 (file)
@@ -38,6 +38,7 @@ CONFIG_EFI_PARTITION=y
 CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="imx6sx-softing-vining-2000"
 CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
+CONFIG_DM_GPIO=y
 CONFIG_DM_MMC=y
 CONFIG_SUPPORT_EMMC_RPMB=y
 CONFIG_SUPPORT_EMMC_BOOT=y