x86: Move common FSP code into a common location

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
Simon Glass 2015-01-27 22:13:36 -07:00
parent ef565a53ea
commit 1021af4ded
18 changed files with 16 additions and 8 deletions

View File

@ -5,5 +5,5 @@
# #
obj-y += tnc_car.o tnc_dram.o tnc.o topcliff.o obj-y += tnc_car.o tnc_dram.o tnc.o topcliff.o
obj-y += fsp_configs.o fsp_support.o obj-y += fsp_configs.o
obj-$(CONFIG_PCI) += tnc_pci.o obj-$(CONFIG_PCI) += tnc_pci.o

View File

@ -6,7 +6,7 @@
*/ */
#include <common.h> #include <common.h>
#include <asm/arch/fsp/fsp_support.h> #include <asm/fsp/fsp_support.h>
void update_fsp_upd(struct upd_region *fsp_upd) void update_fsp_upd(struct upd_region *fsp_upd)
{ {

View File

@ -9,7 +9,7 @@
#include <asm/pci.h> #include <asm/pci.h>
#include <asm/post.h> #include <asm/post.h>
#include <asm/arch/tnc.h> #include <asm/arch/tnc.h>
#include <asm/arch/fsp/fsp_support.h> #include <asm/fsp/fsp_support.h>
#include <asm/processor.h> #include <asm/processor.h>
static void unprotect_spi_flash(void) static void unprotect_spi_flash(void)

View File

@ -5,7 +5,7 @@
*/ */
#include <common.h> #include <common.h>
#include <asm/arch/fsp/fsp_support.h> #include <asm/fsp/fsp_support.h>
#include <asm/e820.h> #include <asm/e820.h>
#include <asm/post.h> #include <asm/post.h>

View File

@ -7,7 +7,7 @@
#include <common.h> #include <common.h>
#include <pci.h> #include <pci.h>
#include <asm/pci.h> #include <asm/pci.h>
#include <asm/arch/fsp/fsp_support.h> #include <asm/fsp/fsp_support.h>
DECLARE_GLOBAL_DATA_PTR; DECLARE_GLOBAL_DATA_PTR;

View File

@ -16,7 +16,7 @@
#include "fsp_platform.h" #include "fsp_platform.h"
#include "fsp_infoheader.h" #include "fsp_infoheader.h"
#include "fsp_bootmode.h" #include "fsp_bootmode.h"
#include "fsp_vpd.h" #include <asm/arch/fsp/fsp_vpd.h>
struct shared_data { struct shared_data {
struct fsp_header *fsp_hdr; struct fsp_header *fsp_hdr;

View File

@ -25,6 +25,7 @@ obj-y += string.o
obj-$(CONFIG_SYS_X86_TSC_TIMER) += tsc_timer.o obj-$(CONFIG_SYS_X86_TSC_TIMER) += tsc_timer.o
obj-$(CONFIG_VIDEO_VGA) += video.o obj-$(CONFIG_VIDEO_VGA) += video.o
obj-$(CONFIG_CMD_ZBOOT) += zimage.o obj-$(CONFIG_CMD_ZBOOT) += zimage.o
obj-$(CONFIG_HAVE_FSP) += fsp/
extra-$(CONFIG_USE_PRIVATE_LIBGCC) := lib.a extra-$(CONFIG_USE_PRIVATE_LIBGCC) := lib.a

View File

@ -7,7 +7,7 @@
#include <common.h> #include <common.h>
#include <command.h> #include <command.h>
#include <linux/compiler.h> #include <linux/compiler.h>
#include <asm/arch/fsp/fsp_support.h> #include <asm/fsp/fsp_support.h>
DECLARE_GLOBAL_DATA_PTR; DECLARE_GLOBAL_DATA_PTR;

View File

@ -0,0 +1,7 @@
#
# Copyright (C) 2015 Google, Inc
#
# SPDX-License-Identifier: GPL-2.0+
#
obj-y += fsp_support.o

View File

@ -6,7 +6,7 @@
*/ */
#include <common.h> #include <common.h>
#include <asm/arch/fsp/fsp_support.h> #include <asm/fsp/fsp_support.h>
#include <asm/post.h> #include <asm/post.h>
/** /**