From c44369de7ab03267efcbcc70b7211907ae2e0909 Mon Sep 17 00:00:00 2001 From: Mahavir Jain Date: Tue, 16 Apr 2024 09:50:46 +0530 Subject: [PATCH] fix: cleanup MPU LL files for RISC-V architecture SoCs --- components/hal/esp32c2/include/hal/mpu_ll.h | 46 -------------------- components/hal/esp32c3/include/hal/mpu_ll.h | 45 -------------------- components/hal/esp32c6/include/hal/mpu_ll.h | 46 -------------------- components/hal/esp32h2/include/hal/mpu_ll.h | 46 -------------------- components/hal/esp32p4/include/hal/mpu_ll.h | 47 --------------------- 5 files changed, 230 deletions(-) delete mode 100644 components/hal/esp32c2/include/hal/mpu_ll.h delete mode 100644 components/hal/esp32c3/include/hal/mpu_ll.h delete mode 100644 components/hal/esp32c6/include/hal/mpu_ll.h delete mode 100644 components/hal/esp32h2/include/hal/mpu_ll.h delete mode 100644 components/hal/esp32p4/include/hal/mpu_ll.h diff --git a/components/hal/esp32c2/include/hal/mpu_ll.h b/components/hal/esp32c2/include/hal/mpu_ll.h deleted file mode 100644 index 87d3d25bc5..0000000000 --- a/components/hal/esp32c2/include/hal/mpu_ll.h +++ /dev/null @@ -1,46 +0,0 @@ -/* - * SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD - * - * SPDX-License-Identifier: Apache-2.0 - */ - -#include - -#include "soc/soc_caps.h" -#include "hal/assert.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* This LL is currently unused for ESP32-C2 - cleanup is TODO ESP32-C2 IDF-2375 */ - -static inline uint32_t mpu_ll_id_to_addr(unsigned id) -{ - abort(); -} - -static inline void mpu_ll_set_region_rw(uint32_t addr) -{ - abort(); -} - -static inline void mpu_ll_set_region_rwx(uint32_t addr) -{ - abort(); -} - -static inline void mpu_ll_set_region_x(uint32_t addr) -{ - abort(); -} - - -static inline void mpu_ll_set_region_illegal(uint32_t addr) -{ - abort(); -} - -#ifdef __cplusplus -} -#endif diff --git a/components/hal/esp32c3/include/hal/mpu_ll.h b/components/hal/esp32c3/include/hal/mpu_ll.h deleted file mode 100644 index 18d0f2318c..0000000000 --- a/components/hal/esp32c3/include/hal/mpu_ll.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * SPDX-FileCopyrightText: 2020-2023 Espressif Systems (Shanghai) CO LTD - * - * SPDX-License-Identifier: Apache-2.0 - */ - -#include -#include "soc/soc_caps.h" -#include "hal/assert.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* This LL is currently unused for ESP32-C3 - cleanup is TODO ESP32-C3 IDF-2375 */ - -static inline uint32_t mpu_ll_id_to_addr(unsigned id) -{ - abort(); -} - -static inline void mpu_ll_set_region_rw(uint32_t addr) -{ - abort(); -} - -static inline void mpu_ll_set_region_rwx(uint32_t addr) -{ - abort(); -} - -static inline void mpu_ll_set_region_x(uint32_t addr) -{ - abort(); -} - - -static inline void mpu_ll_set_region_illegal(uint32_t addr) -{ - abort(); -} - -#ifdef __cplusplus -} -#endif diff --git a/components/hal/esp32c6/include/hal/mpu_ll.h b/components/hal/esp32c6/include/hal/mpu_ll.h deleted file mode 100644 index 1034805bb7..0000000000 --- a/components/hal/esp32c6/include/hal/mpu_ll.h +++ /dev/null @@ -1,46 +0,0 @@ -/* - * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD - * - * SPDX-License-Identifier: Apache-2.0 - */ - -#include - -#include "soc/soc_caps.h" -#include "hal/assert.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* Copied from C3, and this LL is currently unused for ESP32-C3 */ - -static inline uint32_t mpu_ll_id_to_addr(unsigned id) -{ - abort(); -} - -static inline void mpu_ll_set_region_rw(uint32_t addr) -{ - abort(); -} - -static inline void mpu_ll_set_region_rwx(uint32_t addr) -{ - abort(); -} - -static inline void mpu_ll_set_region_x(uint32_t addr) -{ - abort(); -} - - -static inline void mpu_ll_set_region_illegal(uint32_t addr) -{ - abort(); -} - -#ifdef __cplusplus -} -#endif diff --git a/components/hal/esp32h2/include/hal/mpu_ll.h b/components/hal/esp32h2/include/hal/mpu_ll.h deleted file mode 100644 index 32cb6e1e6e..0000000000 --- a/components/hal/esp32h2/include/hal/mpu_ll.h +++ /dev/null @@ -1,46 +0,0 @@ -/* - * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD - * - * SPDX-License-Identifier: Apache-2.0 - */ - -#include - -#include "soc/soc_caps.h" -#include "hal/assert.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* This LL is currently unused for ESP32-H2 - cleanup is TODO ESP32-H2 IDF-2375 */ - -static inline uint32_t mpu_ll_id_to_addr(unsigned id) -{ - abort(); -} - -static inline void mpu_ll_set_region_rw(uint32_t addr) -{ - abort(); -} - -static inline void mpu_ll_set_region_rwx(uint32_t addr) -{ - abort(); -} - -static inline void mpu_ll_set_region_x(uint32_t addr) -{ - abort(); -} - - -static inline void mpu_ll_set_region_illegal(uint32_t addr) -{ - abort(); -} - -#ifdef __cplusplus -} -#endif diff --git a/components/hal/esp32p4/include/hal/mpu_ll.h b/components/hal/esp32p4/include/hal/mpu_ll.h deleted file mode 100644 index 184dd662f1..0000000000 --- a/components/hal/esp32p4/include/hal/mpu_ll.h +++ /dev/null @@ -1,47 +0,0 @@ -/* - * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD - * - * SPDX-License-Identifier: Apache-2.0 - */ - -#include - -#include "soc/soc_caps.h" -#include "hal/assert.h" - -#ifdef __cplusplus -extern "C" { -#endif - -//TODO: IDF-7542 -/* Copied from C3 */ - -static inline uint32_t mpu_ll_id_to_addr(unsigned id) -{ - abort(); -} - -static inline void mpu_ll_set_region_rw(uint32_t addr) -{ - abort(); -} - -static inline void mpu_ll_set_region_rwx(uint32_t addr) -{ - abort(); -} - -static inline void mpu_ll_set_region_x(uint32_t addr) -{ - abort(); -} - - -static inline void mpu_ll_set_region_illegal(uint32_t addr) -{ - abort(); -} - -#ifdef __cplusplus -} -#endif