soc/intel/common/ebda: Drop code

There is no need to use EBDA to pass cbmem_top from romstage to
later stages.

Change-Id: I46e2459ff3c785f530cabc5930004ef920ffc89a
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36362
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Michael Niewöhner
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Arthur Heymans 2019-10-26 19:28:45 +02:00
parent cf5af24a94
commit 005e25de0f
7 changed files with 0 additions and 161 deletions

View File

@ -1,26 +0,0 @@
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2017 Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef SOC_EBDA_H
#define SOC_EBDA_H
#include <stdint.h>
struct ebda_config {
uint32_t signature; /* EBDA signature */
uint32_t cbmem_top; /* coreboot memory start */
};
#endif

View File

@ -1,5 +0,0 @@
config SOC_INTEL_COMMON_BLOCK_EBDA
bool
select EARLY_EBDA_INIT
help
Intel Processor common EBDA library support

View File

@ -1,3 +0,0 @@
romstage-$(CONFIG_SOC_INTEL_COMMON_BLOCK_EBDA) += ebda.c
ramstage-$(CONFIG_SOC_INTEL_COMMON_BLOCK_EBDA) += ebda.c
postcar-$(CONFIG_SOC_INTEL_COMMON_BLOCK_EBDA) += ebda.c

View File

@ -1,37 +0,0 @@
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2017 Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#include <arch/ebda.h>
#include <intelblocks/ebda.h>
#include <string.h>
void initialize_ebda_area(void)
{
struct ebda_config ebda_cfg;
/* Initialize EBDA area early during romstage. */
setup_default_ebda();
ebda_cfg.signature = EBDA_SIGNATURE;
fill_memmap_ebda(&ebda_cfg);
write_ebda_data(&ebda_cfg, sizeof(ebda_cfg));
}
void retrieve_ebda_object(struct ebda_config *cfg)
{
read_ebda_data(cfg, sizeof(*cfg));
if (cfg->signature != EBDA_SIGNATURE)
memset(cfg, 0, sizeof(*cfg));
}

View File

@ -1,38 +0,0 @@
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2017 Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef SOC_INTEL_COMMON_BLOCK_EBDA_H
#define SOC_INTEL_COMMON_BLOCK_EBDA_H
#define EBDA_SIGNATURE 0xebdaebda
/* EBDA structure */
struct ebda_config {
uint32_t signature; /* EBDA signature */
uint32_t cbmem_top; /* coreboot memory start */
};
/* Initialize EBDA and store structure into EBDA area */
void initialize_ebda_area(void);
/*
* Fill the ebda object pointed to by cfg. Object will be zero filled
* if signature check fails. */
void retrieve_ebda_object(struct ebda_config *cfg);
/* API for filling ebda with data in romstage */
void fill_memmap_ebda(struct ebda_config *cfg);
#endif

View File

@ -1,26 +0,0 @@
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2018 Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef SOC_EBDA_H
#define SOC_EBDA_H
#include <stdint.h>
struct ebda_config {
uint32_t signature; /* EBDA signature */
uint32_t cbmem_top; /* coreboot memory start */
};
#endif

View File

@ -1,26 +0,0 @@
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2017 Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef SOC_EBDA_H
#define SOC_EBDA_H
#include <stdint.h>
struct ebda_config {
uint32_t signature; /* EBDA signature */
uint32_t cbmem_top; /* coreboot memory start */
};
#endif