blob: 319914fe7bd95d02948a3c19fbf3910edc2d0f5d [file] [log] [blame]
Angel Pons5c596802020-04-03 01:21:01 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Mike Banone3229a52020-02-13 15:34:24 +00002
3#include <amdblocks/acpimmio.h>
Elyes HAOUAS864d1cf2020-09-12 10:21:16 +02004#include <arch/io.h>
Mike Banone3229a52020-02-13 15:34:24 +00005#include <bootblock_common.h>
Mike Banone3229a52020-02-13 15:34:24 +00006
7void bootblock_mainboard_early_init(void)
8{
9 int i;
Mike Banone3229a52020-02-13 15:34:24 +000010
11 /* Disable PCI-PCI bridge and release GPIO32/33 for other uses. */
12 pm_write8(0xea, 0x1);
13
14 /* On Larne, after LpcClkDrvSth is set, it needs some time to be stable, because of the buffer ICS551M */
15 for (i = 0; i < 200000; i++)
Arthur Heymansa74504b2022-03-24 00:09:14 +010016 inb(0xcd6);
Mike Banone3229a52020-02-13 15:34:24 +000017}