From 15c012181d073ff68ee8fb5635ed9bde2b4fe23d Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Tue, 19 Nov 2019 18:54:35 +0100 Subject: drivers/intel/fsp1_0: Drop support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No platform is using this. Change-Id: I3ea6df4d9ce9043755f319f699adc189d754df1f Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/36985 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki Reviewed-by: David Hendricks Reviewed-by: Werner Zeh --- src/cpu/x86/car.c | 44 +------------------------------------------- 1 file changed, 1 insertion(+), 43 deletions(-) (limited to 'src/cpu') diff --git a/src/cpu/x86/car.c b/src/cpu/x86/car.c index d8767ae52e..b2dcdc85a3 100644 --- a/src/cpu/x86/car.c +++ b/src/cpu/x86/car.c @@ -18,9 +18,6 @@ #include #include -#if CONFIG(PLATFORM_USES_FSP1_0) -#include -#endif typedef void (* const car_migration_func_t)(void); extern car_migration_func_t _car_migrate_start; @@ -59,15 +56,8 @@ void *car_get_var_ptr(void *var) return var; } -#if CONFIG(PLATFORM_USES_FSP1_0) - migrated_base = (char *)find_saved_temp_mem( - *(void **)CBMEM_FSP_HOB_PTR); - /* FSP 1.0 migrates the entire DCACHE RAM */ - offset = (char *)var - (char *)CONFIG_DCACHE_RAM_BASE; -#else migrated_base = cbmem_find(CBMEM_ID_CAR_GLOBALS); offset = (char *)var - (char *)_car_start; -#endif if (migrated_base == NULL) die("CAR: Could not find migration base!\n"); @@ -75,37 +65,6 @@ void *car_get_var_ptr(void *var) return &migrated_base[offset]; } -#if CONFIG(PLATFORM_USES_FSP1_0) -/* - * When a CAR_GLOBAL points to target object inside CAR, use relative - * addressing. Such CAR_GLOBAL has to be expicitly accessed using - * car_set_reloc_ptr() and car_get_reloc_ptr() as the stored value is now - * an offset instead of the absolute address (pointer) of the target. - * - * This way discovery of objects that are not CAR_GLOBALs themselves, - * remain discoverable after CAR migration has implicitly happened. - */ -void car_set_reloc_ptr(void *var, void *val) -{ - uintptr_t *offset = car_get_var_ptr(var); - *offset = 0; - - if (val) - *offset = (uintptr_t)offset - (uintptr_t)val; -} - -void *car_get_reloc_ptr(void *var) -{ - uintptr_t *offset = car_get_var_ptr(var); - void *val = NULL; - - if (*offset) - val = (void *)((uintptr_t)offset - *offset); - - return val; -} -#endif - int car_active(void) { return !car_migrated; @@ -135,7 +94,6 @@ static void do_car_migrate_variables(void) static void car_migrate_variables(int is_recovery) { - if (!CONFIG(PLATFORM_USES_FSP1_0)) - do_car_migrate_variables(); + do_car_migrate_variables(); } ROMSTAGE_CBMEM_INIT_HOOK(car_migrate_variables) -- cgit v1.2.3