Angel Pons | 4b42983 | 2020-04-02 23:48:50 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 2 | |
| 3 | #ifndef RAMINIT_H |
| 4 | #define RAMINIT_H |
| 5 | |
Angel Pons | d37b7d8 | 2020-07-03 23:52:34 +0200 | [diff] [blame] | 6 | #include <stdint.h> |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 7 | #include "pei_data.h" |
| 8 | |
Angel Pons | 90ae089 | 2021-03-12 17:00:52 +0100 | [diff] [blame] | 9 | #define SPD_MEMORY_DOWN 0xff |
| 10 | |
| 11 | struct spd_info { |
| 12 | uint8_t addresses[4]; |
| 13 | unsigned int spd_index; |
| 14 | }; |
| 15 | |
Angel Pons | 33b59c9 | 2021-02-11 13:42:20 +0100 | [diff] [blame] | 16 | /* Mainboard-specific USB configuration */ |
| 17 | extern const struct usb2_port_setting mainboard_usb2_ports[MAX_USB2_PORTS]; |
| 18 | extern const struct usb3_port_setting mainboard_usb3_ports[MAX_USB3_PORTS]; |
| 19 | |
Angel Pons | d37b7d8 | 2020-07-03 23:52:34 +0200 | [diff] [blame] | 20 | /* Mainboard callback to fill in the SPD addresses in MRC format */ |
Angel Pons | 90ae089 | 2021-03-12 17:00:52 +0100 | [diff] [blame] | 21 | void mb_get_spd_map(struct spd_info *spdi); |
Angel Pons | d37b7d8 | 2020-07-03 23:52:34 +0200 | [diff] [blame] | 22 | |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 23 | void sdram_initialize(struct pei_data *pei_data); |
Matt DeVillier | 5aaa8ce | 2016-09-02 13:29:17 -0500 | [diff] [blame] | 24 | void setup_sdram_meminfo(struct pei_data *pei_data); |
Angel Pons | fb95555 | 2021-02-11 14:00:33 +0100 | [diff] [blame] | 25 | |
Aaron Durbin | 2ad1dba | 2013-02-07 00:51:18 -0600 | [diff] [blame] | 26 | /* save_mrc_data() must be called after cbmem has been initialized. */ |
| 27 | void save_mrc_data(struct pei_data *pei_data); |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 28 | |
| 29 | #endif /* RAMINIT_H */ |