Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arch: arm: nrf: add hardware description for nrf kconfig files #8363

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions arch/arm/soc/nordic_nrf/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@ config SOC_FAMILY
string
default "nordic_nrf"

source "arch/arm/soc/nordic_nrf/Kconfig.peripherals"
gsource "arch/arm/soc/nordic_nrf/*/Kconfig.soc"

endif # SOC_FAMILY_NRF
207 changes: 207 additions & 0 deletions arch/arm/soc/nordic_nrf/Kconfig.peripherals
Original file line number Diff line number Diff line change
@@ -0,0 +1,207 @@
# Kconfig.peripherals - Nordic Semiconductor nRFx MCU peripherals list.
#
# Copyright (c) 2018 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: Apache-2.0
#

config HAS_HW_NRF_ACL
bool

config HAS_HW_NRF_ADC
bool

config HAS_HW_NRF_CC310
bool

config HAS_HW_NRF_CCM
bool

config HAS_HW_NRF_CLOCK
bool

config HAS_HW_NRF_COMP
bool

config HAS_HW_NRF_ECB
bool

config HAS_HW_NRF_EGU0
bool

config HAS_HW_NRF_EGU1
bool

config HAS_HW_NRF_EGU2
bool

config HAS_HW_NRF_EGU3
bool

config HAS_HW_NRF_EGU4
bool

config HAS_HW_NRF_EGU5
bool

config HAS_HW_NRF_GPIO0
bool

config HAS_HW_NRF_GPIO1
bool

config HAS_HW_NRF_GPIOTE
bool

config HAS_HW_NRF_I2S
bool

config HAS_HW_NRF_LPCOMP
bool

config HAS_HW_NRF_MWU
bool

config HAS_HW_NRF_NFCT
bool

config HAS_HW_NRF_PDM
bool

config HAS_HW_NRF_POWER
bool

config HAS_HW_NRF_PPI
bool

config HAS_HW_NRF_PWM0
bool

config HAS_HW_NRF_PWM1
bool

config HAS_HW_NRF_PWM2
bool

config HAS_HW_NRF_PWM3
bool

config HAS_HW_NRF_QDEC
bool

config HAS_HW_NRF_QSPI
bool

config HAS_HW_NRF_RNG
bool

config HAS_HW_NRF_RTC0
bool

config HAS_HW_NRF_RTC1
bool

config HAS_HW_NRF_RTC2
bool

config HAS_HW_NRF_SAADC
bool

config HAS_HW_NRF_SPI0
bool

config HAS_HW_NRF_SPI1
bool

config HAS_HW_NRF_SPI2
bool

config HAS_HW_NRF_SPIM0
bool

config HAS_HW_NRF_SPIM1
bool

config HAS_HW_NRF_SPIM2
bool

config HAS_HW_NRF_SPIM3
bool

config HAS_HW_NRF_SPIS0
bool

config HAS_HW_NRF_SPIS1
bool

config HAS_HW_NRF_SPIS2
bool

config HAS_HW_NRF_SWI0
bool

config HAS_HW_NRF_SWI1
bool

config HAS_HW_NRF_SWI2
bool

config HAS_HW_NRF_SWI3
bool

config HAS_HW_NRF_SWI4
bool

config HAS_HW_NRF_SWI5
bool

config HAS_HW_NRF_TEMP
bool

config HAS_HW_NRF_TIMER0
bool

config HAS_HW_NRF_TIMER1
bool

config HAS_HW_NRF_TIMER2
bool

config HAS_HW_NRF_TIMER3
bool

config HAS_HW_NRF_TIMER4
bool

config HAS_HW_NRF_TWI0
bool

config HAS_HW_NRF_TWI1
bool

config HAS_HW_NRF_TWIM0
bool

config HAS_HW_NRF_TWIM1
bool

config HAS_HW_NRF_TWIS0
bool

config HAS_HW_NRF_TWIS1
bool

config HAS_HW_NRF_UART0
bool

config HAS_HW_NRF_UARTE0
bool

