/********************************************** * enable the dedicated function in mainboard. **********************************************/ static void mainboard_enable(device_t dev) { printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n"); if (acpi_is_wakeup_s3()) agesawrapper_fchs3earlyrestore(); }
/************************************************* * enable the dedicated function in thatcher board. *************************************************/ static void mainboard_enable(device_t dev) { msr_t msr; printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n"); msr = rdmsr(0xC0011020); msr.lo &= ~(1 << 28); wrmsr(0xC0011020, msr); msr = rdmsr(0xC0011022); msr.lo &= ~(1 << 4); msr.lo &= ~(1 << 13); wrmsr(0xC0011022, msr); msr = rdmsr(0xC0011023); msr.lo &= ~(1 << 23); wrmsr(0xC0011023, msr); /* * The mainboard is the first place that we get control in ramstage. Check * for S3 resume and call the approriate AGESA/CIMx resume functions. */ #if CONFIG_HAVE_ACPI_RESUME acpi_slp_type = acpi_get_sleep_type(); if (acpi_slp_type == 3) agesawrapper_fchs3earlyrestore(); #endif }
/********************************************** * Enable the dedicated functions of the board. **********************************************/ static void mainboard_enable(device_t dev) { printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n"); if (acpi_is_wakeup_s3()) agesawrapper_fchs3earlyrestore(); /* Initialize the PIRQ data structures for consumption */ pirq_setup(); }
static void mainboard_enable(device_t dev) { printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n"); hudson_configure_gevent_smi(EC_SMI_GEVENT, SMI_MODE_SMI, SMI_LVL_HIGH); hudson_enable_smi_generation(); if (acpi_is_wakeup_s3()) agesawrapper_fchs3earlyrestore(); else pavilion_cold_boot_init(); }