]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: ventana: add pinctrl and remove unneeded UART init and config
authorTim Harvey <tharvey@gateworks.com>
Mon, 1 Mar 2021 22:33:33 +0000 (14:33 -0800)
committerStefano Babic <sbabic@denx.de>
Thu, 8 Apr 2021 18:29:53 +0000 (20:29 +0200)
Once the IMX6 pinctrl driver is added UART is fully using driver mode
so we no longer need to config and initialize it.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
board/gateworks/gw_ventana/gw_ventana.c
configs/gwventana_emmc_defconfig
configs/gwventana_gw5904_defconfig
configs/gwventana_nand_defconfig

index fb745ccceee65c79dcd3ebc2610d66f8b99b257b..0fbbfb834632bebc8f98013d09c6b93645b65b3c 100644 (file)
@@ -24,7 +24,6 @@
 #include <asm/io.h>
 #include <asm/setup.h>
 #include <dm.h>
-#include <dm/platform_data/serial_mxc.h>
 #include <env.h>
 #include <hwconfig.h>
 #include <i2c.h>
@@ -628,8 +627,6 @@ void get_board_serial(struct tag_serialnr *serialnr)
 
 int board_early_init_f(void)
 {
-       setup_iomux_uart();
-
 #if defined(CONFIG_VIDEO_IPUV3)
        setup_display();
 #endif
@@ -1389,12 +1386,3 @@ int ft_board_setup(void *blob, struct bd_info *bd)
        return 0;
 }
 #endif /* CONFIG_OF_BOARD_SETUP */
-
-static struct mxc_serial_plat ventana_mxc_serial_plat = {
-       .reg = (struct mxc_uart *)UART2_BASE,
-};
-
-U_BOOT_DRVINFO(ventana_serial) = {
-       .name   = "serial_mxc",
-       .plat = &ventana_mxc_serial_plat,
-};
index 453c80dd4c44dd6863617d3e0b28c7854e592fa8..433de5ece3dd412633449b605365af1721037feb 100644 (file)
@@ -87,6 +87,8 @@ CONFIG_PHYLIB=y
 CONFIG_E1000=y
 CONFIG_MII=y
 CONFIG_PCI=y
+CONFIG_PINCTRL=y
+CONFIG_PINCTRL_IMX6=y
 CONFIG_CONS_INDEX=2
 CONFIG_DM_SERIAL=y
 CONFIG_MXC_UART=y
index 4dc636637f7d550e42b10f5a2eba3e8ad35114d1..4fd734e260eb78634b91274d3c1eb8c70e04bd51 100644 (file)
@@ -91,6 +91,8 @@ CONFIG_MV88E61XX_FIXED_PORTS=0x0
 CONFIG_E1000=y
 CONFIG_MII=y
 CONFIG_PCI=y
+CONFIG_PINCTRL=y
+CONFIG_PINCTRL_IMX6=y
 CONFIG_CONS_INDEX=2
 CONFIG_DM_SERIAL=y
 CONFIG_MXC_UART=y
index bd8434030807ded30e307366e7ef808201176308..5d8126e9771852afa43fa734f2ccf458fbd01433 100644 (file)
@@ -91,6 +91,8 @@ CONFIG_PHYLIB=y
 CONFIG_E1000=y
 CONFIG_MII=y
 CONFIG_PCI=y
+CONFIG_PINCTRL=y
+CONFIG_PINCTRL_IMX6=y
 CONFIG_CONS_INDEX=2
 CONFIG_DM_SERIAL=y
 CONFIG_MXC_UART=y