arm: nrf52: Introduce NRF52 SoC Specific config options
Introduce SoC specific config options similar to what exists on NRF51, this is mostly to help distinguish between SRAM & Flash sizes on different variants. Also deleted some unnecessary setting of CONFIG_SOC_NRF528{32,40} in the board defconfig files. Change-Id: I3aaedf0c15423ae12636f87b8e6a39070cbb2c6f Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
14ca99af1e
commit
6959c4516e
10 changed files with 27 additions and 17 deletions
|
@ -6,11 +6,11 @@
|
|||
#
|
||||
|
||||
|
||||
if SOC_NRF52832
|
||||
if SOC_NRF52832_QFAA
|
||||
|
||||
config SOC
|
||||
string
|
||||
default nRF52832
|
||||
default nRF52832_QFAA
|
||||
|
||||
config SRAM_SIZE
|
||||
default 64
|
||||
|
@ -22,5 +22,5 @@ config NUM_IRQS
|
|||
int
|
||||
default 39
|
||||
|
||||
endif # SOC_NRF52832
|
||||
endif # SOC_NRF52832_QFAA
|
||||
|
|
@ -6,11 +6,11 @@
|
|||
#
|
||||
|
||||
|
||||
if SOC_NRF52840
|
||||
if SOC_NRF52840_QIAA
|
||||
|
||||
config SOC
|
||||
string
|
||||
default nRF52840
|
||||
default nRF52840_QIAA
|
||||
|
||||
config SRAM_SIZE
|
||||
default 256
|
||||
|
@ -22,5 +22,5 @@ config NUM_IRQS
|
|||
int
|
||||
default 46
|
||||
|
||||
endif # SOC_NRF52840
|
||||
endif # SOC_NRF52840_QIAA
|
||||
|
|
@ -5,14 +5,24 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
config SOC_NRF52832
|
||||
depends on SOC_SERIES_NRF52X
|
||||
bool
|
||||
|
||||
config SOC_NRF52840
|
||||
depends on SOC_SERIES_NRF52X
|
||||
bool
|
||||
|
||||
choice
|
||||
prompt "nRF52x MCU Selection"
|
||||
depends on SOC_SERIES_NRF52X
|
||||
|
||||
config SOC_NRF52832
|
||||
bool "NRF52832"
|
||||
config SOC_NRF52832_QFAA
|
||||
bool "NRF52832_QFAA"
|
||||
select SOC_NRF52832
|
||||
|
||||
config SOC_NRF52840
|
||||
bool "NRF52840"
|
||||
config SOC_NRF52840_QIAA
|
||||
bool "NRF52840_QIAA"
|
||||
select SOC_NRF52840
|
||||
|
||||
endchoice
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue