pico-imx7d: defconfig Enable DM gpio pinctrl and pinctrl_imx7
authorJoris Offouga <offougajoris@gmail.com>
Thu, 4 Apr 2019 12:00:54 +0000 (14:00 +0200)
committerStefano Babic <sbabic@denx.de>
Thu, 25 Apr 2019 17:16:24 +0000 (19:16 +0200)
This patch is necessary for convert this board to dm driver model

DM GPIO requires gpio_request() to be called explicitly before
doing any gpio operation

Signed-off-by: Joris Offouga <offougajoris@gmail.com>
board/technexion/pico-imx7d/pico-imx7d.c
configs/pico-hobbit-imx7d_defconfig
configs/pico-imx7d_defconfig
configs/pico-pi-imx7d_defconfig

index 767d13dfe5dc520cc5845308c783d47691919518..3b9be455878421932654343630d7740a5a14c4a6 100644 (file)
@@ -165,7 +165,7 @@ static iomux_v3_cfg_t const fec1_pads[] = {
 static void setup_iomux_fec(void)
 {
        imx_iomux_v3_setup_multiple_pads(fec1_pads, ARRAY_SIZE(fec1_pads));
-
+       gpio_request(FEC1_RST_GPIO, "phy_rst");
        gpio_direction_output(FEC1_RST_GPIO, 0);
        udelay(500);
        gpio_set_value(FEC1_RST_GPIO, 1);
@@ -291,6 +291,8 @@ static iomux_v3_cfg_t const lcd_pads[] = {
 void setup_lcd(void)
 {
        imx_iomux_v3_setup_multiple_pads(lcd_pads, ARRAY_SIZE(lcd_pads));
+       gpio_request(IMX_GPIO_NR(1, 11), "lcd_brightness");
+       gpio_request(IMX_GPIO_NR(1, 6), "lcd_enable");
        /* Set Brightness to high */
        gpio_direction_output(IMX_GPIO_NR(1, 11) , 1);
        /* Set LCD enable to high */
index c631850bb06534831d568753c7c55263c4f9fdb8..8738f0bc29ddae2df91d7533dd8a77564dd51b62 100644 (file)
@@ -27,6 +27,9 @@ CONFIG_SPL_USB_SDP_SUPPORT=y
 CONFIG_CMD_BOOTMENU=y
 # CONFIG_CMD_IMI is not set
 # CONFIG_CMD_XIMG is not set
+CONFIG_PINCTRL=y
+CONFIG_PINCTRL_IMX7=y
+CONFIG_DM_GPIO=y
 CONFIG_CMD_SPL=y
 CONFIG_CMD_SPL_WRITE_SIZE=0x20000
 CONFIG_CMD_DFU=y
index 13704941cf0ddee1218bde3ad52a5046eedbc8ff..54d7da8768c705c087a17e4ab7a318b736d27ca0 100644 (file)
@@ -27,6 +27,9 @@ CONFIG_SPL_USB_SDP_SUPPORT=y
 CONFIG_CMD_BOOTMENU=y
 # CONFIG_CMD_IMI is not set
 # CONFIG_CMD_XIMG is not set
+CONFIG_PINCTRL=y
+CONFIG_PINCTRL_IMX7=y
+CONFIG_DM_GPIO=y
 CONFIG_CMD_SPL=y
 CONFIG_CMD_SPL_WRITE_SIZE=0x20000
 CONFIG_CMD_DFU=y
index 05d5fe51751714fbb53353c334d071d8cc007ca9..662492aae1db901267502e3641693639417c9a80 100644 (file)
@@ -27,6 +27,9 @@ CONFIG_SPL_USB_SDP_SUPPORT=y
 CONFIG_CMD_BOOTMENU=y
 # CONFIG_CMD_IMI is not set
 # CONFIG_CMD_XIMG is not set
+CONFIG_PINCTRL=y
+CONFIG_PINCTRL_IMX7=y
+CONFIG_DM_GPIO=y
 CONFIG_CMD_SPL=y
 CONFIG_CMD_SPL_WRITE_SIZE=0x20000
 CONFIG_CMD_DFU=y