ARM: da850evm_direct_nor_defconfig: Enable DM_SERIAL
authorAdam Ford <aford173@gmail.com>
Wed, 19 Sep 2018 21:06:49 +0000 (16:06 -0500)
committerTom Rini <trini@konsulko.com>
Sat, 29 Sep 2018 12:07:28 +0000 (08:07 -0400)
With DM enabled, this patch enables DM_SERIAL and removes
the NS16550 initialization from da850_lowlevel since the driver
will take care of that itself.

Signed-off-by: Adam Ford <aford173@gmail.com>
arch/arm/mach-davinci/da850_lowlevel.c
configs/da850evm_direct_nor_defconfig
include/configs/da850evm.h

index 95dc93a24f62213f13181c251b9bb472415d8aa5..822e0dc4a1b24817b8431cb9272094e646aa071d 100644 (file)
@@ -288,10 +288,10 @@ int arch_cpu_init(void)
        /* GPIO setup */
        board_gpio_init();
 
-
+#if !CONFIG_IS_ENABLED(DM_SERIAL)
        NS16550_init((NS16550_t)(CONFIG_SYS_NS16550_COM1),
                        CONFIG_SYS_NS16550_CLK / 16 / CONFIG_BAUDRATE);
-
+#endif
        /*
         * Fix Power and Emulation Management Register
         * see sprufw3a.pdf page 37 Table 24
index cd410816c0253622eb8a57154a3ad81c89047855..8ea522af938f00d85597af0732c9dea0791731ca 100644 (file)
@@ -5,7 +5,6 @@ CONFIG_TARGET_DA850EVM=y
 CONFIG_DA850_LOWLEVEL=y
 CONFIG_TI_COMMON_CMD_OPTIONS=y
 CONFIG_NR_DRAM_BANKS=1
-# CONFIG_SYS_MALLOC_F is not set
 CONFIG_SYS_EXTRA_OPTIONS="USE_NOR,DIRECT_NOR_BOOT"
 CONFIG_BOOTDELAY=3
 CONFIG_USE_BOOTARGS=y
@@ -53,6 +52,8 @@ CONFIG_PINCTRL=y
 CONFIG_PINCTRL_SINGLE=y
 CONFIG_MII=y
 CONFIG_DRIVER_TI_EMAC=y
+CONFIG_SPECIFY_CONSOLE_INDEX=y
+CONFIG_DM_SERIAL=y
 CONFIG_SYS_NS16550=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
index 14a6b9e5910a6d2297f87038503ee764b20004b2..319f6aadf5be8473c13384eae1c346305fce599c 100644 (file)
  * Serial Driver info
  */
 
-#if defined(CONFIG_SPL_BUILD) || defined(CONFIG_DIRECT_NOR_BOOT)
+#if !CONFIG_IS_ENABLED(DM_SERIAL)
 #define CONFIG_SYS_NS16550_SERIAL
 #define CONFIG_SYS_NS16550_REG_SIZE    -4      /* NS16550 register size */
 #define CONFIG_SYS_NS16550_COM1        DAVINCI_UART2_BASE /* Base address of UART2 */