summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorJoris Offouga <offougajoris@gmail.com>2019-04-04 14:00:54 +0200
committerStefano Babic <sbabic@denx.de>2019-04-25 19:16:24 +0200
commitd5f3a470de7fb65bc43608e58812d21789fad7b0 (patch)
treeb78ba349e17ab0ea99fd85afbaf43f187c4deeca /board
parent4adc9fc1a8876499598bb37603607b04ad719dd5 (diff)
pico-imx7d: defconfig Enable DM gpio pinctrl and pinctrl_imx7
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>
Diffstat (limited to 'board')
-rw-r--r--board/technexion/pico-imx7d/pico-imx7d.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/board/technexion/pico-imx7d/pico-imx7d.c b/board/technexion/pico-imx7d/pico-imx7d.c
index 767d13dfe5..3b9be45587 100644
--- a/board/technexion/pico-imx7d/pico-imx7d.c
+++ b/board/technexion/pico-imx7d/pico-imx7d.c
@@ -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 */