From 835e4b54bddc905549618e1e4bc70cebf21bf63b Mon Sep 17 00:00:00 2001 From: Andrzej Kaczmarek Date: Tue, 6 Sep 2022 16:04:12 +0200 Subject: [PATCH] hw/mcu: Add family and series defs to syscfg Those allow for conditional configurations to be implemented. It may be possible to retrieve the same information via vendor provided defs in header files, but with syscfg defs we can also use this in pkg or syscfg deps. --- hw/mcu/dialog/da1469x/syscfg.yml | 3 +++ hw/mcu/nordic/nrf51xxx/syscfg.yml | 3 +++ hw/mcu/nordic/nrf52xxx/syscfg.yml | 3 +++ hw/mcu/nordic/nrf5340/syscfg.yml | 3 +++ hw/mcu/nordic/nrf5340_net/syscfg.yml | 3 +++ hw/mcu/nordic/nrf91xx/syscfg.yml | 3 +++ 6 files changed, 18 insertions(+) diff --git a/hw/mcu/dialog/da1469x/syscfg.yml b/hw/mcu/dialog/da1469x/syscfg.yml index 2fecdc0cd4..d2e09f5905 100644 --- a/hw/mcu/dialog/da1469x/syscfg.yml +++ b/hw/mcu/dialog/da1469x/syscfg.yml @@ -17,6 +17,9 @@ # syscfg.defs: + MCU_FAMILY_SMARTBOND: 1 + MCU_SERIES_DA1469X: 1 + MCU_TARGET: description: Specifies target MCU, shall be set by BSP. value: diff --git a/hw/mcu/nordic/nrf51xxx/syscfg.yml b/hw/mcu/nordic/nrf51xxx/syscfg.yml index 4f277f9f89..40756e4384 100644 --- a/hw/mcu/nordic/nrf51xxx/syscfg.yml +++ b/hw/mcu/nordic/nrf51xxx/syscfg.yml @@ -17,6 +17,9 @@ # syscfg.defs: + MCU_FAMILY_NRF: 1 + MCU_SERIES_NRF51: 1 + MCU_TARGET: description: > Specifies target MCU, shall be set by BSP. diff --git a/hw/mcu/nordic/nrf52xxx/syscfg.yml b/hw/mcu/nordic/nrf52xxx/syscfg.yml index 497865d021..437462a480 100644 --- a/hw/mcu/nordic/nrf52xxx/syscfg.yml +++ b/hw/mcu/nordic/nrf52xxx/syscfg.yml @@ -17,6 +17,9 @@ # syscfg.defs: + MCU_FAMILY_NRF: 1 + MCU_SERIES_NRF52: 1 + MCU_TARGET: description: > Specifies target MCU, shall be set by BSP. diff --git a/hw/mcu/nordic/nrf5340/syscfg.yml b/hw/mcu/nordic/nrf5340/syscfg.yml index 49525bcd83..197db92932 100644 --- a/hw/mcu/nordic/nrf5340/syscfg.yml +++ b/hw/mcu/nordic/nrf5340/syscfg.yml @@ -17,6 +17,9 @@ # syscfg.defs: + MCU_FAMILY_NRF: 1 + MCU_SERIES_NRF53: 1 + MCU_TARGET: description: > Specifies target MCU. diff --git a/hw/mcu/nordic/nrf5340_net/syscfg.yml b/hw/mcu/nordic/nrf5340_net/syscfg.yml index 86849853d4..5c73c251da 100644 --- a/hw/mcu/nordic/nrf5340_net/syscfg.yml +++ b/hw/mcu/nordic/nrf5340_net/syscfg.yml @@ -17,6 +17,9 @@ # syscfg.defs: + MCU_FAMILY_NRF: 1 + MCU_SERIES_NRF53: 1 + MCU_TARGET: description: > Specifies target MCU. diff --git a/hw/mcu/nordic/nrf91xx/syscfg.yml b/hw/mcu/nordic/nrf91xx/syscfg.yml index be85881424..5b4a622bf8 100644 --- a/hw/mcu/nordic/nrf91xx/syscfg.yml +++ b/hw/mcu/nordic/nrf91xx/syscfg.yml @@ -17,6 +17,9 @@ # syscfg.defs: + MCU_FAMILY_NRF: 1 + MCU_SERIES_NRF91: 1 + MCU_TARGET: description: > Specifies target MCU, shall be set by BSP.