summaryrefslogtreecommitdiff
path: root/src/soc/intel/apollolake
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/apollolake')
-rw-r--r--src/soc/intel/apollolake/acpi.c6
-rw-r--r--src/soc/intel/apollolake/cse.c2
-rw-r--r--src/soc/intel/apollolake/pmutil.c2
-rw-r--r--src/soc/intel/apollolake/romstage.c2
-rw-r--r--src/soc/intel/apollolake/systemagent.c4
5 files changed, 8 insertions, 8 deletions
diff --git a/src/soc/intel/apollolake/acpi.c b/src/soc/intel/apollolake/acpi.c
index 811c762ac0..a537b0f42b 100644
--- a/src/soc/intel/apollolake/acpi.c
+++ b/src/soc/intel/apollolake/acpi.c
@@ -77,7 +77,7 @@ void soc_fill_gnvs(struct global_nvs *gnvs)
/* Assign address of PERST_0 if GPIO is defined in devicetree */
if (cfg->prt0_gpio != GPIO_PRT0_UDEF)
- gnvs->prt0 = (uintptr_t) gpio_dwx_address(cfg->prt0_gpio);
+ gnvs->prt0 = (uintptr_t)gpio_dwx_address(cfg->prt0_gpio);
/* Get sdcard cd GPIO portid if GPIO is defined in devicetree.
* Get offset of sdcard cd pin.
@@ -216,7 +216,7 @@ static void acpigen_soc_get_dw0_in_local5(uintptr_t addr)
static int acpigen_soc_get_gpio_val(unsigned int gpio_num, uint32_t mask)
{
assert(gpio_num < TOTAL_PADS);
- uintptr_t addr = (uintptr_t) gpio_dwx_address(gpio_num);
+ uintptr_t addr = (uintptr_t)gpio_dwx_address(gpio_num);
acpigen_soc_get_dw0_in_local5(addr);
@@ -240,7 +240,7 @@ static int acpigen_soc_get_gpio_val(unsigned int gpio_num, uint32_t mask)
static int acpigen_soc_set_gpio_val(unsigned int gpio_num, uint32_t val)
{
assert(gpio_num < TOTAL_PADS);
- uintptr_t addr = (uintptr_t) gpio_dwx_address(gpio_num);
+ uintptr_t addr = (uintptr_t)gpio_dwx_address(gpio_num);
acpigen_soc_get_dw0_in_local5(addr);
diff --git a/src/soc/intel/apollolake/cse.c b/src/soc/intel/apollolake/cse.c
index 01c4c474c2..46bc8fb294 100644
--- a/src/soc/intel/apollolake/cse.c
+++ b/src/soc/intel/apollolake/cse.c
@@ -117,7 +117,7 @@ int save_fpf_state(enum fuse_flash_state state, struct region_device *rdev)
{
uint8_t buff;
- write8(&buff, (uint8_t) state);
+ write8(&buff, (uint8_t)state);
return rdev_writeat(rdev, &buff, 0, sizeof(buff));
}
diff --git a/src/soc/intel/apollolake/pmutil.c b/src/soc/intel/apollolake/pmutil.c
index f4745531fb..878b2a689c 100644
--- a/src/soc/intel/apollolake/pmutil.c
+++ b/src/soc/intel/apollolake/pmutil.c
@@ -221,7 +221,7 @@ int vbnv_cmos_failed(void)
/* STM Support */
uint16_t get_pmbase(void)
{
- return (uint16_t) ACPI_BASE_ADDRESS;
+ return (uint16_t)ACPI_BASE_ADDRESS;
}
void pmc_soc_set_afterg3_en(const bool on)
diff --git a/src/soc/intel/apollolake/romstage.c b/src/soc/intel/apollolake/romstage.c
index 757bad3e1f..b9ec4e2bb0 100644
--- a/src/soc/intel/apollolake/romstage.c
+++ b/src/soc/intel/apollolake/romstage.c
@@ -294,7 +294,7 @@ void platform_fsp_memory_init_params_cb(FSPM_UPD *mupd, uint32_t version)
parse_devicetree_setting(mupd);
/* Do NOT let FSP do any GPIO pad configuration */
- mupd->FspmConfig.PreMemGpioTablePtr = (uintptr_t) NULL;
+ mupd->FspmConfig.PreMemGpioTablePtr = (uintptr_t)NULL;
mupd->FspmConfig.SkipCseRbp = CONFIG(SKIP_CSE_RBP);
diff --git a/src/soc/intel/apollolake/systemagent.c b/src/soc/intel/apollolake/systemagent.c
index f352f8af23..b61f5fabeb 100644
--- a/src/soc/intel/apollolake/systemagent.c
+++ b/src/soc/intel/apollolake/systemagent.c
@@ -70,7 +70,7 @@ int soc_get_uncore_prmmr_base_and_mask(uint64_t *prmrr_base,
printk(BIOS_ERR, "Incorrect PRMRR base hob size\n");
return -1;
}
- *prmrr_base = *(uint64_t *) hob;
+ *prmrr_base = *(uint64_t *)hob;
hob = fsp_find_extension_hob_by_guid(prmrr_size_guid,
&hob_size);
@@ -82,7 +82,7 @@ int soc_get_uncore_prmmr_base_and_mask(uint64_t *prmrr_base,
printk(BIOS_ERR, "Incorrect PRMRR base hob size\n");
return -1;
}
- prmrr_size = *(uint64_t *) hob;
+ prmrr_size = *(uint64_t *)hob;
phys_address_mask = (1ULL << cpu_phys_address_size()) - 1;
*prmrr_mask = phys_address_mask & ~(uint64_t)(prmrr_size - 1);