blob: 4021781d103860e0443e664f059d158ac22525cd [file] [log] [blame]
Patrick Georgi02363b52020-05-05 20:48:50 +02001/* This file is part of the coreboot project. */
Tristan Corrick921a4cf2018-08-02 19:41:08 +12002/*
Tristan Corrick921a4cf2018-08-02 19:41:08 +12003 *
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, either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 */
14
Arthur Heymansfa5d0f82019-11-12 19:11:50 +010015#include <bootblock_common.h>
Tristan Corrick921a4cf2018-08-02 19:41:08 +120016#include <device/dram/ddr3.h>
17#include <northbridge/intel/sandybridge/raminit_native.h>
18#include <northbridge/intel/sandybridge/sandybridge.h>
19#include <southbridge/intel/bd82x6x/pch.h>
20#include <superio/nuvoton/common/nuvoton.h>
21#include <superio/nuvoton/nct6776/nct6776.h>
22
23#define SERIAL_DEV PNP_DEV(0x2e, NCT6776_SP1)
24
25const struct southbridge_usb_port mainboard_usb_ports[] = {
26 { 1, 0, 0 },
27 { 1, 0, 0 },
28 { 1, 0, 1 },
29 { 1, 0, 1 },
30 { 1, 0, 2 },
31 { 1, 0, 2 },
32 { 1, 0, 3 },
33 { 1, 0, 3 },
34 { 1, 0, 4 },
35 { 1, 0, 4 },
36 { 1, 0, 5 },
37 { 1, 0, 5 },
38 { 1, 0, 6 },
39 { 1, 0, 6 },
40};
41
Arthur Heymansfa5d0f82019-11-12 19:11:50 +010042void bootblock_mainboard_early_init(void)
Tristan Corrick921a4cf2018-08-02 19:41:08 +120043{
44 nuvoton_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
45}
46
47void mainboard_get_spd(spd_raw_data *spd, bool id_only)
48{
49 read_spd(&spd[0], 0x50, id_only);
50 read_spd(&spd[2], 0x52, id_only);
51}