summaryrefslogtreecommitdiff
path: root/src/mainboard/google/rauru/bootblock.c
blob: e0717aa57a0524eefe9d6935de018d6dae600302 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* SPDX-License-Identifier: GPL-2.0-only */

#include <bootblock_common.h>
#include <gpio.h>
#include <soc/pcie.h>
#include <soc/spi.h>

#include "gpio.h"

static void usb3_hub_reset(void)
{
	gpio_output(GPIO(USB_RST), 1);
}

void bootblock_mainboard_init(void)
{
	if (CONFIG(PCI))
		mtk_pcie_pre_init();

	mtk_snfc_init();
	usb3_hub_reset();
	setup_chromeos_gpios();
}