From: Fabio Estevam <festevam@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/6] pico-imx6ul: Convert to CONFIG_DM_GPIO
Date: Thu, 14 Feb 2019 10:01:49 -0200 [thread overview]
Message-ID: <20190214120151.20704-4-festevam@gmail.com> (raw)
In-Reply-To: <20190214120151.20704-1-festevam@gmail.com>
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>
---
board/technexion/pico-imx6ul/pico-imx6ul.c | 1 +
configs/pico-hobbit-imx6ul_defconfig | 3 +++
configs/pico-imx6ul_defconfig | 3 +++
configs/pico-pi-imx6ul_defconfig | 3 +++
4 files changed, 10 insertions(+)
diff --git a/board/technexion/pico-imx6ul/pico-imx6ul.c b/board/technexion/pico-imx6ul/pico-imx6ul.c
index 376cd60ed9..1b7b999513 100644
--- a/board/technexion/pico-imx6ul/pico-imx6ul.c
+++ b/board/technexion/pico-imx6ul/pico-imx6ul.c
@@ -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:
diff --git a/configs/pico-hobbit-imx6ul_defconfig b/configs/pico-hobbit-imx6ul_defconfig
index d7412c4afb..661c49ab14 100644
--- a/configs/pico-hobbit-imx6ul_defconfig
+++ b/configs/pico-hobbit-imx6ul_defconfig
@@ -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"
diff --git a/configs/pico-imx6ul_defconfig b/configs/pico-imx6ul_defconfig
index fa5f46da6b..0987d14c66 100644
--- a/configs/pico-imx6ul_defconfig
+++ b/configs/pico-imx6ul_defconfig
@@ -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"
diff --git a/configs/pico-pi-imx6ul_defconfig b/configs/pico-pi-imx6ul_defconfig
index b44be6f97d..e1c07a1c9f 100644
--- a/configs/pico-pi-imx6ul_defconfig
+++ b/configs/pico-pi-imx6ul_defconfig
@@ -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"
--
2.17.1
next prev parent reply other threads:[~2019-02-14 12:01 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-14 12:01 [U-Boot] [PATCH 1/6] pico-imx6ul: Import dts files from kernel Fabio Estevam
2019-02-14 12:01 ` [U-Boot] [PATCH 2/6] pico-imx6ul: Select CONFIG_OF_CONTROL Fabio Estevam
2019-02-14 12:44 ` Otavio Salvador
2019-02-14 12:01 ` [U-Boot] [PATCH 3/6] pico-imx6ul: Convert to DM MMC Fabio Estevam
2019-02-14 12:43 ` Otavio Salvador
2019-02-14 12:01 ` Fabio Estevam [this message]
2019-02-14 12:46 ` [U-Boot] [PATCH 4/6] pico-imx6ul: Convert to CONFIG_DM_GPIO Otavio Salvador
2019-02-14 12:01 ` [U-Boot] [PATCH 5/6] pico-imx6ul: Convert to DM_PMIC Fabio Estevam
2019-02-14 12:45 ` Otavio Salvador
2019-02-14 12:01 ` [U-Boot] [PATCH 6/6] pico-imx6ul: README: Adjust the binary name after DM conversion Fabio Estevam
2019-02-14 12:44 ` Otavio Salvador
2019-02-14 12:43 ` [U-Boot] [PATCH 1/6] pico-imx6ul: Import dts files from kernel Otavio Salvador
2019-03-07 13:03 ` Otavio Salvador
2019-03-07 13:17 ` Stefano Babic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190214120151.20704-4-festevam@gmail.com \
--to=festevam@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox