Skip to content

Commit be4d8b2

Browse files
AlessandroLuokartben
authored andcommitted
drivers: uart: create ambiq uart driver for apollo510
This commit creates ambiq uart driver for Apollo510 SoC, not to use the pl011 driver any more. Signed-off-by: Hao Luo <hluo@ambiq.com>
1 parent 2990819 commit be4d8b2

File tree

4 files changed

+545
-0
lines changed

4 files changed

+545
-0
lines changed

drivers/serial/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ zephyr_library_sources_ifdef(CONFIG_SERIAL_ESP32_USB serial_esp32_usb.c)
2020
zephyr_library_sources_ifdef(CONFIG_UART_AESC uart_aesc.c)
2121
zephyr_library_sources_ifdef(CONFIG_UART_ALTERA uart_altera.c)
2222
zephyr_library_sources_ifdef(CONFIG_UART_ALTERA_JTAG uart_altera_jtag.c)
23+
zephyr_library_sources_ifdef(CONFIG_UART_AMBIQ uart_ambiq.c)
2324
zephyr_library_sources_ifdef(CONFIG_UART_APBUART uart_apbuart.c)
2425
zephyr_library_sources_ifdef(CONFIG_UART_BCM2711_MU uart_bcm2711.c)
2526
zephyr_library_sources_ifdef(CONFIG_UART_BFLB uart_bflb.c)

drivers/serial/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ comment "Serial Drivers"
160160
rsource "Kconfig.aesc"
161161
rsource "Kconfig.altera"
162162
rsource "Kconfig.altera_jtag"
163+
rsource "Kconfig.ambiq"
163164
rsource "Kconfig.apbuart"
164165
rsource "Kconfig.b91"
165166
rsource "Kconfig.bcm2711"

drivers/serial/Kconfig.ambiq

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright (c) 2025, Ambiq Micro Inc. <www.ambiq.com>
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config UART_AMBIQ
5+
bool "AMBIQ UART driver"
6+
default y
7+
depends on DT_HAS_AMBIQ_UART_ENABLED
8+
depends on SOC_SERIES_APOLLO5X
9+
select SERIAL_HAS_DRIVER
10+
select SERIAL_SUPPORT_INTERRUPT
11+
select PINCTRL
12+
select AMBIQ_HAL
13+
select AMBIQ_HAL_USE_UART
14+
help
15+
Enable the AMBIQ UART driver.

0 commit comments

Comments
 (0)