Skip to content

Commit 968f674

Browse files
RichardSWheatleynashif
authored andcommitted
drivers: serial: ambiq uart update
The number of modules is different for each soc. There is a macro in the HAL that should have been used. Signed-off-by: Richard Wheatley <[email protected]>
1 parent 5032f09 commit 968f674

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/serial/uart_pl011_ambiq.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ typedef struct {
6969
uint32_t regIFLS;
7070
uint32_t regIER;
7171
} uart_register_state_t;
72-
static uart_register_state_t sRegState[2];
72+
static uart_register_state_t sRegState[AM_REG_UART_NUM_MODULES];
7373

7474
static int uart_ambiq_pm_action(const struct device *dev, enum pm_device_action action)
7575
{

0 commit comments

Comments
 (0)