config HAS_HW_NRF_UARTE1
bool

config HAS_HW_NRF_USBD
bool

config HAS_HW_NRF_WDT
bool
66 changes: 66 additions & 0 deletions arch/arm/soc/nordic_nrf/nrf51/Kconfig.soc
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,77 @@ depends on SOC_SERIES_NRF51X

config SOC_NRF51822_QFAA
bool "NRF51822_QFAA"
select HAS_HW_NRF_ADC
select HAS_HW_NRF_CCM
select HAS_HW_NRF_ECB
select HAS_HW_NRF_GPIO0
select HAS_HW_NRF_GPIOTE
select HAS_HW_NRF_LPCOMP
select HAS_HW_NRF_QDEC
select HAS_HW_NRF_PPI
select HAS_HW_NRF_RNG
select HAS_HW_NRF_RTC0
select HAS_HW_NRF_RTC1
select HAS_HW_NRF_SPI0
select HAS_HW_NRF_SPI1
select HAS_HW_NRF_SPIS1
select HAS_HW_NRF_TEMP
select HAS_HW_NRF_TIMER0
select HAS_HW_NRF_TIMER1
select HAS_HW_NRF_TIMER2
select HAS_HW_NRF_TWI0
select HAS_HW_NRF_TWI1
select HAS_HW_NRF_UART0
select HAS_HW_NRF_WDT

config SOC_NRF51822_QFAB
bool "NRF51822_QFAB"
select HAS_HW_NRF_ADC
select HAS_HW_NRF_CCM
select HAS_HW_NRF_ECB
select HAS_HW_NRF_GPIO0
select HAS_HW_NRF_GPIOTE
select HAS_HW_NRF_LPCOMP
select HAS_HW_NRF_QDEC
select HAS_HW_NRF_PPI
select HAS_HW_NRF_RNG
select HAS_HW_NRF_RTC0
select HAS_HW_NRF_RTC1
select HAS_HW_NRF_SPI0
select HAS_HW_NRF_SPI1
select HAS_HW_NRF_SPIS1
select HAS_HW_NRF_TEMP
select HAS_HW_NRF_TIMER0
select HAS_HW_NRF_TIMER1
select HAS_HW_NRF_TIMER2
select HAS_HW_NRF_TWI0
select HAS_HW_NRF_TWI1
select HAS_HW_NRF_UART0
select HAS_HW_NRF_WDT

config SOC_NRF51822_QFAC
bool "NRF51822_QFAC"
select HAS_HW_NRF_ADC
select HAS_HW_NRF_CCM
select HAS_HW_NRF_ECB
select HAS_HW_NRF_GPIO0
select HAS_HW_NRF_GPIOTE
select HAS_HW_NRF_LPCOMP
select HAS_HW_NRF_QDEC
select HAS_HW_NRF_PPI
select HAS_HW_NRF_RNG
select HAS_HW_NRF_RTC0
select HAS_HW_NRF_RTC1
select HAS_HW_NRF_SPI0
select HAS_HW_NRF_SPI1
select HAS_HW_NRF_SPIS1
select HAS_HW_NRF_TEMP
select HAS_HW_NRF_TIMER0
select HAS_HW_NRF_TIMER1
select HAS_HW_NRF_TIMER2
select HAS_HW_NRF_TWI0
select HAS_HW_NRF_TWI1
select HAS_HW_NRF_UART0
select HAS_HW_NRF_WDT

endchoice
1 change: 0 additions & 1 deletion arch/arm/soc/nordic_nrf/nrf52/Kconfig.series
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
config SOC_SERIES_NRF52X
bool "Nordic Semiconductor nRF52 series MCU"
select CPU_CORTEX_M4
select CPU_HAS_FPU
Copy link
Member

@anangl anangl Jun 13, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change together with the XIP one should be extracted to a separate commit with an explanation in the commit message why these selects have been moved.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now there are 3 logical (I hope) commits.

select CPU_HAS_MPU
select SOC_FAMILY_NRF
select NRF_RTC_TIMER
Expand Down
Loading