zephyr/drivers/gpio/Kconfig.altera_nios2
Ulf Magnusson f912dfebea drivers: gpio: Kconfig: Remove redundant 'default n' properties
Bool symbols implicitly default to 'n'.

A 'default n' can make sense e.g. in a Kconfig.defconfig file, if you
want to override a 'default y' on the base definition of the symbol. It
isn't used like that on any of these symbols though, and is
inconsistent.

This will make the auto-generated Kconfig documentation have "No
defaults. Implicitly defaults to n." as well, which is clearer than
'default n if ...'

Piggyback a missing 'source "drivers/gpio/Kconfig.imx"'. This file
wasn't included anywhere previously.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2018-07-03 17:11:31 -04:00

33 lines
763 B
Plaintext

# Kconfig.altera_nios2 - Altera Nios-II GPIO configuration options
#
#
# Copyright (c) 2017 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
menuconfig GPIO_ALTERA_NIOS2
bool "Altera Nios-II PIO Controllers"
depends on GPIO && HAS_ALTERA_HAL
help
Enable config options to support the PIO controllers
on Altera Nios-II family processors.
Says n if not sure.
if GPIO_ALTERA_NIOS2
config GPIO_ALTERA_NIOS2_OUTPUT
bool "Enable driver for Altera Nios-II PIO Output Port"
help
Build the driver to utilize PIO controller Output Port.
config GPIO_ALTERA_NIOS2_OUTPUT_DEV_NAME
string "Device name for Output Port"
depends on GPIO_ALTERA_NIOS2_OUTPUT
default "PIO_OUTPUT"
help
Device name for Output Port.
endif # GPIO_ALTERA_NIOS2