Angel Pons | 3b0a489 | 2020-05-12 01:36:30 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <stdint.h> |
| 4 | #include <northbridge/intel/haswell/haswell.h> |
| 5 | #include <northbridge/intel/haswell/raminit.h> |
| 6 | #include <southbridge/intel/lynxpoint/pch.h> |
| 7 | |
| 8 | void 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, PIRQA, PIRQA, PIRQA); |
| 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 | } |
| 19 | |
Angel Pons | 90ae089 | 2021-03-12 17:00:52 +0100 | [diff] [blame] | 20 | void mb_get_spd_map(struct spd_info *spdi) |
Angel Pons | 3b0a489 | 2020-05-12 01:36:30 +0200 | [diff] [blame] | 21 | { |
Angel Pons | 90ae089 | 2021-03-12 17:00:52 +0100 | [diff] [blame] | 22 | spdi->addresses[0] = 0xa0; |
| 23 | spdi->addresses[2] = 0xa4; |
Angel Pons | 3b0a489 | 2020-05-12 01:36:30 +0200 | [diff] [blame] | 24 | } |
| 25 | |
Angel Pons | a3c6ed0 | 2021-02-11 13:59:12 +0100 | [diff] [blame] | 26 | const 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, USB_OC_PIN_SKIP, USB_PORT_BACK_PANEL }, |
| 32 | { 0x0040, 1, USB_OC_PIN_SKIP, USB_PORT_BACK_PANEL }, |
| 33 | { 0x0040, 1, 2, USB_PORT_BACK_PANEL }, |
| 34 | { 0x0040, 1, 3, USB_PORT_BACK_PANEL }, |
| 35 | { 0x0040, 1, 3, USB_PORT_BACK_PANEL }, |
| 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, 1, 6, USB_PORT_BACK_PANEL }, |
| 41 | { 0x0040, 1, 6, USB_PORT_BACK_PANEL }, |
| 42 | }; |
Angel Pons | 3b0a489 | 2020-05-12 01:36:30 +0200 | [diff] [blame] | 43 | |
Angel Pons | a3c6ed0 | 2021-02-11 13:59:12 +0100 | [diff] [blame] | 44 | const struct usb3_port_setting mainboard_usb3_ports[MAX_USB3_PORTS] = { |
| 45 | { 1, 0 }, |
| 46 | { 1, 0 }, |
| 47 | { 1, 1 }, |
| 48 | { 1, 1 }, |
| 49 | { 1, 2 }, |
| 50 | { 1, 2 }, |
| 51 | }; |