board: ge: mx53ppd: use DM for uart
authorIan Ray <ian.ray@ge.com>
Fri, 31 Jan 2020 13:08:02 +0000 (15:08 +0200)
committerStefano Babic <sbabic@denx.de>
Sun, 9 Feb 2020 20:47:20 +0000 (21:47 +0100)
Drop PPD_UART_PAD_CTRL since it matches defaults.
Enable DM serial and MXC uart.

Signed-off-by: Ian Ray <ian.ray@ge.com>
Signed-off-by: Robert Beckett <bob.beckett@collabora.com>
board/ge/mx53ppd/mx53ppd.c
board/ge/mx53ppd/ppd_gpio.h
configs/mx53ppd_defconfig
include/configs/mx53ppd.h

index bdf06914c91c3579ae64fa7d2146c8abf6e40c12..f8320ffe8f39e7946e66c8d2da0c2e8a60e6e664 100644 (file)
@@ -85,9 +85,6 @@ u32 get_board_rev(void)
        return get_cpu_rev() & ~(0xF << 8);
 }
 
-#define UART_PAD_CTRL  (PAD_CTL_HYS | PAD_CTL_DSE_HIGH | \
-                        PAD_CTL_PUS_100K_UP | PAD_CTL_ODE)
-
 #ifdef CONFIG_USB_EHCI_MX5
 int board_ehci_hcd_init(int port)
 {
index 163782a4eb9db3cf4a8221d9bf7e8ff6b51a9cc0..98c41d4d6712f2188fb375d22bb73979abcba4e6 100644 (file)
@@ -9,15 +9,9 @@
 #include <asm/arch/iomux-mx53.h>
 #include <asm/gpio.h>
 
-#define PPD_UART_PAD_CTRL (PAD_CTL_HYS | PAD_CTL_DSE_HIGH |    \
-                          PAD_CTL_PUS_100K_UP)
-
 static const iomux_v3_cfg_t ppd_pads[] = {
        /* FEC */
        MX53_PAD_EIM_A22__GPIO2_16,
-       /* UART */
-       NEW_PAD_CTRL(MX53_PAD_PATA_DMACK__UART1_RXD_MUX, PPD_UART_PAD_CTRL),
-       NEW_PAD_CTRL(MX53_PAD_PATA_DIOW__UART1_TXD_MUX, PPD_UART_PAD_CTRL),
        /* Video */
        MX53_PAD_CSI0_DATA_EN__GPIO5_20, /* LR_SCAN_CTRL */
        MX53_PAD_CSI0_VSYNC__GPIO5_21,   /* UD_SCAN_CTRL */
index f5712cc63d35f4cbc809d91078662d6338d22683..1876b54ace3c23939282121191f31453aba6e929 100644 (file)
@@ -60,6 +60,9 @@ CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_PWM_IMX=y
 CONFIG_DM_RTC=y
 CONFIG_RTC_S35392A=y
+# CONFIG_REQUIRE_SERIAL_CONSOLE is not set
+CONFIG_DM_SERIAL=y
+CONFIG_MXC_UART=y
 CONFIG_SYSRESET=y
 CONFIG_SYSRESET_WATCHDOG=y
 CONFIG_USB=y
index 97d566df49a360094c3c28029b195e88f986fe63..a4452b8f9eb29f491161b29c5246d462296d98cc 100644 (file)
@@ -11,8 +11,6 @@
 
 #include <asm/arch/imx-regs.h>
 
-#define CONSOLE_DEV    "ttymxc0"
-
 #define CONFIG_CMDLINE_TAG
 #define CONFIG_SETUP_MEMORY_TAGS
 #define CONFIG_INITRD_TAG
@@ -25,9 +23,6 @@
 #define CONFIG_BOARD_LATE_INIT
 #define CONFIG_REVISION_TAG
 
-#define CONFIG_MXC_UART
-#define CONFIG_MXC_UART_BASE   UART1_BASE
-
 /* USB Configs */
 #define CONFIG_USB_HOST_ETHER
 #define CONFIG_USB_ETHER_ASIX
        "devnum=2\0" \
        "rootdev=mmcblk0p\0" \
        "quiet=quiet loglevel=0\0" \
-       "console=" CONSOLE_DEV "\0" \
        "lvds=ldb\0" \
        "setargs=setenv bootargs ${lvds} jtag=on mem=2G " \
-               "vt.global_cursor_default=0 bootcause=${bootcause} ${quiet} " \
-               "console=${console}\0" \
+               "vt.global_cursor_default=0 bootcause=${bootcause} ${quiet}\0" \
        "bootargs_emmc=setenv bootargs root=/dev/${rootdev}${partnum} ro " \
                "rootwait ${bootargs}\0" \
        "doquiet=if ext2load ${dev} ${devnum}:5 0x7000A000 /boot/console; " \