modules: hal: nordic: Fix translation of peripheral symbols

Update the hal_nordic module revision, to apply the following changes:

nrfx_config: Fix translation of symbols for _S or _NS only peripherals

For peripherals with only one type of access available (either secure
or non-secure), the common symbol translation scheme cannot be used
as it leads to mapping to non-existing symbols (e.g. NRF_FICR_NS).
Instead, use fixed translations for these symbols (e.g. NRF_FICR to
NRF_FICR_S, only for secure images).

nrfx_config: Add missing _S/_NS symbol translations for nRF5340/nRF9160

Add translations of names with _S and _NS suffixes for peripheral
access symbols that are available for a given chip but were not used
so far in any nrfx HAL or driver, to make the lists of translations
complete and consistent.

This commit corrects also the translation of NRF_I2S symbol for nRF5340
whose name for this SoC contains also the index 0 (so it needs to be
handled similarly like NRF_PDM0 is).

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This commit is contained in:
Andrzej Głąbek 2020-02-27 09:32:05 +00:00 committed by Ioannis Glaropoulos
parent 668d401293
commit 3e93f9f67d
2 changed files with 5 additions and 2 deletions

View file

@ -19,6 +19,9 @@
* Provide translation of symbols for peripherals that for some SoCs got names
* without the index.
*/
#ifndef NRF_I2S0
#define NRF_I2S0 NRF_I2S
#endif
#ifndef NRF_PDM0
#define NRF_PDM0 NRF_PDM
#endif
@ -79,7 +82,7 @@ CHECK_ADDRESS(DT_NORDIC_NRF_GPIOTE_GPIOTE_0_BASE_ADDRESS, NRF_GPIOTE);
#endif
#if defined(DT_NORDIC_NRF_I2S_I2S_0_BASE_ADDRESS)
CHECK_ADDRESS(DT_NORDIC_NRF_I2S_I2S_0_BASE_ADDRESS, NRF_I2S);
CHECK_ADDRESS(DT_NORDIC_NRF_I2S_I2S_0_BASE_ADDRESS, NRF_I2S0);
#endif
#if defined(DT_INST_0_NORDIC_NRF_IPC_BASE_ADDRESS)

View file

@ -47,7 +47,7 @@ manifest:
revision: a12d92816a53a521d79cefcf5c38b9dc8a4fed6e
path: modules/hal/cypress
- name: hal_nordic
revision: 62f9c632209ce9438edfcfdcee7a846344359647
revision: f6d5eca68e07551d6a36359b67600f9e98736839
path: modules/hal/nordic
- name: hal_openisa
revision: 3b54187649cc9b37161d49918f1ad28ff7c7f830