soc/amd/picasso: Update UARTs
Add a function to uart.c to ensure the right IOMux settings are programmed for the console UART. Update Kconfig to reflect the new addresses. Give the user the ability to downclock the UARTs' refclock to 1.8342MHz. Add the abiltiy to use an APU UART at a legacy I/O address. Update the AOAC register configuration for the two additional UARTs. Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com> Change-Id: I74579674544f0edd2c0e6c4963270b442668e62f Reviewed-on: https://review.coreboot.org/c/coreboot/+/33767 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
committed by
Martin Roth
parent
0d441daef6
commit
c0b8d0d5b5
@@ -40,6 +40,8 @@
|
||||
#define FCH_AOAC_UART_FOR_CONSOLE \
|
||||
(CONFIG_UART_FOR_CONSOLE == 0 ? FCH_AOAC_DEV_UART0 \
|
||||
: CONFIG_UART_FOR_CONSOLE == 1 ? FCH_AOAC_DEV_UART1 \
|
||||
: CONFIG_UART_FOR_CONSOLE == 2 ? FCH_AOAC_DEV_UART2 \
|
||||
: CONFIG_UART_FOR_CONSOLE == 3 ? FCH_AOAC_DEV_UART3 \
|
||||
: -1)
|
||||
#if FCH_AOAC_UART_FOR_CONSOLE == -1
|
||||
# error Unsupported UART_FOR_CONSOLE chosen
|
||||
@@ -282,6 +284,8 @@ void fch_pre_init(void)
|
||||
sb_enable_legacy_io();
|
||||
enable_aoac_devices();
|
||||
sb_reset_i2c_slaves();
|
||||
if (CONFIG(PICASSO_UART))
|
||||
set_uart_config(CONFIG_UART_FOR_CONSOLE);
|
||||
}
|
||||
|
||||
static void print_num_status_bits(int num_bits, uint32_t status,
|
||||
@@ -463,6 +467,8 @@ static void set_sb_final_nvs(void)
|
||||
gnvs->aoac.ic4e = is_aoac_device_enabled(FCH_AOAC_DEV_I2C4);
|
||||
gnvs->aoac.ut0e = is_aoac_device_enabled(FCH_AOAC_DEV_UART0);
|
||||
gnvs->aoac.ut1e = is_aoac_device_enabled(FCH_AOAC_DEV_UART1);
|
||||
gnvs->aoac.ut2e = is_aoac_device_enabled(FCH_AOAC_DEV_UART2);
|
||||
gnvs->aoac.ut3e = is_aoac_device_enabled(FCH_AOAC_DEV_UART3);
|
||||
gnvs->aoac.espi = 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user