blob: 7eb39805441057eb0cedb48f58313e244ed5685e [file] [log] [blame]
Angel Pons4b429832020-04-02 23:48:50 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Aaron Durbin76c37002012-10-30 09:03:43 -05002
3#ifndef RAMINIT_H
4#define RAMINIT_H
5
Angel Ponsd37b7d82020-07-03 23:52:34 +02006#include <stdint.h>
Aaron Durbin76c37002012-10-30 09:03:43 -05007#include "pei_data.h"
8
Angel Pons90ae0892021-03-12 17:00:52 +01009#define SPD_MEMORY_DOWN 0xff
10
11struct spd_info {
12 uint8_t addresses[4];
13 unsigned int spd_index;
14};
15
Angel Pons33b59c92021-02-11 13:42:20 +010016/* Mainboard-specific USB configuration */
17extern const struct usb2_port_setting mainboard_usb2_ports[MAX_USB2_PORTS];
18extern const struct usb3_port_setting mainboard_usb3_ports[MAX_USB3_PORTS];
19
Angel Ponsd37b7d82020-07-03 23:52:34 +020020/* Mainboard callback to fill in the SPD addresses in MRC format */
Angel Pons90ae0892021-03-12 17:00:52 +010021void mb_get_spd_map(struct spd_info *spdi);
Angel Ponsd37b7d82020-07-03 23:52:34 +020022
Angel Ponsd99b6932021-03-12 17:37:42 +010023void perform_raminit(const int s3resume);
Aaron Durbin76c37002012-10-30 09:03:43 -050024
25#endif /* RAMINIT_H */