summaryrefslogtreecommitdiff
path: root/src/mainboard/pcengines/apu1/Kconfig
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2015-05-11 22:53:19 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2015-05-19 14:46:58 +0200
commit017c2150d4a528c58a454705db74210477623a5f (patch)
treed26524851cb6d57a48dc951e1a160904edc995d6 /src/mainboard/pcengines/apu1/Kconfig
parent58d5e21851ced6b475a87e3a4114b2c7e1125921 (diff)
pcengines/apu1: Add switch between UART and GPIO modes
These are alternative customer options connected to J19 header. We need to avoid modifying devicetree.cb, so we fix devicetree for the super-io device-enables at runtime instead. Change-Id: I04a79974b9bdf52b09ffc1b1362e201eab1ee011 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/10178 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/mainboard/pcengines/apu1/Kconfig')
-rw-r--r--src/mainboard/pcengines/apu1/Kconfig30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/mainboard/pcengines/apu1/Kconfig b/src/mainboard/pcengines/apu1/Kconfig
index 9409bc3cd1..197dbc0f6b 100644
--- a/src/mainboard/pcengines/apu1/Kconfig
+++ b/src/mainboard/pcengines/apu1/Kconfig
@@ -82,4 +82,34 @@ config DRIVERS_PS2_KEYBOARD
bool
default n
+choice
+ prompt "J19 pins 1-10"
+ default PINMUX_OFF_C
+
+config PINMUX_OFF_C
+ bool "disable"
+
+config PINMUX_GPIO0
+ bool "GPIO"
+
+config PINMUX_UART_C
+ bool "UART 0x3e8"
+
+endchoice
+
+choice
+ prompt "J19 pins 11-20"
+ default PINMUX_OFF_D
+
+config PINMUX_OFF_D
+ bool "disable"
+
+config PINMUX_GPIO1
+ bool "GPIO"
+
+config PINMUX_UART_D
+ bool "UART 0x2e8"
+
+endchoice
+
endif # BOARD_PCENGINES_APU1