soc/intel/meteorlake: Drop casts around `soc_read_pmc_base()`
The `soc_read_pmc_base()` function returns an `uintptr_t`, which is then casted to a pointer type for use with `read32()` and/or `write32()`. But since commitb324df6a54
("arch/x86: Provide readXp/writeXp helpers in arch/mmio.h"), the `read32p()` and `write32p()` functions live in `arch/mmio.h`. These functions use the `uintptr_t type for the address parameter instead of a pointer type, and using them with the `soc_read_pmc_base()` function allows dropping the casts to pointer. BUG=none TEST=Build and Boot verified on google/rex Port of 'commitf585c6eeea
("soc/intel: Drop casts around `soc_read_pmc_base()`")' Signed-off-by: Dinesh Gehlot <digehlot@google.com> Change-Id: I914190f2d2d0507c84b19340159990f9b62ce101 Reviewed-on: https://review.coreboot.org/c/coreboot/+/70272 Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-by: Kapil Porwal <kapilporwal@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
e7c1f7da25
commit
5778e06771
|
@ -169,7 +169,7 @@ void soc_fill_fadt(acpi_fadt_t *fadt)
|
||||||
|
|
||||||
uint32_t soc_read_sci_irq_select(void)
|
uint32_t soc_read_sci_irq_select(void)
|
||||||
{
|
{
|
||||||
return read32((void *)soc_read_pmc_base() + IRQ_REG);
|
return read32p(soc_read_pmc_base() + IRQ_REG);
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned long soc_fill_dmar(unsigned long current)
|
static unsigned long soc_fill_dmar(unsigned long current)
|
||||||
|
|
Loading…
Reference in New Issue