]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
pico-imx6ul: Convert to CONFIG_DM_GPIO
authorFabio Estevam <festevam@gmail.com>
Thu, 14 Feb 2019 12:01:49 +0000 (10:01 -0200)
committerStefano Babic <sbabic@denx.de>
Wed, 13 Mar 2019 08:14:35 +0000 (09:14 +0100)
Convert to CONFIG_DM_GPIO.

Also, DM GPIO requires gpio_request() to be called explicitly before
doing any gpio operation, so do as requested.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
board/technexion/pico-imx6ul/pico-imx6ul.c
configs/pico-hobbit-imx6ul_defconfig
configs/pico-imx6ul_defconfig
configs/pico-pi-imx6ul_defconfig

index 376cd60ed9397304ac8d43b7e63eae5b54b16476..1b7b99951338688bac6fe099b3d04d051e38042c 100644 (file)
@@ -91,6 +91,7 @@ int board_eth_init(bd_t *bis)
 {
        setup_iomux_fec();
 
+       gpio_request(RMII_PHY_RESET, "enet_phy_reset");
        gpio_direction_output(RMII_PHY_RESET, 0);
        /*
         * According to KSZ8081MNX-RNB manual:
index d7412c4afb7b49ee8d1b4b760105c4c41a40d12d..661c49ab14bec1ab93bb935a1ce241064a8e0288 100644 (file)
@@ -42,11 +42,14 @@ CONFIG_FASTBOOT_BUF_SIZE=0x10000000
 CONFIG_FASTBOOT_FLASH=y
 CONFIG_FASTBOOT_FLASH_MMC_DEV=0
 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y
+CONFIG_DM_GPIO=y
 CONFIG_DM_MMC=y
 CONFIG_FSL_ESDHC=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_MICREL=y
 CONFIG_MII=y
+CONFIG_PINCTRL=y
+CONFIG_PINCTRL_IMX6=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="FSL"
index fa5f46da6b4788e30fbd508336a857d6a370969c..0987d14c66cf21c61c876b6fa93509d3c51710e5 100644 (file)
@@ -44,11 +44,14 @@ CONFIG_FASTBOOT_BUF_SIZE=0x10000000
 CONFIG_FASTBOOT_FLASH=y
 CONFIG_FASTBOOT_FLASH_MMC_DEV=0
 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y
+CONFIG_DM_GPIO=y
 CONFIG_DM_MMC=y
 CONFIG_FSL_ESDHC=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_MICREL=y
 CONFIG_MII=y
+CONFIG_PINCTRL=y
+CONFIG_PINCTRL_IMX6=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="FSL"
index b44be6f97d195ddc49f2f311a4147c588b735e27..e1c07a1c9f371eef7352740a6bd0b3d680e7f1e3 100644 (file)
@@ -42,11 +42,14 @@ CONFIG_FASTBOOT_BUF_SIZE=0x10000000
 CONFIG_FASTBOOT_FLASH=y
 CONFIG_FASTBOOT_FLASH_MMC_DEV=0
 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y
+CONFIG_DM_GPIO=y
 CONFIG_DM_MMC=y
 CONFIG_FSL_ESDHC=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_MICREL=y
 CONFIG_MII=y
+CONFIG_PINCTRL=y
+CONFIG_PINCTRL_IMX6=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="FSL"