From 205a8fed793f1f6e8e209e853f1df864e2d94524 Mon Sep 17 00:00:00 2001 From: Mahesh Mahadevan Date: Wed, 22 Feb 2023 14:26:55 -0600 Subject: [PATCH] drivers: pinctrl: Add support for more ports MCX has more port modules which requires updating the pinctrl driver Signed-off-by: Mahesh Mahadevan --- drivers/pinctrl/pinctrl_kinetis.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl_kinetis.c b/drivers/pinctrl/pinctrl_kinetis.c index 45ac0ebe3c..13b0c8ac72 100644 --- a/drivers/pinctrl/pinctrl_kinetis.c +++ b/drivers/pinctrl/pinctrl_kinetis.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 NXP + * Copyright 2022-2024 NXP * * SPDX-License-Identifier: Apache-2.0 */ @@ -25,6 +25,9 @@ static PORT_Type *ports[] = { #if DT_NUM_INST_STATUS_OKAY(DT_DRV_COMPAT) > 4 (PORT_Type *)DT_REG_ADDR(DT_NODELABEL(porte)), #endif +#if DT_NUM_INST_STATUS_OKAY(DT_DRV_COMPAT) > 5 + (PORT_Type *)DT_REG_ADDR(DT_NODELABEL(portf)), +#endif }; #define PIN(mux) (((mux) & 0xFC00000) >> 22)