blob: 0b0e941639f6a7d3b718bf7d48f4ea8374518f55 [file] [log] [blame]
Duncan Laurie0aa06cb2014-05-14 17:03:15 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2007-2010 coresystems GmbH
5 * Copyright (C) 2012 Google Inc.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2 of the License.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
Duncan Laurie0aa06cb2014-05-14 17:03:15 -070015 */
16
17#include <stdint.h>
18#include <string.h>
Julius Werner4ee4bd52014-10-20 13:46:39 -070019#include <soc/gpio.h>
20#include <soc/pei_data.h>
21#include <soc/pei_wrapper.h>
Duncan Laurie0aa06cb2014-05-14 17:03:15 -070022
23void mainboard_fill_pei_data(struct pei_data *pei_data)
24{
25 /* One installed DIMM per channel */
26 pei_data->dimm_channel0_disabled = 2;
27 pei_data->dimm_channel1_disabled = 2;
28
29 pei_data->spd_addresses[0] = 0xa2;
30 pei_data->spd_addresses[2] = 0xa2;
31
32 pei_data_usb2_port(pei_data, 0, 0x40, 1, USB_OC_PIN_SKIP,
33 USB_PORT_FRONT_PANEL);
34 pei_data_usb2_port(pei_data, 1, 0x40, 1, USB_OC_PIN_SKIP,
35 USB_PORT_FRONT_PANEL);
36 pei_data_usb2_port(pei_data, 2, 0x40, 1, USB_OC_PIN_SKIP,
37 USB_PORT_FRONT_PANEL);
38 pei_data_usb2_port(pei_data, 3, 0x40, 1, USB_OC_PIN_SKIP,
39 USB_PORT_FRONT_PANEL);
40 pei_data_usb2_port(pei_data, 4, 0x40, 1, USB_OC_PIN_SKIP,
41 USB_PORT_FRONT_PANEL);
42 pei_data_usb2_port(pei_data, 5, 0x40, 1, USB_OC_PIN_SKIP,
43 USB_PORT_FRONT_PANEL);
44 pei_data_usb2_port(pei_data, 6, 0x40, 1, USB_OC_PIN_SKIP,
45 USB_PORT_FRONT_PANEL);
Duncan Laurieef57a222014-06-10 10:03:22 -070046 pei_data_usb2_port(pei_data, 7, 0x40, 1, USB_OC_PIN_SKIP,
Duncan Laurie0aa06cb2014-05-14 17:03:15 -070047 USB_PORT_FRONT_PANEL);
48
49 pei_data_usb3_port(pei_data, 0, 1, USB_OC_PIN_SKIP, 0);
50 pei_data_usb3_port(pei_data, 1, 1, USB_OC_PIN_SKIP, 0);
Duncan Laurieef57a222014-06-10 10:03:22 -070051 pei_data_usb3_port(pei_data, 2, 1, USB_OC_PIN_SKIP, 0);
52 pei_data_usb3_port(pei_data, 3, 1, USB_OC_PIN_SKIP, 0);
Duncan Laurie0aa06cb2014-05-14 17:03:15 -070053}