blob: 4941e2d74f09343cfa6106b79a993ed83c2e1af0 [file] [log] [blame]
Simon Glass2cf3a5a2019-12-06 21:42:22 -07001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright 2019 Google LLC
4 */
5
6#ifndef __ASM_FSP_API_H
7#define __ASM_FSP_API_H
8
Simon Glass655306c2020-05-10 11:39:58 -06009#include <linux/linkage.h>
10
Simon Glass2cf3a5a2019-12-06 21:42:22 -070011enum fsp_phase {
12 /* Notification code for post PCI enuermation */
13 INIT_PHASE_PCI = 0x20,
14 /* Notification code before transferring control to the payload */
15 INIT_PHASE_BOOT = 0x40
16};
17
18struct fsp_notify_params {
19 /* Notification phase used for NotifyPhase API */
20 enum fsp_phase phase;
21};
22
23/* FspNotify API function prototype */
24typedef asmlinkage u32 (*fsp_notify_f)(struct fsp_notify_params *params);
25
26#endif