blob: 58f969716256265c0518329bc6285dafdead8f40 [file] [log] [blame]
Angel Pons09481b12020-04-03 01:21:13 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Tristan Corrick36932942018-10-31 03:02:11 +13002
Angel Ponsd37b7d82020-07-03 23:52:34 +02003#include <stdint.h>
Tristan Corrick36932942018-10-31 03:02:11 +13004#include <northbridge/intel/haswell/haswell.h>
Angel Pons45f448f2020-07-03 14:46:47 +02005#include <northbridge/intel/haswell/raminit.h>
Tristan Corrick36932942018-10-31 03:02:11 +13006#include <southbridge/intel/lynxpoint/pch.h>
Tristan Corrick36932942018-10-31 03:02:11 +13007
Angel Pons6e1c4712020-07-03 13:05:10 +02008void mainboard_config_rcba(void)
9{
10 RCBA16(D31IR) = DIR_ROUTE(PIRQA, PIRQD, PIRQC, PIRQA);
11 RCBA16(D29IR) = DIR_ROUTE(PIRQH, PIRQD, PIRQA, PIRQC);
12 RCBA16(D28IR) = DIR_ROUTE(PIRQA, PIRQB, PIRQC, PIRQD);
13 RCBA16(D27IR) = DIR_ROUTE(PIRQG, PIRQB, PIRQC, PIRQD);
14 RCBA16(D26IR) = DIR_ROUTE(PIRQA, PIRQF, PIRQC, PIRQD);
15 RCBA16(D25IR) = DIR_ROUTE(PIRQE, PIRQF, PIRQG, PIRQH);
16 RCBA16(D22IR) = DIR_ROUTE(PIRQA, PIRQD, PIRQC, PIRQB);
17 RCBA16(D20IR) = DIR_ROUTE(PIRQA, PIRQB, PIRQC, PIRQD);
18}
Tristan Corrick36932942018-10-31 03:02:11 +130019
Angel Pons90ae0892021-03-12 17:00:52 +010020void mb_get_spd_map(struct spd_info *spdi)
Angel Ponsd37b7d82020-07-03 23:52:34 +020021{
Angel Pons90ae0892021-03-12 17:00:52 +010022 spdi->addresses[0] = 0xa0;
23 spdi->addresses[2] = 0xa4;
Angel Ponsd37b7d82020-07-03 23:52:34 +020024}
25
Angel Ponsa3c6ed02021-02-11 13:59:12 +010026const struct usb2_port_setting mainboard_usb2_ports[MAX_USB2_PORTS] = {
27 /* Length, Enable, OCn#, Location */
28 { 0x0040, 1, 0, USB_PORT_BACK_PANEL },
29 { 0x0040, 1, 0, USB_PORT_BACK_PANEL },
30 { 0x0040, 1, 1, USB_PORT_BACK_PANEL },
31 { 0x0040, 1, 1, USB_PORT_BACK_PANEL },
32 { 0x0040, 1, 2, USB_PORT_BACK_PANEL },
33 { 0x0040, 1, 2, USB_PORT_BACK_PANEL },
34 { 0x0040, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP },
35 { 0x0040, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP },
36 { 0x0040, 1, 4, USB_PORT_BACK_PANEL },
37 { 0x0040, 1, 4, USB_PORT_BACK_PANEL },
38 { 0x0040, 1, 5, USB_PORT_BACK_PANEL },
39 { 0x0040, 1, 5, USB_PORT_BACK_PANEL },
40 { 0x0040, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP },
41 { 0x0040, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP },
42};
Tristan Corrick36932942018-10-31 03:02:11 +130043
Angel Ponsa3c6ed02021-02-11 13:59:12 +010044const struct usb3_port_setting mainboard_usb3_ports[MAX_USB3_PORTS] = {
45 /* Enable, OCn# */
46 { 1, 0 },
47 { 1, 0 },
48 { 0, USB_OC_PIN_SKIP },
49 { 0, USB_OC_PIN_SKIP },
50 { 0, USB_OC_PIN_SKIP },
51 { 0, USB_OC_PIN_SKIP },
52};