soc/intel/{cnl,icl}: Use matching type cast
Change-Id: Ie534a05f8d3945492ab5b817522486cdcd3c4cab Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/50932 Reviewed-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
f5d090d19a
commit
9a1853a98c
|
@ -117,7 +117,7 @@ void pmc_set_disb(void)
|
||||||
/* Set the DISB after DRAM init */
|
/* Set the DISB after DRAM init */
|
||||||
uint8_t disb_val;
|
uint8_t disb_val;
|
||||||
/* Only care about bits [23:16] of register GEN_PMCON_A */
|
/* Only care about bits [23:16] of register GEN_PMCON_A */
|
||||||
uint8_t *addr = (void *)(pmc_mmio_regs() + GEN_PMCON_A + 2);
|
uint8_t *addr = (uint8_t *)(pmc_mmio_regs() + GEN_PMCON_A + 2);
|
||||||
|
|
||||||
disb_val = read8(addr);
|
disb_val = read8(addr);
|
||||||
disb_val |= (DISB >> 16);
|
disb_val |= (DISB >> 16);
|
||||||
|
|
|
@ -116,7 +116,7 @@ void pmc_set_disb(void)
|
||||||
/* Set the DISB after DRAM init */
|
/* Set the DISB after DRAM init */
|
||||||
uint8_t disb_val;
|
uint8_t disb_val;
|
||||||
/* Only care about bits [23:16] of register GEN_PMCON_A */
|
/* Only care about bits [23:16] of register GEN_PMCON_A */
|
||||||
uint8_t *addr = (void *)(pmc_mmio_regs() + GEN_PMCON_A + 2);
|
uint8_t *addr = (uint8_t *)(pmc_mmio_regs() + GEN_PMCON_A + 2);
|
||||||
|
|
||||||
disb_val = read8(addr);
|
disb_val = read8(addr);
|
||||||
disb_val |= (DISB >> 16);
|
disb_val |= (DISB >> 16);
|
||||||
|
|
Loading…
Reference in New Issue