blob: 29a29774448e0a8e71a2560df9d0edb9321a9b29 [file] [log] [blame]
Angel Pons796bd742019-01-04 00:28:19 +01001/*
2 * This file is part of the coreboot project.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 2 of the License.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
14#include <stdint.h>
15#include <string.h>
Angel Pons796bd742019-01-04 00:28:19 +010016#include <northbridge/intel/sandybridge/sandybridge.h>
17#include <northbridge/intel/sandybridge/raminit_native.h>
18#include <southbridge/intel/bd82x6x/pch.h>
19#include <cbfs.h>
20
Angel Pons796bd742019-01-04 00:28:19 +010021const struct southbridge_usb_port mainboard_usb_ports[] = {
22 { 1, 0, -1 },
23 { 1, 0, -1 },
24 { 1, 0, -1 },
25 { 1, 0, -1 },
26 { 1, 0, -1 },
27 { 1, 0, -1 },
28 { 1, 0, -1 },
29 { 1, 0, -1 },
30 { 1, 0, -1 },
31 { 1, 0, -1 },
32 { 1, 0, -1 },
33 { 1, 0, -1 },
34 { 1, 0, -1 },
35 { 1, 0, -1 },
36};
37
Angel Pons796bd742019-01-04 00:28:19 +010038void mainboard_get_spd(spd_raw_data *spd, bool id_only)
39{
40 void *spd_file;
41 size_t spd_file_len = 0;
42 spd_file = cbfs_boot_map_with_leak("spd.bin", CBFS_TYPE_SPD,
43 &spd_file_len);
44 if (spd_file && spd_file_len >= 1024) {
45 int i;
46 for (i = 0; i < 4; i++)
47 memcpy(&spd[i], spd_file + 256 * i, 128);
48 }
49}