void alt_gpi_mask(u16 clr, u16 set) { u16 alt_gp = read_pmbase16(ALT_GP_SMI_EN); alt_gp &= ~clr; alt_gp |= set; write_pmbase16(ALT_GP_SMI_EN, alt_gp); }
/** * @brief read and clear PM1_STS * @return PM1_STS register */ u16 reset_pm1_status(void) { u16 reg16 = read_pmbase16(PM1_STS); /* set status bits are cleared by writing 1 to them */ write_pmbase16(PM1_STS, reg16); return reg16; }
/** * @brief read and clear ALT_GP_SMI_STS * @return ALT_GP_SMI_STS register */ u16 reset_alt_gp_smi_status(void) { u16 reg16; reg16 = read_pmbase16(ALT_GP_SMI_STS); /* set status bits are cleared by writing 1 to them */ write_pmbase16(ALT_GP_SMI_STS, reg16); return reg16; }
static void pch_generic_setup(void) { RCBA32(GCS) = RCBA32(GCS) | (1 << 5); /* No reset */ write_pmbase16(TCO1_CNT, 1 << 11); /* halt timer */ }