serial: lpuart: Move CONFIG_FSL_LPUART to Kconfig

LPUART is seen on Freescale VF610 and QorIQ Layerscape devices.
Create a Kconfig option and move it to defconfig for all boards
that have this serial driver.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Simon Glass <sjg@chromium.org>
master
Bin Meng 9 years ago committed by Simon Glass
parent f833cd6279
commit 5ed07cf53c
  1. 1
      configs/colibri_vf_defconfig
  2. 1
      configs/colibri_vf_dtb_defconfig
  3. 1
      configs/ls1021aqds_ddr4_nor_lpuart_defconfig
  4. 1
      configs/ls1021aqds_nor_lpuart_defconfig
  5. 1
      configs/ls1021atwr_nor_lpuart_defconfig
  6. 1
      configs/pcm052_defconfig
  7. 1
      configs/vf610twr_defconfig
  8. 1
      configs/vf610twr_nand_defconfig
  9. 6
      drivers/serial/Kconfig
  10. 1
      include/configs/colibri_vf.h
  11. 1
      include/configs/ls1021aqds.h
  12. 1
      include/configs/ls1021atwr.h
  13. 1
      include/configs/pcm052.h
  14. 1
      include/configs/vf610twr.h

@ -8,3 +8,4 @@ CONFIG_CMD_GPIO=y
CONFIG_DM=y CONFIG_DM=y
CONFIG_NAND_VF610_NFC=y CONFIG_NAND_VF610_NFC=y
CONFIG_SYS_NAND_VF610_NFC_60_ECC_BYTES=y CONFIG_SYS_NAND_VF610_NFC_60_ECC_BYTES=y
CONFIG_FSL_LPUART=y

@ -11,3 +11,4 @@ CONFIG_OF_CONTROL=y
CONFIG_DM=y CONFIG_DM=y
CONFIG_NAND_VF610_NFC=y CONFIG_NAND_VF610_NFC=y
CONFIG_SYS_NAND_VF610_NFC_60_ECC_BYTES=y CONFIG_SYS_NAND_VF610_NFC_60_ECC_BYTES=y
CONFIG_FSL_LPUART=y

@ -4,3 +4,4 @@ CONFIG_SYS_EXTRA_OPTIONS="SYS_FSL_DDR4,LPUART"
# CONFIG_CMD_SETEXPR is not set # CONFIG_CMD_SETEXPR is not set
CONFIG_NETDEVICES=y CONFIG_NETDEVICES=y
CONFIG_E1000=y CONFIG_E1000=y
CONFIG_FSL_LPUART=y

@ -4,3 +4,4 @@ CONFIG_SYS_EXTRA_OPTIONS="LPUART"
# CONFIG_CMD_SETEXPR is not set # CONFIG_CMD_SETEXPR is not set
CONFIG_NETDEVICES=y CONFIG_NETDEVICES=y
CONFIG_E1000=y CONFIG_E1000=y
CONFIG_FSL_LPUART=y

@ -4,3 +4,4 @@ CONFIG_SYS_EXTRA_OPTIONS="LPUART"
# CONFIG_CMD_SETEXPR is not set # CONFIG_CMD_SETEXPR is not set
CONFIG_NETDEVICES=y CONFIG_NETDEVICES=y
CONFIG_E1000=y CONFIG_E1000=y
CONFIG_FSL_LPUART=y

@ -3,3 +3,4 @@ CONFIG_TARGET_PCM052=y
CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/phytec/pcm052/imximage.cfg,ENV_IS_IN_NAND" CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/phytec/pcm052/imximage.cfg,ENV_IS_IN_NAND"
CONFIG_NAND_VF610_NFC=y CONFIG_NAND_VF610_NFC=y
CONFIG_SYS_NAND_BUSWIDTH_16BIT=y CONFIG_SYS_NAND_BUSWIDTH_16BIT=y
CONFIG_FSL_LPUART=y

@ -6,3 +6,4 @@ CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/vf610twr/imximage.cfg,ENV_I
CONFIG_NAND_VF610_NFC=y CONFIG_NAND_VF610_NFC=y
CONFIG_SYS_NAND_BUSWIDTH_16BIT=y CONFIG_SYS_NAND_BUSWIDTH_16BIT=y
CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH=y
CONFIG_FSL_LPUART=y

@ -6,3 +6,4 @@ CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/vf610twr/imximage.cfg,ENV_I
CONFIG_NAND_VF610_NFC=y CONFIG_NAND_VF610_NFC=y
CONFIG_SYS_NAND_BUSWIDTH_16BIT=y CONFIG_SYS_NAND_BUSWIDTH_16BIT=y
CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH=y
CONFIG_FSL_LPUART=y

@ -228,6 +228,12 @@ config ALTERA_UART
Select this to enable an UART for Altera devices. Please find Select this to enable an UART for Altera devices. Please find
details on the "Embedded Peripherals IP User Guide" of Altera. details on the "Embedded Peripherals IP User Guide" of Altera.
config FSL_LPUART
bool "Freescale LPUART support"
help
Select this to enable a Low Power UART for Freescale VF610 and
QorIQ Layerscape devices.
config SYS_NS16550 config SYS_NS16550
bool "NS16550 UART or compatible" bool "NS16550 UART or compatible"
help help

@ -36,7 +36,6 @@
#define CONFIG_BOARD_EARLY_INIT_F #define CONFIG_BOARD_EARLY_INIT_F
#define CONFIG_FSL_LPUART
#define LPUART_BASE UART0_BASE #define LPUART_BASE UART0_BASE
/* Allow to overwrite serial and ethaddr */ /* Allow to overwrite serial and ethaddr */

@ -371,7 +371,6 @@ unsigned long get_board_ddr_clk(void);
* Serial Port * Serial Port
*/ */
#ifdef CONFIG_LPUART #ifdef CONFIG_LPUART
#define CONFIG_FSL_LPUART
#define CONFIG_LPUART_32B_REG #define CONFIG_LPUART_32B_REG
#else #else
#define CONFIG_CONS_INDEX 1 #define CONFIG_CONS_INDEX 1

@ -266,7 +266,6 @@
* Serial Port * Serial Port
*/ */
#ifdef CONFIG_LPUART #ifdef CONFIG_LPUART
#define CONFIG_FSL_LPUART
#define CONFIG_LPUART_32B_REG #define CONFIG_LPUART_32B_REG
#else #else
#define CONFIG_CONS_INDEX 1 #define CONFIG_CONS_INDEX 1

@ -27,7 +27,6 @@
#define CONFIG_BOARD_EARLY_INIT_F #define CONFIG_BOARD_EARLY_INIT_F
#define CONFIG_FSL_LPUART
#define LPUART_BASE UART1_BASE #define LPUART_BASE UART1_BASE
/* Allow to overwrite serial and ethaddr */ /* Allow to overwrite serial and ethaddr */

@ -34,7 +34,6 @@
#define CONFIG_BOARD_EARLY_INIT_F #define CONFIG_BOARD_EARLY_INIT_F
#define CONFIG_FSL_LPUART
#define LPUART_BASE UART1_BASE #define LPUART_BASE UART1_BASE
/* Allow to overwrite serial and ethaddr */ /* Allow to overwrite serial and ethaddr */

Loading…
Cancel
Save