From b47a8a428fab477547b510a8df339fe83daf8c6d Mon Sep 17 00:00:00 2001 From: Chay Guo Date: Mon, 16 May 2022 16:23:23 +0800 Subject: [PATCH] drivers: clock_control: mcux_lpc_syscon_clock: Add flexcomm16 suppport Added FlexCOMM16(HS SPI1) clock for MIMXRT5xx. Signed-off-by: Chay Guo --- drivers/clock_control/clock_control_mcux_syscon.c | 2 ++ include/zephyr/dt-bindings/clock/mcux_lpc_syscon_clock.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/clock_control/clock_control_mcux_syscon.c b/drivers/clock_control/clock_control_mcux_syscon.c index 1ee608c9947..ece36a87978 100644 --- a/drivers/clock_control/clock_control_mcux_syscon.c +++ b/drivers/clock_control/clock_control_mcux_syscon.c @@ -98,6 +98,8 @@ static int mcux_lpc_syscon_clock_control_get_subsys_rate( #else *rate = CLOCK_GetFlexCommClkFreq(14); #endif + case MCUX_HS_SPI1_CLK: + *rate = CLOCK_GetFlexCommClkFreq(16); break; #endif diff --git a/include/zephyr/dt-bindings/clock/mcux_lpc_syscon_clock.h b/include/zephyr/dt-bindings/clock/mcux_lpc_syscon_clock.h index 6bd1d6de7d7..06f6fe325a3 100644 --- a/include/zephyr/dt-bindings/clock/mcux_lpc_syscon_clock.h +++ b/include/zephyr/dt-bindings/clock/mcux_lpc_syscon_clock.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020-22, NXP + * Copyright 2020-2022, NXP * * SPDX-License-Identifier: Apache-2.0 */ @@ -23,6 +23,7 @@ #define MCUX_FLEXCOMM13_CLK 13 #define MCUX_HS_SPI_CLK 14 #define MCUX_PMIC_I2C_CLK 15 +#define MCUX_HS_SPI1_CLK 16 #define MCUX_USDHC1_CLK 20 #define MCUX_USDHC2_CLK 21