Compare commits
5 Commits
f450af3321
...
2023-09-08
Author | SHA1 | Date | |
---|---|---|---|
|
705e7fd610 | ||
|
1cb13106c9 | ||
|
254e7dca82 | ||
|
f989ae22c9 | ||
|
58be66945f |
@@ -57,18 +57,22 @@ static void init_store(void *unused)
|
|||||||
|
|
||||||
printk(BIOS_INFO, "SMMSTORE: Setting up SMI handler\n");
|
printk(BIOS_INFO, "SMMSTORE: Setting up SMI handler\n");
|
||||||
|
|
||||||
/* Issue SMI using APM to update the com buffer and to lock the SMMSTORE */
|
for (int retries = 0; retries < 3; retries++) {
|
||||||
__asm__ __volatile__ (
|
/* Issue SMI using APM to update the com buffer and to lock the SMMSTORE */
|
||||||
"outb %%al, %%dx"
|
__asm__ __volatile__ (
|
||||||
: "=a" (eax)
|
"outb %%al, %%dx"
|
||||||
: "a" ((SMMSTORE_CMD_INIT << 8) | APM_CNT_SMMSTORE),
|
: "=a" (eax)
|
||||||
"b" (ebx),
|
: "a" ((SMMSTORE_CMD_INIT << 8) | APM_CNT_SMMSTORE),
|
||||||
"d" (APM_CNT)
|
"b" (ebx),
|
||||||
: "memory");
|
"d" (APM_CNT)
|
||||||
|
: "memory");
|
||||||
|
|
||||||
if (eax != SMMSTORE_RET_SUCCESS) {
|
if (eax == SMMSTORE_RET_SUCCESS) {
|
||||||
printk(BIOS_ERR, "SMMSTORE: Failed to install com buffer\n");
|
printk(BIOS_INFO, "SMMSTORE: Installed com buffer\n");
|
||||||
return;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
printk(BIOS_ERR, "SMMSTORE: Failed to install com buffer: 0x%x\n", eax);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
config BOARD_SYSTEM76_ADL_COMMON
|
config BOARD_SYSTEM76_ADL_COMMON
|
||||||
def_bool n
|
def_bool n
|
||||||
select BOARD_ROMSIZE_KB_32768
|
select BOARD_ROMSIZE_KB_32768
|
||||||
|
select DRIVERS_GENERIC_BAYHUB_LV2
|
||||||
select DRIVERS_GENERIC_CBFS_SERIAL
|
select DRIVERS_GENERIC_CBFS_SERIAL
|
||||||
select DRIVERS_GENERIC_CBFS_UUID
|
select DRIVERS_GENERIC_CBFS_UUID
|
||||||
select DRIVERS_I2C_HID
|
select DRIVERS_I2C_HID
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
config BOARD_SYSTEM76_RPL_COMMON
|
config BOARD_SYSTEM76_RPL_COMMON
|
||||||
def_bool n
|
def_bool n
|
||||||
select BOARD_ROMSIZE_KB_32768
|
select BOARD_ROMSIZE_KB_32768
|
||||||
|
select DRIVERS_GENERIC_BAYHUB_LV2
|
||||||
select DRIVERS_GENERIC_CBFS_SERIAL
|
select DRIVERS_GENERIC_CBFS_SERIAL
|
||||||
select DRIVERS_GENERIC_CBFS_UUID
|
select DRIVERS_GENERIC_CBFS_UUID
|
||||||
select DRIVERS_I2C_HID
|
select DRIVERS_I2C_HID
|
||||||
|
@@ -77,6 +77,7 @@ chip soc/intel/alderlake
|
|||||||
.clk_src = 1,
|
.clk_src = 1,
|
||||||
.clk_req = 1,
|
.clk_req = 1,
|
||||||
.flags = PCIE_RP_LTR,
|
.flags = PCIE_RP_LTR,
|
||||||
|
.pcie_rp_detect_timeout_ms = 50,
|
||||||
}"
|
}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@@ -3,6 +3,7 @@ if BOARD_SYSTEM76_GAZE16_3050 || BOARD_SYSTEM76_GAZE16_3060 || BOARD_SYSTEM76_GA
|
|||||||
config BOARD_SPECIFIC_OPTIONS
|
config BOARD_SPECIFIC_OPTIONS
|
||||||
def_bool y
|
def_bool y
|
||||||
select BOARD_ROMSIZE_KB_16384
|
select BOARD_ROMSIZE_KB_16384
|
||||||
|
select DRIVERS_GENERIC_BAYHUB_LV2
|
||||||
select DRIVERS_GENERIC_CBFS_SERIAL
|
select DRIVERS_GENERIC_CBFS_SERIAL
|
||||||
select DRIVERS_GENERIC_CBFS_UUID
|
select DRIVERS_GENERIC_CBFS_UUID
|
||||||
select DRIVERS_GFX_NVIDIA
|
select DRIVERS_GFX_NVIDIA
|
||||||
|
@@ -5,8 +5,13 @@
|
|||||||
|
|
||||||
#if CONFIG(SOC_INTEL_ALDERLAKE_PCH_S)
|
#if CONFIG(SOC_INTEL_ALDERLAKE_PCH_S)
|
||||||
#include <soc/gpio_defs_pch_s.h>
|
#include <soc/gpio_defs_pch_s.h>
|
||||||
|
#if CONFIG(SOC_INTEL_RAPTORLAKE)
|
||||||
|
#define CROS_GPIO_NAME "INTC1085"
|
||||||
|
#define CROS_GPIO_DEVICE_NAME "INTC1085:00"
|
||||||
|
#else
|
||||||
#define CROS_GPIO_NAME "INTC1056"
|
#define CROS_GPIO_NAME "INTC1056"
|
||||||
#define CROS_GPIO_DEVICE_NAME "INTC1056:00"
|
#define CROS_GPIO_DEVICE_NAME "INTC1056:00"
|
||||||
|
#endif
|
||||||
#elif CONFIG(SOC_INTEL_ALDERLAKE_PCH_N)
|
#elif CONFIG(SOC_INTEL_ALDERLAKE_PCH_N)
|
||||||
#include <soc/gpio_defs.h>
|
#include <soc/gpio_defs.h>
|
||||||
#define CROS_GPIO_NAME "INTC1057"
|
#define CROS_GPIO_NAME "INTC1057"
|
||||||
|
@@ -20,8 +20,14 @@
|
|||||||
#define PCH_TRACE_HUB_BASE_SIZE 0x00800000
|
#define PCH_TRACE_HUB_BASE_SIZE 0x00800000
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Hack to include SBREG in PCH_RESERVED region on ADL-S/RPL-S */
|
||||||
|
#if CONFIG(SOC_INTEL_ALDERLAKE_PCH_S)
|
||||||
|
#define PCH_PRESERVED_BASE_ADDRESS 0xe0000000
|
||||||
|
#define PCH_PRESERVED_BASE_SIZE 0x1e800000
|
||||||
|
#else
|
||||||
#define PCH_PRESERVED_BASE_ADDRESS 0xfc800000
|
#define PCH_PRESERVED_BASE_ADDRESS 0xfc800000
|
||||||
#define PCH_PRESERVED_BASE_SIZE 0x02000000
|
#define PCH_PRESERVED_BASE_SIZE 0x02000000
|
||||||
|
#endif
|
||||||
|
|
||||||
#define UART_BASE_SIZE 0x1000
|
#define UART_BASE_SIZE 0x1000
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user