1 /* This file is part of the coreboot project. */
2 /* SPDX-License-Identifier: GPL-2.0-only */
4 #include <device/device.h>
5 #include <vendorcode/google/chromeos/chromeos.h>
8 static struct usb_board_data usb1_board_data
= {
9 .parameter_override_x0
= 0x63,
10 .parameter_override_x1
= 0x03,
11 .parameter_override_x0
= 0x1d,
12 .parameter_override_x1
= 0x03,
15 static void setup_usb(void)
17 /* Setting Secondary USB controller */
18 setup_usb_host(HSUSB_HS_PORT_1
, &usb1_board_data
);
21 static void mainboard_init(struct device
*dev
)
23 if (CONFIG(CHROMEOS
)) {
24 /* Copy WIFI calibration data into CBMEM. */
25 cbmem_add_vpd_calibration_data();
31 static void mainboard_enable(struct device
*dev
)
33 dev
->ops
->init
= &mainboard_init
;
36 struct chip_operations mainboard_ops
= {
37 .name
= CONFIG_MAINBOARD_PART_NUMBER
,
38 .enable_dev
= mainboard_enable
,