soc/intel/pantherlake: Remove soc_info.[hc] interface
[coreboot2.git] / src / soc / intel / common / block / ioc / ioc.c
blob639ec90f8f1fc17b178f951a16e29b77f8fa7769
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <device/mmio.h>
4 #include <intelblocks/ioc.h>
5 #include <soc/iomap.h>
7 void ioc_reg_write32(uint32_t offset, uint32_t value)
9 write32p(MCH_BASE_ADDRESS + offset, value);
12 uint32_t ioc_reg_read32(uint32_t offset)
14 return read32p(MCH_BASE_ADDRESS + offset);
17 void ioc_reg_or32(uint32_t offset, uint32_t ordata)
19 uint32_t data32;
21 data32 = read32p(MCH_BASE_ADDRESS + offset);
22 data32 |= ordata;
23 write32p(MCH_BASE_ADDRESS + offset, data32);