ARM: da850evm_direct_nor_defconfig: Enable DM_SERIAL
authorAdam Ford <aford173@gmail.com>
Tue, 14 Aug 2018 02:09:17 +0000 (21:09 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 12 Sep 2018 01:42:41 +0000 (21:42 -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

index 95dc93a24f62213f13181c251b9bb472415d8aa5..8ceb1779f9b597861137aba90604a56ba8f176ed 100644 (file)
@@ -288,10 +288,10 @@ int arch_cpu_init(void)
        /* GPIO setup */
        board_gpio_init();
 
-
+#if !defined(CONFIG_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 4039d0ee59e28edd6068e48f9935eaf3e03e7d07..1423a1756dd45748f5b869d6bb593e1ba6b8edea 100644 (file)
@@ -6,6 +6,7 @@ CONFIG_DA850_LOWLEVEL=y
 CONFIG_TI_COMMON_CMD_OPTIONS=y
 CONFIG_NR_DRAM_BANKS=1
 # CONFIG_SYS_MALLOC_F is not set
+CONFIG_DEFAULT_DEVICE_TREE="da850-evm"
 CONFIG_SYS_EXTRA_OPTIONS="USE_NOR,DIRECT_NOR_BOOT"
 CONFIG_BOOTDELAY=3
 CONFIG_USE_BOOTARGS=y
@@ -50,6 +51,8 @@ CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_SPI_FLASH_WINBOND=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