zephyr/drivers/pwm/Kconfig.sifive
Ulf Magnusson f46e391f06 kconfig: pwm: Remove redundant deps. and clean up a bit
- Remove redundant dependencies on the PWM symbol (which show up as
   PWM && PWM in the documentation). The 'source's in
   drivers/pwm/Kconfig are already within an 'if PWM' block.

 - Turn some repeated 'depends on FOO' into 'if FOO' blocks.

 - Turn some 'if FOO's that surround a single symbol into
   'depends on FOO'.

'if FOO' is equivalent to adding a 'depends on FOO' to each symbol
within the 'if'.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-03-01 13:50:06 -06:00

25 lines
502 B
Plaintext

# Kconfig.sifive - SiFive Freedom PWM configuration options
#
#
# Copyright (c) 2018 SiFive Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
menuconfig PWM_SIFIVE
bool "SiFive Freedom PWM driver"
depends on SOC_SERIES_RISCV32_SIFIVE_FREEDOM
depends on HAS_DTS
help
Enable the PWM driver for the SiFive Freedom platform
if PWM_SIFIVE
config PWM_SIFIVE_INIT_PRIORITY
int "Init Priority"
default KERNEL_INIT_PRIORITY_DEVICE
help
SiFive PWM Driver Initialization Priority
endif # PWM_SIFIVE