soc/intel/cannonlake: Get rid of device_t

Use of device_t has been abandoned in ramstage.

Change-Id: Iea56a6560bb23d48d19211304e57fc08e1c27fd6
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26584
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Elyes HAOUAS 2018-05-27 16:57:24 +02:00 committed by Martin Roth
parent 040aff2745
commit 3c8b5d00c3
6 changed files with 10 additions and 10 deletions

View File

@ -142,7 +142,7 @@ acpi_cstate_t *soc_get_cstate_map(size_t *entries)
ARRAY_SIZE(cstate_set_non_s0ix))]; ARRAY_SIZE(cstate_set_non_s0ix))];
int *set; int *set;
int i; int i;
device_t dev = SA_DEV_ROOT; struct device *dev = SA_DEV_ROOT;
config_t *config = dev->chip_info; config_t *config = dev->chip_info;
int is_s0ix_enable = config->s0ix_enable; int is_s0ix_enable = config->s0ix_enable;
@ -163,7 +163,7 @@ acpi_cstate_t *soc_get_cstate_map(size_t *entries)
void soc_power_states_generation(int core_id, int cores_per_package) void soc_power_states_generation(int core_id, int cores_per_package)
{ {
device_t dev = SA_DEV_ROOT; struct device *dev = SA_DEV_ROOT;
config_t *config = dev->chip_info; config_t *config = dev->chip_info;
if (config->eist_enable) if (config->eist_enable)
/* Generate P-state tables */ /* Generate P-state tables */

View File

@ -140,7 +140,7 @@ void soc_init_pre_device(void *chip_info)
fsp_display_fvi_version_hob(); fsp_display_fvi_version_hob();
} }
static void pci_domain_set_resources(device_t dev) static void pci_domain_set_resources(struct device *dev)
{ {
assign_resources(dev->link_list); assign_resources(dev->link_list);
} }
@ -162,7 +162,7 @@ static struct device_operations cpu_bus_ops = {
.acpi_fill_ssdt_generator = generate_cpu_entries, .acpi_fill_ssdt_generator = generate_cpu_entries,
}; };
static void soc_enable(device_t dev) static void soc_enable(struct device *dev)
{ {
/* Set the operations if it is a special bus type */ /* Set the operations if it is a special bus type */
if (dev->path.type == DEVICE_PATH_DOMAIN) if (dev->path.type == DEVICE_PATH_DOMAIN)

View File

@ -36,7 +36,7 @@ static void soc_fsp_load(void)
static void configure_isst(void) static void configure_isst(void)
{ {
device_t dev = SA_DEV_ROOT; struct device *dev = SA_DEV_ROOT;
config_t *conf = dev->chip_info; config_t *conf = dev->chip_info;
msr_t msr; msr_t msr;
@ -62,7 +62,7 @@ static void configure_isst(void)
static void configure_misc(void) static void configure_misc(void)
{ {
device_t dev = SA_DEV_ROOT; struct device *dev = SA_DEV_ROOT;
config_t *conf = dev->chip_info; config_t *conf = dev->chip_info;
msr_t msr; msr_t msr;
@ -166,7 +166,7 @@ static void configure_c_states(void)
} }
/* All CPUs including BSP will run the following function. */ /* All CPUs including BSP will run the following function. */
void soc_core_init(device_t cpu) void soc_core_init(struct device *cpu)
{ {
/* Clear out pending MCEs */ /* Clear out pending MCEs */
/* TODO(adurbin): This should only be done on a cold boot. Also, some /* TODO(adurbin): This should only be done on a cold boot. Also, some

View File

@ -53,7 +53,7 @@ static void pch_handle_sideband(config_t *config)
static void pch_finalize(void) static void pch_finalize(void)
{ {
device_t dev; struct device *dev;
uint32_t reg32; uint32_t reg32;
uint16_t tcobase, tcocnt; uint16_t tcobase, tcocnt;
uint8_t *pmcbase; uint8_t *pmcbase;

View File

@ -137,7 +137,7 @@ static void pch_power_options(struct device *dev)
static void pmc_init(void *unused) static void pmc_init(void *unused)
{ {
device_t dev = PCH_DEV_PMC; struct device *dev = PCH_DEV_PMC;
config_t *config = dev->chip_info; config_t *config = dev->chip_info;
rtc_init(); rtc_init();

View File

@ -170,7 +170,7 @@ void smm_relocation_handler(int cpu, uintptr_t curr_smbase,
write_smrr(relo_params); write_smrr(relo_params);
} }
static void fill_in_relocation_params(device_t dev, static void fill_in_relocation_params(struct device *dev,
struct smm_relocation_params *params) struct smm_relocation_params *params)
{ {
void *handler_base; void *handler_base;