]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
serial: uartlite: Add uartlite to Kconfig
authorMichal Simek <michal.simek@xilinx.com>
Wed, 9 Dec 2015 11:50:05 +0000 (12:50 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 27 Jan 2016 14:55:49 +0000 (15:55 +0100)
- Move config option out of board file.
- Remove uartlite address from config file

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Thomas Chou <thomas@wytron.com.tw>
board/xilinx/microblaze-generic/xparameters.h
configs/microblaze-generic_defconfig
drivers/serial/Kconfig
include/configs/microblaze-generic.h

index 8ba146cb88db7833f8b296b73390b20a63bb8827..11b3c9a4846e4b532728d5c8058491556c63ecc0 100644 (file)
 #define XILINX_TIMER_BASEADDR  0x41c00000
 #define XILINX_TIMER_IRQ       0
 
-/* Uart pheriphery is RS232_Uart */
-#define XILINX_UARTLITE_BASEADDR       0x40600000
-#define XILINX_UARTLITE_BAUDRATE       115200
-
 /* IIC pheriphery is IIC_EEPROM */
 #define XILINX_IIC_0_BASEADDR  0x40800000
 #define XILINX_IIC_0_FREQ      100000
index 6b038b884f0af7400d0fb5089f84b26477846837..dc4ac0558c272143166ad77b704b7155a25ee1bf 100644 (file)
@@ -10,3 +10,4 @@ CONFIG_CMD_GPIO=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_SPL_OF_CONTROL=y
 CONFIG_OF_EMBED=y
+CONFIG_XILINX_UARTLITE=y
index e78c5d34796db0f968313e05b7d79b1431c857cd..5c7b1fa90da08c34036bd1fa3ba991b533b1e9b0 100644 (file)
@@ -278,4 +278,11 @@ config UNIPHIER_SERIAL
          If you have a UniPhier based board and want to use the on-chip
          serial ports, say Y to this option. If unsure, say N.
 
+config XILINX_UARTLITE
+       bool "Xilinx Uarlite support"
+       depends on DM_SERIAL && (MICROBLAZE || ARCH_ZYNQ || ARCH_ZYNQMP)
+       help
+         If you have a Xilinx based board and want to use the uartlite
+         serial ports, say Y to this option. If unsure, say N.
+
 endmenu
index 10ac8328b8ff8071e8f43ab802b70b05c820cc37..6e3c80b1435014a7c424112fcb71e091d786b8cf 100644 (file)
 # define CONFIG_SYS_BAUDRATE_TABLE \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400}
 
-#ifdef XILINX_UARTLITE_BASEADDR
-# define CONFIG_XILINX_UARTLITE
-# define CONFIG_SERIAL_BASE    XILINX_UARTLITE_BASEADDR
-#elif XILINX_UART16550_BASEADDR
+#if XILINX_UART16550_BASEADDR
 # define CONFIG_SYS_NS16550_SERIAL
 # if defined(__MICROBLAZEEL__)
 #  define CONFIG_SYS_NS16550_REG_SIZE  -4
@@ -51,8 +48,6 @@
 # define CONFIG_SYS_NS16550_COM1 \
                ((XILINX_UART16550_BASEADDR & ~0xF) + 0x1000)
 # define CONFIG_SYS_NS16550_CLK        XILINX_UART16550_CLOCK_HZ
-#else
-# error Undefined uart
 #endif
 
 /* setting reset address */