]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mpc85xx, socrates: enable DM serial
authorHeiko Schocher <hs@denx.de>
Wed, 16 Oct 2019 03:55:53 +0000 (05:55 +0200)
committerPriyanka Jain <priyanka.jain@nxp.com>
Wed, 6 Nov 2019 11:00:19 +0000 (16:30 +0530)
switch to DM_SERIAL support.

Signed-off-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
board/socrates/socrates.c
configs/socrates_defconfig
include/configs/socrates.h

index f51b0203f73d2c43be18adce1b46fee82abbebc3..85498835080b569e26a198e1b81a715361e62d26 100644 (file)
@@ -271,3 +271,8 @@ void *board_fdt_blob_setup(void)
        return fw_dtb;
 }
 #endif
+
+int get_serial_clock(void)
+{
+       return 333333330;
+}
index 80b5631d07ab3611d49e6016f1d2aa012ecbc859..5bd60e0886e60b8c6c06864775770b17e9eb92e7 100644 (file)
@@ -46,6 +46,9 @@ CONFIG_MII=y
 CONFIG_TSEC_ENET=y
 CONFIG_DM_RTC=y
 CONFIG_RTC_RX8025=y
+CONFIG_SPECIFY_CONSOLE_INDEX=y
+CONFIG_DM_SERIAL=y
+CONFIG_SERIAL_SEARCH_ALL=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
index 425d758e1d74a8e8e66b5cf5108812db4439df91..7adaa344bc3a489e13d69c09072207b6c985e7d6 100644 (file)
 #define CONFIG_SYS_BR2_PRELIM          0xc80018a1      /* UPMB, 32-bit */
 #define CONFIG_SYS_OR2_PRELIM          0xfc000000      /* 64 MB        */
 
-/* Serial Port */
-
-#define CONFIG_SYS_NS16550_SERIAL
-#define CONFIG_SYS_NS16550_REG_SIZE    1
-#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
-
-#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_CCSRBAR+0x4500)
-#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_CCSRBAR+0x4600)
-
-#define CONFIG_SYS_BAUDRATE_TABLE  \
-       {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
-
 #define CONFIG_SYS_SPD_BUS_NUM 0
 
 #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      4