soc/intel/apollolake: Remove unused CAR_GLOBAL variable
Also move all local variable declaration at starting of function block. Change-Id: I774485a23b4b7d96a8dbd837da45553251dff3b0 Signed-off-by: Subrata Banik <subrata.banik@intel.com> Reviewed-on: https://review.coreboot.org/18949 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
6e260fc873
commit
c790850ebe
|
@ -58,7 +58,6 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static size_t bios_start CAR_GLOBAL;
|
|
||||||
static size_t bios_size CAR_GLOBAL;
|
static size_t bios_size CAR_GLOBAL;
|
||||||
|
|
||||||
static struct mem_region_device shadow_dev CAR_GLOBAL;
|
static struct mem_region_device shadow_dev CAR_GLOBAL;
|
||||||
|
@ -66,7 +65,8 @@ static struct xlate_region_device real_dev CAR_GLOBAL;
|
||||||
|
|
||||||
static void bios_mmap_init(void)
|
static void bios_mmap_init(void)
|
||||||
{
|
{
|
||||||
size_t size;
|
size_t size, start, bios_end, bios_mapped_size;
|
||||||
|
uintptr_t base;
|
||||||
|
|
||||||
size = car_get_var(bios_size);
|
size = car_get_var(bios_size);
|
||||||
|
|
||||||
|
@ -74,9 +74,6 @@ static void bios_mmap_init(void)
|
||||||
if (size != 0)
|
if (size != 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
size_t start, bios_end, bios_mapped_size;
|
|
||||||
uintptr_t base;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* BIOS_BFPREG provides info about BIOS Flash Primary Region
|
* BIOS_BFPREG provides info about BIOS Flash Primary Region
|
||||||
* Base and Limit.
|
* Base and Limit.
|
||||||
|
@ -110,7 +107,6 @@ static void bios_mmap_init(void)
|
||||||
start, bios_mapped_size,
|
start, bios_mapped_size,
|
||||||
CONFIG_ROM_SIZE);
|
CONFIG_ROM_SIZE);
|
||||||
|
|
||||||
car_set_var(bios_start, start);
|
|
||||||
car_set_var(bios_size, size);
|
car_set_var(bios_size, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue