blob: 5f6e266c0cd9fc1ec8b71d206344664041fb10eb [file] [log] [blame]
Patrick Georgi02363b52020-05-05 20:48:50 +02001/* This file is part of the coreboot project. */
Patrick Georgiac959032020-05-05 22:49:26 +02002/* SPDX-License-Identifier: GPL-2.0-or-later */
Nicola Corna1bea5b72017-03-03 18:04:48 +01003
4#include <stdint.h>
Kyösti Mälkkif1b58b72019-03-01 13:43:02 +02005#include <device/pci_ops.h>
Nicola Corna1bea5b72017-03-03 18:04:48 +01006#include <device/pci_def.h>
Elyes HAOUAS4ad14462018-06-16 18:29:33 +02007#include <northbridge/intel/sandybridge/sandybridge.h>
8#include <northbridge/intel/sandybridge/raminit_native.h>
9#include <southbridge/intel/bd82x6x/pch.h>
10
Arthur Heymans2b28a162019-11-12 17:21:08 +010011void mainboard_pch_lpc_setup(void)
Nicola Corna1bea5b72017-03-03 18:04:48 +010012{
Nicola Corna1bea5b72017-03-03 18:04:48 +010013 pci_write_config32(PCI_DEV(0, 0x1f, 0), 0xac, 0x00010000);
14}
15
Nicola Corna1bea5b72017-03-03 18:04:48 +010016const struct southbridge_usb_port mainboard_usb_ports[] = {
17 { 1, 0, 0 },
18 { 1, 0, 0 },
19 { 1, 0, 1 },
20 { 1, 0, 1 },
21 { 1, 0, 2 },
22 { 1, 0, 2 },
23 { 1, 0, 3 },
24 { 1, 0, 3 },
25 { 1, 0, 4 },
26 { 1, 0, 4 },
27 { 1, 0, 6 },
28 { 1, 0, 5 },
29 { 1, 0, 5 },
30 { 1, 0, 6 },
31};
32
Nicola Corna1bea5b72017-03-03 18:04:48 +010033void mainboard_get_spd(spd_raw_data *spd, bool id_only)
34{
35 read_spd(&spd[0], 0x50, id_only);
36 read_spd(&spd[2], 0x51, id_only);
37}