blob: 0acabe06c647bbe98078419951bf20b33006f85c [file] [log] [blame]
Angel Pons0fcb1b82020-04-03 01:21:20 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Kyösti Mälkki595ef3d2015-05-27 12:44:16 +03002
Michał Żygowskiaf258cc2019-12-01 17:42:04 +01003#include <amdblocks/acpimmio.h>
Mike Banonbb45f382020-02-13 15:45:05 +00004#include <bootblock_common.h>
Fabian Kunkel7558dba2015-05-25 17:08:17 +02005#include <superio/fintek/common/fintek.h>
6#include <superio/fintek/f81866d/f81866d.h>
Kyösti Mälkki7a0aa9a2016-12-20 06:43:44 +02007
Fabian Kunkel7558dba2015-05-25 17:08:17 +02008#define SERIAL_DEV1 PNP_DEV(0x4e, F81866D_SP1)
Kyösti Mälkki595ef3d2015-05-27 12:44:16 +03009
Mike Banonbb45f382020-02-13 15:45:05 +000010void bootblock_mainboard_early_init(void)
Kyösti Mälkki595ef3d2015-05-27 12:44:16 +030011{
Kyösti Mälkki7a0aa9a2016-12-20 06:43:44 +020012 /* Disable PCI-PCI bridge and release GPIO32/33 for other uses. */
Mike Banonbb45f382020-02-13 15:45:05 +000013 pm_write8(0xea, 0x1);
Kyösti Mälkki595ef3d2015-05-27 12:44:16 +030014
Kyösti Mälkki7a0aa9a2016-12-20 06:43:44 +020015 fintek_enable_serial(SERIAL_DEV1, CONFIG_TTYS0_BASE);
Kyösti Mälkki595ef3d2015-05-27 12:44:16 +030016}