1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <device/mmio.h>
4 #include <intelblocks/pmc.h>
8 static void ioe_pmc_read_resources(struct device
*dev
)
10 /* Add the fixed MMIO resource */
11 mmio_range(dev
, PWRMBASE
, IOE_PWRM_BASE_ADDRESS
, IOE_PWRM_BASE_SIZE
);
14 static void ioe_pmc_init(struct device
*dev
)
16 if (!CONFIG(USE_PM_ACPI_TIMER
))
17 setbits8(ioe_pmc_mmio_regs() + PCH_PWRM_ACPI_TMR_CTL
, ACPI_TIM_DIS
);
20 struct device_operations ioe_pmc_ops
= {
21 .read_resources
= ioe_pmc_read_resources
,
22 .set_resources
= noop_set_resources
,