arch/nrf52: remove redundant chip definitions from Kconfig
This commit is contained in:
parent
45f3aa4ca9
commit
3241ebf811
@ -77,7 +77,11 @@
|
|||||||
|
|
||||||
/* Cortex-M4 External interrupts (vectors >= 16) */
|
/* Cortex-M4 External interrupts (vectors >= 16) */
|
||||||
|
|
||||||
#if defined(CONFIG_ARCH_FAMILY_NRF52832) || defined(CONFIG_ARCH_FAMILY_NRF52840)
|
/********************************************************************************************
|
||||||
|
* Included Files
|
||||||
|
********************************************************************************************/
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_FAMILY_NRF52)
|
||||||
# include <arch/nrf52/nrf52_irq.h>
|
# include <arch/nrf52/nrf52_irq.h>
|
||||||
#else
|
#else
|
||||||
# error "Unsupported NRF52XX MCU"
|
# error "Unsupported NRF52XX MCU"
|
||||||
|
@ -13,13 +13,11 @@ choice
|
|||||||
config ARCH_CHIP_NRF52832
|
config ARCH_CHIP_NRF52832
|
||||||
bool "NRF52832"
|
bool "NRF52832"
|
||||||
select ARCH_FAMILY_NRF52
|
select ARCH_FAMILY_NRF52
|
||||||
select ARCH_FAMILY_NRF52832
|
|
||||||
select NRF52_HAVE_BPROT
|
select NRF52_HAVE_BPROT
|
||||||
|
|
||||||
config ARCH_CHIP_NRF52833
|
config ARCH_CHIP_NRF52833
|
||||||
bool "NRF52832"
|
bool "NRF52832"
|
||||||
select ARCH_FAMILY_NRF52
|
select ARCH_FAMILY_NRF52
|
||||||
select ARCH_FAMILY_NRF52833
|
|
||||||
select NRF52_HAVE_ACL
|
select NRF52_HAVE_ACL
|
||||||
select NRF52_HAVE_UART1
|
select NRF52_HAVE_UART1
|
||||||
select NRF52_HAVE_PORT1
|
select NRF52_HAVE_PORT1
|
||||||
@ -30,7 +28,6 @@ config ARCH_CHIP_NRF52833
|
|||||||
config ARCH_CHIP_NRF52840
|
config ARCH_CHIP_NRF52840
|
||||||
bool "NRF52840"
|
bool "NRF52840"
|
||||||
select ARCH_FAMILY_NRF52
|
select ARCH_FAMILY_NRF52
|
||||||
select ARCH_FAMILY_NRF52840
|
|
||||||
select NRF52_HAVE_ACL
|
select NRF52_HAVE_ACL
|
||||||
select NRF52_HAVE_UART1
|
select NRF52_HAVE_UART1
|
||||||
select NRF52_HAVE_PORT1
|
select NRF52_HAVE_PORT1
|
||||||
@ -48,18 +45,6 @@ config ARCH_FAMILY_NRF52
|
|||||||
bool
|
bool
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config ARCH_FAMILY_NRF52832
|
|
||||||
bool
|
|
||||||
default n
|
|
||||||
|
|
||||||
config ARCH_FAMILY_NRF52833
|
|
||||||
bool
|
|
||||||
default n
|
|
||||||
|
|
||||||
config ARCH_FAMILY_NRF52840
|
|
||||||
bool
|
|
||||||
default n
|
|
||||||
|
|
||||||
# Peripheral support
|
# Peripheral support
|
||||||
|
|
||||||
config NRF52_HAVE_BPROT
|
config NRF52_HAVE_BPROT
|
||||||
@ -122,7 +107,7 @@ config NRF52_RTC
|
|||||||
|
|
||||||
config NRF52_SPI_MASTER_WORKAROUND_1BYTE_TRANSFER
|
config NRF52_SPI_MASTER_WORKAROUND_1BYTE_TRANSFER
|
||||||
bool "SPI Master 1 Byte transfer anomaly workaround"
|
bool "SPI Master 1 Byte transfer anomaly workaround"
|
||||||
depends on NRF52_SPI_MASTER && ARCH_FAMILY_NRF52832
|
depends on NRF52_SPI_MASTER && ARCH_CHIP_NRF52832
|
||||||
default y
|
default y
|
||||||
---help---
|
---help---
|
||||||
Enable the workaround to fix SPI Master 1 byte transfer bug
|
Enable the workaround to fix SPI Master 1 byte transfer bug
|
||||||
|
@ -80,7 +80,7 @@ endif
|
|||||||
CHIP_CSRCS = nrf52_start.c nrf52_clockconfig.c nrf52_irq.c nrf52_utils.c
|
CHIP_CSRCS = nrf52_start.c nrf52_clockconfig.c nrf52_irq.c nrf52_utils.c
|
||||||
CHIP_CSRCS += nrf52_allocateheap.c nrf52_lowputc.c nrf52_gpio.c nrf52_nvmc.c
|
CHIP_CSRCS += nrf52_allocateheap.c nrf52_lowputc.c nrf52_gpio.c nrf52_nvmc.c
|
||||||
|
|
||||||
ifeq ($(CONFIG_ARCH_FAMILY_NRF52832),y)
|
ifeq ($(CONFIG_ARCH_CHIP_NRF52832),y)
|
||||||
CHIP_CSRCS += nrf52832_errdata.c
|
CHIP_CSRCS += nrf52832_errdata.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -222,7 +222,7 @@ void __start(void)
|
|||||||
|
|
||||||
showprogress('C');
|
showprogress('C');
|
||||||
|
|
||||||
#if defined(CONFIG_ARCH_FAMILY_NRF52832)
|
#if defined(CONFIG_ARCH_CHIP_NRF52832)
|
||||||
/* Initialize the errdata work-around */
|
/* Initialize the errdata work-around */
|
||||||
|
|
||||||
nrf52832_errdata_init();
|
nrf52832_errdata_init();
|
||||||
|
Loading…
Reference in New Issue
Block a user