Duncan Laurie | 0aa06cb | 2014-05-14 17:03:15 -0700 | [diff] [blame] | 1 | /* |
| 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 Laurie | 0aa06cb | 2014-05-14 17:03:15 -0700 | [diff] [blame] | 15 | */ |
| 16 | |
| 17 | #include <stdint.h> |
| 18 | #include <string.h> |
Julius Werner | 4ee4bd5 | 2014-10-20 13:46:39 -0700 | [diff] [blame] | 19 | #include <soc/gpio.h> |
| 20 | #include <soc/pei_data.h> |
| 21 | #include <soc/pei_wrapper.h> |
Duncan Laurie | 0aa06cb | 2014-05-14 17:03:15 -0700 | [diff] [blame] | 22 | |
| 23 | void 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 Laurie | ef57a22 | 2014-06-10 10:03:22 -0700 | [diff] [blame] | 46 | pei_data_usb2_port(pei_data, 7, 0x40, 1, USB_OC_PIN_SKIP, |
Duncan Laurie | 0aa06cb | 2014-05-14 17:03:15 -0700 | [diff] [blame] | 47 | 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 Laurie | ef57a22 | 2014-06-10 10:03:22 -0700 | [diff] [blame] | 51 | 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 Laurie | 0aa06cb | 2014-05-14 17:03:15 -0700 | [diff] [blame] | 53 | } |