soc: espressif: Use WiFi config file

Add config file to host WiFi specific settings.
Introduce CONFIG_ESP_WIFI_MAX_THREAD_PRIO to be used
as a cap for the LL driver runtime.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
This commit is contained in:
Marek Matej 2024-07-11 19:15:32 +02:00 committed by Carles Cufí
commit 795ac34f29
6 changed files with 35 additions and 48 deletions

View file

@ -10,3 +10,4 @@ config FLASH_BASE_ADDRESS
rsource "Kconfig.spiram"
rsource "Kconfig.esptool"
rsource "Kconfig.flash"
rsource "Kconfig.wifi"

View file

@ -0,0 +1,34 @@
# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
# SPDX-License-Identifier: Apache-2.0
if SOC_FAMILY_ESPRESSIF_ESP32
menu "ESP32 Wi-Fi config"
config ESP_WIFI_MAX_THREAD_PRIORITY
int "Maximum work queue thread priority"
default 7
help
Maximum priority of thread used for processing driver work queue items.
config ESP32_WIFI_TIMER_TASK_PRIO
int "Wi-Fi timer task priority"
default 2
range 0 ESP_WIFI_MAX_THREAD_PRIORITY
config ESP32_PHY_MAX_WIFI_TX_POWER
int "Max Wi-Fi/BLE TX power (dBm)"
range 10 20
default 20
help
Set maximum transmit power for Wi-Fi radio. Actual transmit power for high
data rates may be lower than this setting.
config ESP32_PHY_MAX_TX_POWER
int
default ESP32_PHY_MAX_WIFI_TX_POWER
endmenu # ESP32 Wi-Fi config
endif # SOC_FAMILY_ESPRESSIF_ESP32

View file

@ -76,18 +76,6 @@ config ESP32_DEEP_SLEEP_WAKEUP_DELAY
If you are seeing "flash read err, 1000" message printed to the
console after deep sleep reset, try increasing this value.
config ESP32_PHY_MAX_WIFI_TX_POWER
int "Max WiFi/BLE TX power (dBm)"
range 10 20
default 20
help
Set maximum transmit power for WiFi radio. Actual transmit power for high
data rates may be lower than this setting.
config ESP32_PHY_MAX_TX_POWER
int
default ESP32_PHY_MAX_WIFI_TX_POWER
config ESP32_EMAC
bool
default y if ETH_ESP32

View file

@ -22,18 +22,6 @@ config IDF_TARGET_ESP32C3
bool "ESP32C3 as target board"
default y
config ESP32_PHY_MAX_WIFI_TX_POWER
int "Max WiFi TX power (dBm)"
range 10 20
default 20
help
Set maximum transmit power for WiFi radio. Actual transmit power for high
data rates may be lower than this setting.
config ESP32_PHY_MAX_TX_POWER
int
default ESP32_PHY_MAX_WIFI_TX_POWER
config MAC_BB_PD
bool "Power down MAC and baseband of Wi-Fi and Bluetooth when PHY is disabled"
depends on SOC_SERIES_ESP32C3 && TICKLESS_KERNEL

View file

@ -85,16 +85,4 @@ config ESP32S2_DATA_CACHE_SIZE
endmenu # Cache config
config ESP32_PHY_MAX_WIFI_TX_POWER
int "Max WiFi TX power (dBm)"
range 10 20
default 20
help
Set maximum transmit power for WiFi radio. Actual transmit power for high
data rates may be lower than this setting.
config ESP32_PHY_MAX_TX_POWER
int
default ESP32_PHY_MAX_WIFI_TX_POWER
endif # SOC_SERIES_ESP32S2

View file

@ -41,18 +41,6 @@ config SOC_ENABLE_APPCPU
help
This hidden configuration lets PROCPU core to map and start APPCPU whenever IPM is enabled.
config ESP32_PHY_MAX_WIFI_TX_POWER
int "Max WiFi/BLE TX power (dBm)"
range 10 20
default 20
help
Set maximum transmit power for WiFi radio. Actual transmit power for high
data rates may be lower than this setting.
config ESP32_PHY_MAX_TX_POWER
int
default ESP32_PHY_MAX_WIFI_TX_POWER
menu "Cache config"
choice ESP32S3_INSTRUCTION_CACHE_SIZE