Angel Pons | 0fcb1b8 | 2020-04-03 01:21:20 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Kyösti Mälkki | 595ef3d | 2015-05-27 12:44:16 +0300 | [diff] [blame] | 2 | |
Michał Żygowski | af258cc | 2019-12-01 17:42:04 +0100 | [diff] [blame] | 3 | #include <amdblocks/acpimmio.h> |
Mike Banon | bb45f38 | 2020-02-13 15:45:05 +0000 | [diff] [blame] | 4 | #include <bootblock_common.h> |
Fabian Kunkel | 7558dba | 2015-05-25 17:08:17 +0200 | [diff] [blame] | 5 | #include <superio/fintek/common/fintek.h> |
| 6 | #include <superio/fintek/f81866d/f81866d.h> |
Kyösti Mälkki | 7a0aa9a | 2016-12-20 06:43:44 +0200 | [diff] [blame] | 7 | |
Fabian Kunkel | 7558dba | 2015-05-25 17:08:17 +0200 | [diff] [blame] | 8 | #define SERIAL_DEV1 PNP_DEV(0x4e, F81866D_SP1) |
Kyösti Mälkki | 595ef3d | 2015-05-27 12:44:16 +0300 | [diff] [blame] | 9 | |
Mike Banon | bb45f38 | 2020-02-13 15:45:05 +0000 | [diff] [blame] | 10 | void bootblock_mainboard_early_init(void) |
Kyösti Mälkki | 595ef3d | 2015-05-27 12:44:16 +0300 | [diff] [blame] | 11 | { |
Kyösti Mälkki | 7a0aa9a | 2016-12-20 06:43:44 +0200 | [diff] [blame] | 12 | /* Disable PCI-PCI bridge and release GPIO32/33 for other uses. */ |
Mike Banon | bb45f38 | 2020-02-13 15:45:05 +0000 | [diff] [blame] | 13 | pm_write8(0xea, 0x1); |
Kyösti Mälkki | 595ef3d | 2015-05-27 12:44:16 +0300 | [diff] [blame] | 14 | |
Kyösti Mälkki | 7a0aa9a | 2016-12-20 06:43:44 +0200 | [diff] [blame] | 15 | fintek_enable_serial(SERIAL_DEV1, CONFIG_TTYS0_BASE); |
Kyösti Mälkki | 595ef3d | 2015-05-27 12:44:16 +0300 | [diff] [blame] | 16 | } |