summaryrefslogtreecommitdiff
path: root/drivers/serial
diff options
context:
space:
mode:
authorPatrice Chotard <patrice.chotard@st.com>2017-09-13 18:00:05 +0200
committerTom Rini <trini@konsulko.com>2017-09-22 07:40:01 -0400
commit776b2ddbfaa155745342963bf4d03280710f11e4 (patch)
tree8f4e78de6d6cab8a03eb8374aecd30c3280ed0d6 /drivers/serial
parent092e72cbb37e143eca7e3fa5a0d05bee93f065bb (diff)
serial: stm32x7: add STM32H7 support
STM32F7 and STM32H7 shares the same UART block, add STM32H7 compatible string. Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/Kconfig7
-rw-r--r--drivers/serial/serial_stm32x7.c2
2 files changed, 6 insertions, 3 deletions
diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig
index 13b2550d3b..9bf2e26e9d 100644
--- a/drivers/serial/Kconfig
+++ b/drivers/serial/Kconfig
@@ -531,10 +531,11 @@ config STI_ASC_SERIAL
config STM32X7_SERIAL
bool "STMicroelectronics STM32 SoCs on-chip UART"
- depends on DM_SERIAL && STM32F7
+ depends on DM_SERIAL && (STM32F7 || STM32H7)
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.
+ If you have a machine based on a STM32 F7 or H7 SoC you can
+ enable its onboard serial ports, say Y to this option.
+ If unsure, say N.
config MPC8XX_CONS
bool "Console driver for MPC8XX"
diff --git a/drivers/serial/serial_stm32x7.c b/drivers/serial/serial_stm32x7.c
index bf118a78cf..2f4eafa885 100644
--- a/drivers/serial/serial_stm32x7.c
+++ b/drivers/serial/serial_stm32x7.c
@@ -112,6 +112,8 @@ static int stm32_serial_probe(struct udevice *dev)
static const struct udevice_id stm32_serial_id[] = {
{.compatible = "st,stm32f7-usart"},
{.compatible = "st,stm32f7-uart"},
+ {.compatible = "st,stm32h7-usart"},
+ {.compatible = "st,stm32h7-uart"},
{}
};