Skip to content

Commit

Permalink
boards: esp32: move board specific kconfig definitions
Browse files Browse the repository at this point in the history
HEAP_MEM_POOL_ADD_SIZE_BOARD is not a zephyr-defined entry and
should be placed into Kconfig instead of Kconfig.defconfig.

This PR moves that entry for all ESP32-based boards accordingly.

Signed-off-by: Sylvio Alves <[email protected]>
  • Loading branch information
sylvioalves authored and fabiobaltieri committed Oct 4, 2024
1 parent 4ec2661 commit 9403b08
Show file tree
Hide file tree
Showing 73 changed files with 225 additions and 509 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# ESP8684 devkitm board configuration

# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
# SPDX-License-Identifier: Apache-2.0

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 8192
default 4096
9 changes: 0 additions & 9 deletions boards/01space/esp32c3_042_oled/Kconfig.defconfig

This file was deleted.

7 changes: 7 additions & 0 deletions boards/dptechnics/walter/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
# SPDX-License-Identifier: Apache-2.0

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 4096 if BOARD_WALTER_ESP32S3_PROCPU
default 256 if BOARD_WALTER_ESP32S3_APPCPU
20 changes: 0 additions & 20 deletions boards/dptechnics/walter/Kconfig.defconfig

This file was deleted.

7 changes: 7 additions & 0 deletions boards/espressif/esp32_devkitc_wroom/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
# SPDX-License-Identifier: Apache-2.0

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 4096 if BOARD_ESP32_DEVKITC_WROOM_ESP32_PROCPU
default 256 if BOARD_ESP32_DEVKITC_WROOM_ESP32_APPCPU
19 changes: 0 additions & 19 deletions boards/espressif/esp32_devkitc_wroom/Kconfig.defconfig

This file was deleted.

7 changes: 7 additions & 0 deletions boards/espressif/esp32_devkitc_wrover/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
# SPDX-License-Identifier: Apache-2.0

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 4096 if BOARD_ESP32_DEVKITC_WROVER_ESP32_PROCPU
default 256 if BOARD_ESP32_DEVKITC_WROVER_ESP32_APPCPU
17 changes: 0 additions & 17 deletions boards/espressif/esp32_devkitc_wrover/Kconfig.defconfig

This file was deleted.

7 changes: 7 additions & 0 deletions boards/espressif/esp32_ethernet_kit/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
# SPDX-License-Identifier: Apache-2.0

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 4096 if BOARD_ESP32_ETHERNET_KIT_ESP32_PROCPU
default 256 if BOARD_ESP32_ETHERNET_KIT_ESP32_APPCPU
11 changes: 0 additions & 11 deletions boards/espressif/esp32_ethernet_kit/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,4 @@ choice SPIRAM_TYPE
default SPIRAM_TYPE_ESPPSRAM64
endchoice

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 8192

endif # BOARD_ESP32_ETHERNET_KIT_ESP32_PROCPU

if BOARD_ESP32_ETHERNET_KIT_ESP32_APPCPU

config HEAP_MEM_POOL_ADD_SIZE_BOARD
default 4096

endif # BOARD_ESP32_ETHERNET_KIT_ESP32_APPCPU
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# ESP32C3 devkitc board configuration

# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
# SPDX-License-Identifier: Apache-2.0

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 8192
default 4096
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
11 changes: 0 additions & 11 deletions boards/espressif/esp32c3_devkitm/Kconfig.defconfig

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# ESP32C6 devkitc board configuration

# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
# SPDX-License-Identifier: Apache-2.0

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
6 changes: 6 additions & 0 deletions boards/espressif/esp32c6_devkitc/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
# SPDX-License-Identifier: Apache-2.0

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 4096
6 changes: 6 additions & 0 deletions boards/espressif/esp32s2_devkitc/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
# SPDX-License-Identifier: Apache-2.0

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 4096
4 changes: 0 additions & 4 deletions boards/espressif/esp32s2_devkitc/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,3 @@

config ENTROPY_GENERATOR
default y

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 8192
6 changes: 6 additions & 0 deletions boards/espressif/esp32s2_saola/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
# SPDX-License-Identifier: Apache-2.0

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 4096
4 changes: 0 additions & 4 deletions boards/espressif/esp32s2_saola/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,3 @@

