blob: 9aa5ef4cca468a8daa5c9244e3a3643ad66625ed [file] [log] [blame]
Angel Pons0c58dc62020-04-03 01:21:09 +02001/* SPDX-License-Identifier: GPL-2.0-only */
2/* This file is part of the coreboot project. */
Angel Pons796bd742019-01-04 00:28:19 +01003
4#include <stdint.h>
5#include <string.h>
Angel Pons796bd742019-01-04 00:28:19 +01006#include <northbridge/intel/sandybridge/sandybridge.h>
7#include <northbridge/intel/sandybridge/raminit_native.h>
8#include <southbridge/intel/bd82x6x/pch.h>
9#include <cbfs.h>
10
Angel Pons796bd742019-01-04 00:28:19 +010011const struct southbridge_usb_port mainboard_usb_ports[] = {
12 { 1, 0, -1 },
13 { 1, 0, -1 },
14 { 1, 0, -1 },
15 { 1, 0, -1 },
16 { 1, 0, -1 },
17 { 1, 0, -1 },
18 { 1, 0, -1 },
19 { 1, 0, -1 },
20 { 1, 0, -1 },
21 { 1, 0, -1 },
22 { 1, 0, -1 },
23 { 1, 0, -1 },
24 { 1, 0, -1 },
25 { 1, 0, -1 },
26};
27
Angel Pons796bd742019-01-04 00:28:19 +010028void mainboard_get_spd(spd_raw_data *spd, bool id_only)
29{
30 void *spd_file;
31 size_t spd_file_len = 0;
32 spd_file = cbfs_boot_map_with_leak("spd.bin", CBFS_TYPE_SPD,
33 &spd_file_len);
34 if (spd_file && spd_file_len >= 1024) {
35 int i;
36 for (i = 0; i < 4; i++)
37 memcpy(&spd[i], spd_file + 256 * i, 128);
38 }
39}