summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/fsp/fsp_api.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-09-25 08:00:11 -0600
committerBin Meng <bmeng.cn@gmail.com>2019-10-08 13:50:08 +0800
commit83311886151f80ef24d30f850baece07d08863cb (patch)
treef13bd9053d87780e0c1624b978f9224602e951d9 /arch/x86/include/asm/fsp/fsp_api.h
parent61ba1244b548463dbfb3c5285b6b22e7c772c5bd (diff)
x86: Rename existing FSP code to fsp1
Since there is now a new version of the FSP and it is incompatible with the existing version, move the code into an fsp1 directory. This will allow us to put FSP v2 code into an fsp2 directory. Add a Kconfig which defines which version is in use. Some of the code in this new fsp1/ directory is generic across both FSPv1 and FSPv2. Future patches will address this. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/include/asm/fsp/fsp_api.h')
-rw-r--r--arch/x86/include/asm/fsp/fsp_api.h67
1 files changed, 0 insertions, 67 deletions
diff --git a/arch/x86/include/asm/fsp/fsp_api.h b/arch/x86/include/asm/fsp/fsp_api.h
deleted file mode 100644
index f2d70799f33..00000000000
--- a/arch/x86/include/asm/fsp/fsp_api.h
+++ /dev/null
@@ -1,67 +0,0 @@
-/* SPDX-License-Identifier: Intel */
-/*
- * Copyright (C) 2013, Intel Corporation
- * Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
- */
-
-#ifndef __FSP_API_H__
-#define __FSP_API_H__
-
-#include <linux/linkage.h>
-
-/*
- * FSP common configuration structure.
- * This needs to be included in the platform-specific struct fsp_config_data.
- */
-struct fsp_cfg_common {
- struct fsp_header *fsp_hdr;
- u32 stack_top;
- u32 boot_mode;
-};
-
-/*
- * FspInit continuation function prototype.
- * Control will be returned to this callback function after FspInit API call.
- */
-typedef void (*fsp_continuation_f)(u32 status, void *hob_list);
-
-struct fsp_init_params {
- /* Non-volatile storage buffer pointer */
- void *nvs_buf;
- /* Runtime buffer pointer */
- void *rt_buf;
- /* Continuation function address */
- fsp_continuation_f continuation;
-};
-
-struct common_buf {
- /*
- * Stack top pointer used by the bootloader. The new stack frame will be
- * set up at this location after FspInit API call.
- */
- u32 stack_top;
- u32 boot_mode; /* Current system boot mode */
- void *upd_data; /* User platform configuraiton data region */
- u32 tolum_size; /* Top of low usable memory size (FSP 1.1) */
- u32 reserved[6]; /* Reserved */
-};
-
-enum fsp_phase {
- /* Notification code for post PCI enuermation */
- INIT_PHASE_PCI = 0x20,
- /* Notification code before transfering control to the payload */
- INIT_PHASE_BOOT = 0x40
-};
-
-struct fsp_notify_params {
- /* Notification phase used for NotifyPhase API */
- enum fsp_phase phase;
-};
-
-/* FspInit API function prototype */
-typedef asmlinkage u32 (*fsp_init_f)(struct fsp_init_params *params);
-
-/* FspNotify API function prototype */
-typedef asmlinkage u32 (*fsp_notify_f)(struct fsp_notify_params *params);
-
-#endif