config ENTROPY_GENERATOR
default y

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 8192
7 changes: 7 additions & 0 deletions boards/espressif/esp32s3_devkitc/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
# SPDX-License-Identifier: Apache-2.0

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 4096 if BOARD_ESP32S3_DEVKITC_ESP32S3_PROCPU
default 256 if BOARD_ESP32S3_DEVKITC_ESP32S3_APPCPU
19 changes: 0 additions & 19 deletions boards/espressif/esp32s3_devkitc/Kconfig.defconfig

This file was deleted.

7 changes: 7 additions & 0 deletions boards/espressif/esp32s3_devkitm/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
# SPDX-License-Identifier: Apache-2.0

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 4096 if BOARD_ESP32S3_DEVKITM_ESP32S3_PROCPU
default 256 if BOARD_ESP32S3_DEVKITM_ESP32S3_APPCPU
19 changes: 0 additions & 19 deletions boards/espressif/esp32s3_devkitm/Kconfig.defconfig

This file was deleted.

7 changes: 7 additions & 0 deletions boards/espressif/esp32s3_eye/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
# SPDX-License-Identifier: Apache-2.0

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 4096 if BOARD_ESP32S3_EYE_ESP32S3_PROCPU
default 256 if BOARD_ESP32S3_EYE_ESP32S3_APPCPU
14 changes: 0 additions & 14 deletions boards/espressif/esp32s3_eye/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,4 @@ if BOARD_ESP32S3_EYE_ESP32S3_PROCPU
config LV_COLOR_16_SWAP
default y

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

endif # BOARD_ESP32S3_EYE_ESP32S3_PROCPU

if BOARD_ESP32S3_EYE_ESP32S3_APPCPU

config HEAP_MEM_POOL_ADD_SIZE_BOARD
default 256

endif # BOARD_ESP32S3_EYE_ESP32S3_APPCPU
6 changes: 6 additions & 0 deletions boards/espressif/esp8684_devkitm/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
# SPDX-License-Identifier: Apache-2.0

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 4096
7 changes: 7 additions & 0 deletions boards/espressif/esp_wrover_kit/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
# SPDX-License-Identifier: Apache-2.0

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 4096 if BOARD_ESP_WROVER_KIT_ESP32_PROCPU
default 256 if BOARD_ESP_WROVER_KIT_ESP32_APPCPU
11 changes: 0 additions & 11 deletions boards/espressif/esp_wrover_kit/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,7 @@

if BOARD_ESP_WROVER_KIT_ESP32_PROCPU

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 8192

config DISK_DRIVER_SDMMC
default y

endif # BOARD_ESP_WROVER_KIT_ESP32_PROCPU

if BOARD_ESP_WROVER_KIT_ESP32_APPCPU

config HEAP_MEM_POOL_ADD_SIZE_BOARD
default 4096

endif # BOARD_ESP_WROVER_KIT_ESP32_APPCPU
6 changes: 6 additions & 0 deletions boards/franzininho/esp32s2_franzininho/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
# SPDX-License-Identifier: Apache-2.0

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 4096
5 changes: 0 additions & 5 deletions boards/franzininho/esp32s2_franzininho/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,3 @@

config ENTROPY_GENERATOR
default y

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 32768 if WIFI
default 4096
7 changes: 7 additions & 0 deletions boards/hardkernel/odroid_go/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
# SPDX-License-Identifier: Apache-2.0

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 4096 if BOARD_ODROID_GO_ESP32_PROCPU
default 256 if BOARD_ODROID_GO_ESP32_APPCPU
14 changes: 0 additions & 14 deletions boards/hardkernel/odroid_go/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,4 @@ choice SPIRAM_TYPE
default SPIRAM_TYPE_ESPPSRAM32
endchoice

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

endif # BOARD_ODROID_GO_ESP32_PROCPU

if BOARD_ODROID_GO_ESP32_APPCPU

config HEAP_MEM_POOL_ADD_SIZE_BOARD
default 4096

endif # BOARD_ODROID_GO_ESP32_APPCPU
7 changes: 7 additions & 0 deletions boards/heltec/heltec_wifi_lora32_v2/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
# SPDX-License-Identifier: Apache-2.0

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 4096 if BOARD_HELTEC_WIFI_LORA32_V2_ESP32_PROCPU
default 256 if BOARD_HELTEC_WIFI_LORA32_V2_ESP32_APPCPU
22 changes: 0 additions & 22 deletions boards/heltec/heltec_wifi_lora32_v2/Kconfig.defconfig

This file was deleted.

Loading

0 comments on commit 9403b08

Please sign in to comment.