mirror of
https://github.com/zephyrproject-rtos/zephyr.git
synced 2024-12-04 11:39:46 +08:00
ada8d72888
According to the board porting guidelines, boards should "leave peripherals and their drivers disabled by default". In Zephyr we tipically enable GPIO and SERIAL, as they are virtually required by all samples/tests in tree. However, for the rest of peripherals it is up to the application/test to enable the necessary driver classes. It is also useful that board's Kconfig.defconfig enables certain driver peripherals based on a condition, e.g. enable I2C if SENSOR=y. Ref. https://docs.zephyrproject.org/latest/hardware/porting/ board_porting.html#general-recommendations This patch removes the following driver classes from defconfig files: - CONFIG_ADC - CONFIG_COUNTER - CONFIG_EEPROM - CONFIG_ENTROPY - CONFIG_ESPI - CONFIG_HWINFO - CONFIG_I2C - CONFIG_LED - CONFIG_NETWORKING - CONFIG_PS2 - CONFIG_PWM - CONFIG_SENSOR - CONFIG_SPI - CONFIG_SPI_SLAVE - CONFIG_WATCHDOG Note that a previous attempt was done in #38510. Fixes #30694 Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
23 lines
339 B
Plaintext
23 lines
339 B
Plaintext
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
CONFIG_SOC_SERIES_NRF52X=y
|
|
CONFIG_SOC_NRF52832_QFAA=y
|
|
CONFIG_BOARD_PINETIME_DEVKIT0=y
|
|
|
|
CONFIG_ARM_MPU=y
|
|
|
|
CONFIG_GPIO=y
|
|
|
|
CONFIG_SERIAL=y
|
|
|
|
CONFIG_CONSOLE=y
|
|
CONFIG_UART_CONSOLE=y
|
|
|
|
# use P0.09 and P0.10 as GPIOs
|
|
CONFIG_NFCT_PINS_AS_GPIOS=y
|
|
|
|
# use P0.21 as RST
|
|
CONFIG_GPIO_AS_PINRESET=y
|
|
|
|
CONFIG_PINCTRL=y
|