2018-08-16 06:41:21 +08:00
|
|
|
# Kconfig.fe310 - SiFive Freedom GPIO configuration option
|
2017-03-15 05:16:43 +08:00
|
|
|
#
|
|
|
|
# Copyright (c) 2017 Jean-Paul Etienne <fractalclone@gmail.com>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
menuconfig GPIO_SIFIVE
|
|
|
|
bool "SiFive Freedom Processor GPIO driver"
|
|
|
|
depends on GPIO && SOC_RISCV32_SIFIVE_FREEDOM
|
2018-10-05 06:02:42 +08:00
|
|
|
select HAS_DTS_GPIO
|
2017-03-15 05:16:43 +08:00
|
|
|
help
|
2018-08-16 06:41:21 +08:00
|
|
|
Enable driver for the SiFive Freedom GPIO controller.
|
2017-03-15 05:16:43 +08:00
|
|
|
|
|
|
|
Says n if not sure.
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
if GPIO_SIFIVE
|
2017-03-15 05:16:43 +08:00
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_GPIO_NAME
|
2017-03-15 05:16:43 +08:00
|
|
|
string "GPIO driver name"
|
|
|
|
default "gpio0"
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_0_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 0 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_1_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 1 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_2_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 2 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_3_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 3 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_4_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 4 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_5_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 5 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_6_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 6 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_7_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 7 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_8_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 8 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_9_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 9 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_10_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 10 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_11_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 11 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_12_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 12 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_13_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 13 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_14_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 14 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_15_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 15 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_16_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 16 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_17_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 17 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_18_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 18 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_19_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 19 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_20_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 20 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_21_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 21 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_22_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 22 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_23_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 23 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_24_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 24 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_25_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 25 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_26_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 26 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_27_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 27 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_28_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 28 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_29_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 29 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_30_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 30 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
config GPIO_SIFIVE_31_PRIORITY
|
2017-03-15 05:16:43 +08:00
|
|
|
int "GPIO 31 interrupt priority"
|
|
|
|
default 1
|
|
|
|
|
2018-08-16 06:41:21 +08:00
|
|
|
endif # GPIO_SIFIVE
|