Angel Pons | 0c58dc6 | 2020-04-03 01:21:09 +0200 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | /* This file is part of the coreboot project. */ |
Angel Pons | 796bd74 | 2019-01-04 00:28:19 +0100 | [diff] [blame] | 3 | |
| 4 | #include <stdint.h> |
| 5 | #include <string.h> |
Angel Pons | 796bd74 | 2019-01-04 00:28:19 +0100 | [diff] [blame] | 6 | #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 Pons | 796bd74 | 2019-01-04 00:28:19 +0100 | [diff] [blame] | 11 | const 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 Pons | 796bd74 | 2019-01-04 00:28:19 +0100 | [diff] [blame] | 28 | void 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 | } |