pcengines/apu1: Rename Kconfig variables for pinmux
Add APU1 prefix because Kconfig throws errors if we try to define the same variables as choice-entry for APU2 board. Change-Id: Ic071600dd88e391a8a278d63aad13abd01fd3c9d Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/14988 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
@@ -82,30 +82,30 @@ config DRIVERS_PS2_KEYBOARD
|
|||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "J19 pins 1-10"
|
prompt "J19 pins 1-10"
|
||||||
default PINMUX_OFF_C
|
default APU1_PINMUX_OFF_C
|
||||||
|
|
||||||
config PINMUX_OFF_C
|
config APU1_PINMUX_OFF_C
|
||||||
bool "disable"
|
bool "disable"
|
||||||
|
|
||||||
config PINMUX_GPIO0
|
config APU1_PINMUX_GPIO0
|
||||||
bool "GPIO"
|
bool "GPIO"
|
||||||
|
|
||||||
config PINMUX_UART_C
|
config APU1_PINMUX_UART_C
|
||||||
bool "UART 0x3e8"
|
bool "UART 0x3e8"
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "J19 pins 11-20"
|
prompt "J19 pins 11-20"
|
||||||
default PINMUX_OFF_D
|
default APU1_PINMUX_OFF_D
|
||||||
|
|
||||||
config PINMUX_OFF_D
|
config APU1_PINMUX_OFF_D
|
||||||
bool "disable"
|
bool "disable"
|
||||||
|
|
||||||
config PINMUX_GPIO1
|
config APU1_PINMUX_GPIO1
|
||||||
bool "GPIO"
|
bool "GPIO"
|
||||||
|
|
||||||
config PINMUX_UART_D
|
config APU1_PINMUX_UART_D
|
||||||
bool "UART 0x2e8"
|
bool "UART 0x2e8"
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
@@ -146,16 +146,16 @@ static void config_gpio_mux(void)
|
|||||||
uart = dev_find_slot_pnp(SIO_PORT, NCT5104D_SP3);
|
uart = dev_find_slot_pnp(SIO_PORT, NCT5104D_SP3);
|
||||||
gpio = dev_find_slot_pnp(SIO_PORT, NCT5104D_GPIO0);
|
gpio = dev_find_slot_pnp(SIO_PORT, NCT5104D_GPIO0);
|
||||||
if (uart)
|
if (uart)
|
||||||
uart->enabled = CONFIG_PINMUX_UART_C;
|
uart->enabled = CONFIG_APU1_PINMUX_UART_C;
|
||||||
if (gpio)
|
if (gpio)
|
||||||
gpio->enabled = CONFIG_PINMUX_GPIO0;
|
gpio->enabled = CONFIG_APU1_PINMUX_GPIO0;
|
||||||
|
|
||||||
uart = dev_find_slot_pnp(SIO_PORT, NCT5104D_SP4);
|
uart = dev_find_slot_pnp(SIO_PORT, NCT5104D_SP4);
|
||||||
gpio = dev_find_slot_pnp(SIO_PORT, NCT5104D_GPIO1);
|
gpio = dev_find_slot_pnp(SIO_PORT, NCT5104D_GPIO1);
|
||||||
if (uart)
|
if (uart)
|
||||||
uart->enabled = CONFIG_PINMUX_UART_D;
|
uart->enabled = CONFIG_APU1_PINMUX_UART_D;
|
||||||
if (gpio)
|
if (gpio)
|
||||||
gpio->enabled = CONFIG_PINMUX_GPIO1;
|
gpio->enabled = CONFIG_APU1_PINMUX_GPIO1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user