]> git.sur5r.net Git - u-boot/commitdiff
serial: stm32x7: Convert CONFIG_STM32X7_SERIAL to Kconfig
authorPatrice Chotard <patrice.chotard@st.com>
Wed, 26 Jul 2017 13:48:39 +0000 (15:48 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 31 Jul 2017 15:22:54 +0000 (11:22 -0400)
Add CONFIG_STM32X7_SERIAL as a Kconfig option.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Vikas Manocha <vikas.manocha@st.com>
configs/stm32f746-disco_defconfig
drivers/serial/Kconfig
include/configs/stm32f746-disco.h
scripts/config_whitelist.txt

index 0daadde0610cf1053c43c96c2bb0aa7028efd032..439b796282d54539e94238651dcf8b09c8e66c20 100644 (file)
@@ -43,6 +43,7 @@ CONFIG_PINCTRL=y
 CONFIG_PINCTRL_STM32=y
 CONFIG_RAM=y
 CONFIG_STM32_SDRAM=y
+CONFIG_STM32X7_SERIAL=y
 CONFIG_DM_SPI=y
 CONFIG_STM32_QSPI=y
 CONFIG_OF_LIBFDT_OVERLAY=y
index 0748a9254504c510d9ca0e7225f713d3427543ca..2582c954f2a01a538cef3922fd8e45ca7b4039dc 100644 (file)
@@ -509,6 +509,13 @@ config STI_ASC_SERIAL
          on STiH410 SoC. This is a basic implementation,  it supports
          following baudrate 9600, 19200, 38400, 57600 and 115200.
 
+config STM32X7_SERIAL
+       bool "STMicroelectronics STM32 SoCs on-chip UART"
+       depends on DM_SERIAL && STM32F7
+       help
+         If you have a machine based on a STM32 F7 you can enable its
+         onboard serial ports, say Y to this option. If unsure, say N.
+
 config MPC8XX_CONS
        bool "Console driver for MPC8XX"
        depends on 8xx
index 46955b1f1f802f969fe2b3ac973dac33fab20036..3f5ddbc9facc3e14b09429db48e068a817e62655 100644 (file)
@@ -31,7 +31,6 @@
 #define CONFIG_ENV_SIZE                        (8 << 10)
 
 #define CONFIG_STM32_FLASH
-#define CONFIG_STM32X7_SERIAL
 
 #define CONFIG_DW_GMAC_DEFAULT_DMA_PBL (8)
 #define CONFIG_DW_ALTDESCRIPTOR
index 2d642de7291c28fbd536e90b0211a8b5d24985bc..6889bbd1470480dd63a56d480d667328ae89680f 100644 (file)
@@ -2340,7 +2340,6 @@ CONFIG_STATIC_BOARD_REV
 CONFIG_STATIC_RELA
 CONFIG_STD_DEVICES_SETTINGS
 CONFIG_STM32F4DISCOVERY
-CONFIG_STM32X7_SERIAL
 CONFIG_STM32_FLASH
 CONFIG_STM32_GPIO
 CONFIG_STM32_HSE_HZ