Skip to content

Commit 82eb8a1

Browse files
marekmatejmmahadevan108
authored andcommitted
drivers: clock_control: amp clock fix
Avoid APPCPU to interact with a clock settings. Fix warning when LOG_LEVEL_DBG. Signed-off-by: Marek Matej <[email protected]>
1 parent 9312187 commit 82eb8a1

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

drivers/clock_control/clock_control_esp32.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,10 @@ static void esp32_clock_perip_init(void)
154154
#if !defined(CONFIG_SOC_SERIES_ESP32)
155155
uint32_t common_perip_clk1;
156156
#endif
157-
157+
/* Avoid APPCPU to mess with the clocks. */
158+
#if defined(CONFIG_SOC_ESP32_APPCPU) || defined(CONFIG_SOC_ESP32S3_APPCPU)
159+
return;
160+
#endif
158161
/* For reason that only reset CPU, do not disable the clocks
159162
* that have been enabled before reset.
160163
*/

drivers/ipm/ipm_esp32.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,9 @@ static int esp32_ipm_init(const struct device *dev)
216216
data->other_core_id = (data->this_core_id == 0) ? 1 : 0;
217217

218218
LOG_DBG("Size of IPM shared memory: %d", data->shm_size);
219-
LOG_DBG("Address of PRO_CPU IPM shared memory: %p", data->shm.pro_cpu_shm);
220-
LOG_DBG("Address of APP_CPU IPM shared memory: %p", data->shm.app_cpu_shm);
221-
LOG_DBG("Address of IPM control structure: %p", data->control);
219+
LOG_DBG("Address of PRO_CPU IPM shared memory: %p", (void *)data->shm.pro_cpu_shm);
220+
LOG_DBG("Address of APP_CPU IPM shared memory: %p", (void *)data->shm.app_cpu_shm);
221+
LOG_DBG("Address of IPM control structure: %p", (void *)data->control);
222222

223223
/* pro_cpu is responsible to initialize the lock of shared memory */
224224
if (data->this_core_id == 0) {

0 commit comments

Comments
 (0)