hal: esp32: driver changes to allow HAL update

hal_espressif repository was updated from esp-idf v4.2
to esp-idf v4.3 to allow latest Espressif chips integration.
As a consequence, it added a few changes in drivers
and peripherals. To maintain bisectability, changes in this
PR cannot be split. Here are some details:

wifi: update linker script by adding libphy and new attributes.

spi: update some APIs and fixed missing wait_idle check

west.yml: esp32: update hal to new version

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
This commit is contained in:
Sylvio Alves 2021-05-06 13:40:44 -03:00 committed by Anas Nashif
commit 4303cfdb3c
9 changed files with 120 additions and 38 deletions

View file

@ -96,7 +96,7 @@ int configure_read_mode(spi_dev_t *hw,
if (!byte_cmd) {
REG_SET_FIELD(PERIPHS_SPI_FLASH_USRREG2, SPI_USR_COMMAND_VALUE, cmd);
} else {
spi_flash_ll_set_command8(hw, (uint8_t) cmd);
spi_flash_ll_set_command(hw, (uint8_t) cmd, 8);
}
return 0;
@ -330,7 +330,7 @@ static int wait_idle(const struct device *dev)
int64_t timeout = k_uptime_get() + SPI_TIMEOUT_MSEC;
/* wait for spi control ready */
while (host_idle(cfg->controller)) {
while (!host_idle(cfg->controller)) {
if (k_uptime_get() > timeout) {
return -ETIMEDOUT;
}