boards: arm: Refactor the GPIO and UART dependencies

To make way for the upcoming blinky and GPIO support for nRF5x-based
boards, this change addresses the hardcoded dependencies in Kconfig
default configurations of the different boards, moving the common option
defaults to the SoC default configuration itself.

Change-Id: I8db0750311ad5a12b76237b39438376f20f6f496
Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Carles Cufi 2016-12-08 16:03:44 +01:00 committed by Kumar Gala
commit 3655291d5f
8 changed files with 49 additions and 43 deletions

View file

@ -15,6 +15,8 @@
# limitations under the License.
#
if SOC_FAMILY_NRF5
if BLUETOOTH_CONTROLLER
config CLOCK_CONTROL
@ -25,4 +27,20 @@ config CLOCK_CONTROL_NRF5
endif # BLUETOOTH_CONTROLLER
if SERIAL
config GPIO
default y
endif # SERIAL
if GPIO
config GPIO_NRF5
default y
endif # GPIO
source "arch/arm/soc/nordic_nrf5/*/Kconfig.defconfig.series"
endif # SOC_FAMILY_NRF5