From 7c0b038d6b4c21a8a72e1a5bb3c5ececc3f145f2 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Wed, 5 Jun 2024 14:34:18 -0400 Subject: [PATCH] soc: microchip: mec: Common SoC init updated to MEC5 HAL v0.2 Microchip MEC5 HAL version 0.2 standardizes HAL API and register define names. Updated the SoC common initialization code using new HAL API names. Signed-off-by: Scott Worley --- soc/microchip/mec/common/soc_cmn_init.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/soc/microchip/mec/common/soc_cmn_init.c b/soc/microchip/mec/common/soc_cmn_init.c index 62cd150861f..bff1bf22a2a 100644 --- a/soc/microchip/mec/common/soc_cmn_init.c +++ b/soc/microchip/mec/common/soc_cmn_init.c @@ -15,18 +15,18 @@ static void mec5_soc_init_debug_interface(void) { #if defined(CONFIG_SOC_MEC_DEBUG_DISABLED) mec_ecs_etm_pins(ECS_ETM_PINS_DISABLE); - mec_ecs_debug_port(MEC_DEBUG_MODE_DISABLE); + mec_hal_ecs_debug_port(MEC_DEBUG_MODE_DISABLE); #else #if defined(SOC_MEC_DEBUG_WITHOUT_TRACING) mec_ecs_etm_pins(ECS_ETM_PINS_DISABLE); - mec_ecs_debug_port(MEC_DEBUG_MODE_SWD); + mec_hal_ecs_debug_port(MEC_DEBUG_MODE_SWD); #elif defined(SOC_MEC_DEBUG_AND_TRACING) #if defined(SOC_MEC_DEBUG_AND_ETM_TRACING) mec_ecs_etm_pins(ECS_ETM_PINS_DISABLE); - mec_ecs_debug_port(MEC_DEBUG_MODE_SWD_SWV); + mec_hal_ecs_debug_port(MEC_DEBUG_MODE_SWD_SWV); #elif defined(CONFIG_SOC_MEC_DEBUG_AND_ETM_TRACING) mec_ecs_debug_port(MEC_DEBUG_MODE_SWD); - mec_ecs_etm_pins(ECS_ETM_PINS_ENABLE); + mec_hal_ecs_etm_pins(ECS_ETM_PINS_ENABLE); #endif #endif #endif @@ -35,7 +35,7 @@ static void mec5_soc_init_debug_interface(void) int mec5_soc_common_init(void) { mec5_soc_init_debug_interface(); - mec_ecia_init(MEC5_ECIA_DIRECT_BITMAP, 1, 0); + mec_hal_ecia_init(MEC5_ECIA_DIRECT_BITMAP, 1, 0); return 0; }