treewide: replace GPLv2 long form headers with SPDX header
[coreboot.git] / src / mainboard / google / cheza / mainboard.c
blob601cff1597347f8e76390cd8f63149307f407680
1 /* This file is part of the coreboot project. */
2 /* SPDX-License-Identifier: GPL-2.0-only */
4 #include <device/device.h>
5 #include <gpio.h>
6 #include <soc/usb.h>
8 static struct usb_board_data usb1_board_data = {
9 .pll_bias_control_2 = 0x28,
10 .imp_ctrl1 = 0x08,
11 .port_tune1 = 0x20,
14 static void setup_usb(void)
17 * Primary USB is used only for DP functionality on cheza platform.
18 * Hence Setting up only Secondary USB DWC3 controller.
20 setup_usb_host1(&usb1_board_data);
22 gpio_output(GPIO(120), 1); /* Deassert HUB_RST_L to enable hub. */
25 static void mainboard_init(struct device *dev)
27 setup_usb();
30 static void mainboard_enable(struct device *dev)
32 dev->ops->init = &mainboard_init;
35 struct chip_operations mainboard_ops = {
36 .name = CONFIG_MAINBOARD_PART_NUMBER,
37 .enable_dev = mainboard_enable,