aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/pcengines/apu2/Kconfig
diff options
context:
space:
mode:
authorKamil Wcislo <kamil.wcislo@3mdeb.com>2017-10-12 11:55:16 +0200
committerMartin Roth <martinroth@google.com>2017-10-20 02:19:23 +0000
commit70b92456eb2f507b6d6ce24212219e7dfbb59747 (patch)
treef4eb46df82cf87dffb01e1202d118f491d8eb92c /src/mainboard/pcengines/apu2/Kconfig
parent6a35fab2723f3b1ca288cd9224d263570cfbe184 (diff)
mainboard/pcengines/apu2: add apu3 and apu5 variants
Apu3 and apu5 are additional variants of apu2 board. Apu3 has no LPC connector exposed, but has additional USB header. It has also 2 slots for SIM cards and one of the gpios is used to control switching between them. Apu5 is differing by having 6 SIM card slots (3 SIMSWAP switches). This patch adds support for those other variants by not introducing additional code redundancy. Change-Id: I4fded98fed7a8085062cdea035ecac3d608cd2a0 Signed-off-by: Kamil Wcislo <kamil.wcislo@3mdeb.com> Reviewed-on: https://review.coreboot.org/21981 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/mainboard/pcengines/apu2/Kconfig')
-rw-r--r--src/mainboard/pcengines/apu2/Kconfig26
1 files changed, 22 insertions, 4 deletions
diff --git a/src/mainboard/pcengines/apu2/Kconfig b/src/mainboard/pcengines/apu2/Kconfig
index cbcbb7cd63..432963ed0e 100644
--- a/src/mainboard/pcengines/apu2/Kconfig
+++ b/src/mainboard/pcengines/apu2/Kconfig
@@ -14,7 +14,7 @@
# GNU General Public License for more details.
#
-if BOARD_PCENGINES_APU2
+if BOARD_PCENGINES_APU2 || BOARD_PCENGINES_APU3 || BOARD_PCENGINES_APU5
config BOARD_SPECIFIC_OPTIONS # dummy
def_bool y
@@ -37,9 +37,21 @@ config MAINBOARD_DIR
string
default pcengines/apu2
+config VARIANT_DIR
+ string
+ default "apu2" if BOARD_PCENGINES_APU2
+ default "apu3" if BOARD_PCENGINES_APU3
+ default "apu5" if BOARD_PCENGINES_APU5
+
+config DEVICETREE
+ string
+ default "variants/$(CONFIG_VARIANT_DIR)/devicetree.cb"
+
config MAINBOARD_PART_NUMBER
string
- default "apu2"
+ default "apu2" if BOARD_PCENGINES_APU2
+ default "apu3" if BOARD_PCENGINES_APU3
+ default "apu5" if BOARD_PCENGINES_APU5
config MAX_CPUS
int
@@ -63,13 +75,16 @@ config AGESA_BINARY_PI_FILE
choice
prompt "J19 pins 1-10"
- default APU2_PINMUX_OFF_C
+ default APU2_PINMUX_OFF_C if BOARD_PCENGINES_APU2 || \
+ BOARD_PCENGINES_APU3
+ default APU2_PINMUX_UART_C if BOARD_PCENGINES_APU5
config APU2_PINMUX_OFF_C
bool "disable"
config APU2_PINMUX_GPIO0
bool "GPIO"
+ depends on BOARD_PCENGINES_APU2 || BOARD_PCENGINES_APU3
config APU2_PINMUX_UART_C
bool "UART 0x3e8"
@@ -78,13 +93,16 @@ endchoice
choice
prompt "J19 pins 11-20"
- default APU2_PINMUX_OFF_D
+ default APU2_PINMUX_OFF_D if BOARD_PCENGINES_APU2 || \
+ BOARD_PCENGINES_APU3
+ default APU2_PINMUX_UART_D if BOARD_PCENGINES_APU5
config APU2_PINMUX_OFF_D
bool "disable"
config APU2_PINMUX_GPIO1
bool "GPIO"
+ depends on BOARD_PCENGINES_APU2 || BOARD_PCENGINES_APU3
config APU2_PINMUX_UART_D
bool "UART 0x2e8"