soc: esp32: move phy tx power to soc config
PHY TX power configuration must be added into soc level. It was previously hardcoded in hal_espressif, which was removed. Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
This commit is contained in:
parent
734c345457
commit
f3d2dd2b6c
4 changed files with 36 additions and 12 deletions
|
@ -210,18 +210,6 @@ choice ESP32_WIFI_TASK_CORE_ID
|
||||||
bool "Core 0"
|
bool "Core 0"
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
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 ESP32_WIFI_SW_COEXIST_ENABLE
|
config ESP32_WIFI_SW_COEXIST_ENABLE
|
||||||
bool
|
bool
|
||||||
help
|
help
|
||||||
|
|
|
@ -30,4 +30,16 @@ config FLASH_BASE_ADDRESS
|
||||||
hex
|
hex
|
||||||
default $(dt_node_reg_addr_hex,/soc/flash-controller@60002000/flash@0)
|
default $(dt_node_reg_addr_hex,/soc/flash-controller@60002000/flash@0)
|
||||||
|
|
||||||
|
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
|
endif
|
||||||
|
|
|
@ -264,4 +264,16 @@ config ESP32_UNIVERSAL_MAC_ADDRESSES
|
||||||
default 2 if ESP32_UNIVERSAL_MAC_ADDRESSES_TWO
|
default 2 if ESP32_UNIVERSAL_MAC_ADDRESSES_TWO
|
||||||
default 4 if ESP32_UNIVERSAL_MAC_ADDRESSES_FOUR
|
default 4 if ESP32_UNIVERSAL_MAC_ADDRESSES_FOUR
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
endif # SOC_ESP32
|
endif # SOC_ESP32
|
||||||
|
|
|
@ -224,4 +224,16 @@ config ESP32S2_UNIVERSAL_MAC_ADDRESSES
|
||||||
default 1 if ESP32S2_UNIVERSAL_MAC_ADDRESSES_ONE
|
default 1 if ESP32S2_UNIVERSAL_MAC_ADDRESSES_ONE
|
||||||
default 2 if ESP32S2_UNIVERSAL_MAC_ADDRESSES_TWO
|
default 2 if ESP32S2_UNIVERSAL_MAC_ADDRESSES_TWO
|
||||||
|
|
||||||
|
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_ESP32S2
|
endif # SOC_ESP32S2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue