soc/intel: add IS_ENABLED() around Kconfig symbol references

Change-Id: I3c5f9e0d3d1efdd83442ce724043729c8648ea64
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/20348
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Martin Roth 2017-06-24 21:34:29 -06:00
parent fed4303b45
commit e6ff1596e7
19 changed files with 45 additions and 45 deletions

View File

@ -85,15 +85,15 @@ void acpi_init_gnvs(global_nvs_t *gnvs)
/* Top of Low Memory (start of resource allocation) */ /* Top of Low Memory (start of resource allocation) */
gnvs->tolm = nc_read_top_of_low_memory(); gnvs->tolm = nc_read_top_of_low_memory();
#if CONFIG_CONSOLE_CBMEM #if IS_ENABLED(CONFIG_CONSOLE_CBMEM)
/* Update the mem console pointer. */ /* Update the mem console pointer. */
gnvs->cbmc = (u32)cbmem_find(CBMEM_ID_CONSOLE); gnvs->cbmc = (u32)cbmem_find(CBMEM_ID_CONSOLE);
#endif #endif
#if CONFIG_CHROMEOS #if IS_ENABLED(CONFIG_CHROMEOS)
/* Initialize Verified Boot data */ /* Initialize Verified Boot data */
chromeos_init_vboot(&(gnvs->chromeos)); chromeos_init_vboot(&(gnvs->chromeos));
#if CONFIG_EC_GOOGLE_CHROMEEC #if IS_ENABLED(CONFIG_EC_GOOGLE_CHROMEEC)
gnvs->chromeos.vbt2 = google_ec_running_ro() ? gnvs->chromeos.vbt2 = google_ec_running_ro() ?
ACTIVE_ECFW_RO : ACTIVE_ECFW_RW; ACTIVE_ECFW_RO : ACTIVE_ECFW_RW;
#endif #endif

View File

@ -282,7 +282,7 @@ void enable_gpe(uint32_t mask);
void disable_gpe(uint32_t mask); void disable_gpe(uint32_t mask);
void disable_all_gpe(void); void disable_all_gpe(void);
#if CONFIG_ELOG #if IS_ENABLED(CONFIG_ELOG)
void southcluster_log_state(void); void southcluster_log_state(void);
#else #else
static inline void southcluster_log_state(void) {} static inline void southcluster_log_state(void) {}

View File

@ -25,7 +25,7 @@ void baytrail_init_pre_device(struct soc_intel_baytrail_config *config);
void baytrail_init_cpus(device_t dev); void baytrail_init_cpus(device_t dev);
void set_max_freq(void); void set_max_freq(void);
void southcluster_enable_dev(device_t dev); void southcluster_enable_dev(device_t dev);
#if CONFIG_HAVE_REFCODE_BLOB #if IS_ENABLED(CONFIG_HAVE_REFCODE_BLOB)
void baytrail_run_reference_code(void); void baytrail_run_reference_code(void);
#else #else
static inline void baytrail_run_reference_code(void) {} static inline void baytrail_run_reference_code(void) {}

View File

@ -41,7 +41,7 @@ void punit_init(void);
void set_max_freq(void); void set_max_freq(void);
int early_spi_read_wpsr(u8 *sr); int early_spi_read_wpsr(u8 *sr);
#if CONFIG_ENABLE_BUILTIN_COM1 #if IS_ENABLED(CONFIG_ENABLE_BUILTIN_COM1)
void byt_config_com1_and_enable(void); void byt_config_com1_and_enable(void);
#else #else
static inline void byt_config_com1_and_enable(void) { } static inline void byt_config_com1_and_enable(void) { }

View File

@ -137,7 +137,7 @@ void raminit(struct mrc_params *mp, int prev_sleep_state)
reset_system(); reset_system();
} else { } else {
printk(BIOS_DEBUG, "No MRC cache found.\n"); printk(BIOS_DEBUG, "No MRC cache found.\n");
#if CONFIG_EC_GOOGLE_CHROMEEC #if IS_ENABLED(CONFIG_EC_GOOGLE_CHROMEEC)
if (prev_sleep_state == ACPI_S0) { if (prev_sleep_state == ACPI_S0) {
/* Ensure EC is running RO firmware. */ /* Ensure EC is running RO firmware. */
google_chromeec_check_ec_image(EC_IMAGE_RO); google_chromeec_check_ec_image(EC_IMAGE_RO);
@ -168,7 +168,7 @@ void raminit(struct mrc_params *mp, int prev_sleep_state)
if (prev_sleep_state != ACPI_S3) { if (prev_sleep_state != ACPI_S3) {
cbmem_initialize_empty(); cbmem_initialize_empty();
} else if (cbmem_initialize()) { } else if (cbmem_initialize()) {
#if CONFIG_HAVE_ACPI_RESUME #if IS_ENABLED(CONFIG_HAVE_ACPI_RESUME)
printk(BIOS_DEBUG, "Failed to recover CBMEM in S3 resume.\n"); printk(BIOS_DEBUG, "Failed to recover CBMEM in S3 resume.\n");
/* Failed S3 resume, reset to come up cleanly */ /* Failed S3 resume, reset to come up cleanly */
reset_system(); reset_system();

View File

@ -21,7 +21,7 @@
#include <cbfs.h> #include <cbfs.h>
#include <cbmem.h> #include <cbmem.h>
#include <cpu/x86/mtrr.h> #include <cpu/x86/mtrr.h>
#if CONFIG_EC_GOOGLE_CHROMEEC #if IS_ENABLED(CONFIG_EC_GOOGLE_CHROMEEC)
#include <ec/google/chromeec/ec.h> #include <ec/google/chromeec/ec.h>
#endif #endif
#include <elog.h> #include <elog.h>
@ -128,7 +128,7 @@ void * asmlinkage romstage_main(unsigned long bist,
gfx_init(); gfx_init();
#if CONFIG_EC_GOOGLE_CHROMEEC #if IS_ENABLED(CONFIG_EC_GOOGLE_CHROMEEC)
/* Ensure the EC is in the right mode for recovery */ /* Ensure the EC is in the right mode for recovery */
google_chromeec_early_init(); google_chromeec_early_init();
#endif #endif
@ -221,7 +221,7 @@ void romstage_common(struct romstage_params *params)
printk(BIOS_DEBUG, "prev_sleep_state = S%d\n", prev_sleep_state); printk(BIOS_DEBUG, "prev_sleep_state = S%d\n", prev_sleep_state);
#if CONFIG_ELOG_BOOT_COUNT #if IS_ENABLED(CONFIG_ELOG_BOOT_COUNT)
if (prev_sleep_state != ACPI_S3) if (prev_sleep_state != ACPI_S3)
boot_count_increment(); boot_count_increment();
#endif #endif

View File

@ -112,7 +112,7 @@ static void southbridge_smi_sleep(void)
/* Do any mainboard sleep handling */ /* Do any mainboard sleep handling */
mainboard_smi_sleep(slp_typ); mainboard_smi_sleep(slp_typ);
#if CONFIG_ELOG_GSMI #if IS_ENABLED(CONFIG_ELOG_GSMI)
/* Log S3, S4, and S5 entry */ /* Log S3, S4, and S5 entry */
if (slp_typ >= ACPI_S3) if (slp_typ >= ACPI_S3)
elog_add_event_byte(ELOG_TYPE_ACPI_ENTER, slp_typ); elog_add_event_byte(ELOG_TYPE_ACPI_ENTER, slp_typ);
@ -208,7 +208,7 @@ static em64t100_smm_state_save_area_t *smi_apmc_find_state_save(uint8_t cmd)
return NULL; return NULL;
} }
#if CONFIG_ELOG_GSMI #if IS_ENABLED(CONFIG_ELOG_GSMI)
static void southbridge_smi_gsmi(void) static void southbridge_smi_gsmi(void)
{ {
u32 *ret, *param; u32 *ret, *param;
@ -241,7 +241,7 @@ static void finalize(void)
} }
finalize_done = 1; finalize_done = 1;
#if CONFIG_SPI_FLASH_SMM #if IS_ENABLED(CONFIG_SPI_FLASH_SMM)
/* Re-init SPI driver to handle locked BAR */ /* Re-init SPI driver to handle locked BAR */
spi_init(); spi_init();
#endif #endif
@ -346,7 +346,7 @@ static void southbridge_smi_apmc(void)
printk(BIOS_DEBUG, "SMI#: Setting GNVS to %p\n", gnvs); printk(BIOS_DEBUG, "SMI#: Setting GNVS to %p\n", gnvs);
} }
break; break;
#if CONFIG_ELOG_GSMI #if IS_ENABLED(CONFIG_ELOG_GSMI)
case ELOG_GSMI_APM_CNT: case ELOG_GSMI_APM_CNT:
southbridge_smi_gsmi(); southbridge_smi_gsmi();
break; break;
@ -372,7 +372,7 @@ static void southbridge_smi_pm1(void)
*/ */
if (pm1_sts & PWRBTN_STS) { if (pm1_sts & PWRBTN_STS) {
// power button pressed // power button pressed
#if CONFIG_ELOG_GSMI #if IS_ENABLED(CONFIG_ELOG_GSMI)
elog_add_event(ELOG_TYPE_POWER_BUTTON); elog_add_event(ELOG_TYPE_POWER_BUTTON);
#endif #endif
disable_pm1_control(-1UL); disable_pm1_control(-1UL);

View File

@ -163,7 +163,7 @@ enum {
SPI_OPCODE_TYPE_WRITE_WITH_ADDRESS = 3 SPI_OPCODE_TYPE_WRITE_WITH_ADDRESS = 3
}; };
#if CONFIG_DEBUG_SPI_FLASH #if IS_ENABLED(CONFIG_DEBUG_SPI_FLASH)
static u8 readb_(const void *addr) static u8 readb_(const void *addr)
{ {

View File

@ -169,15 +169,15 @@ void acpi_init_gnvs(global_nvs_t *gnvs)
/* CPU core count */ /* CPU core count */
gnvs->pcnt = dev_count_cpu(); gnvs->pcnt = dev_count_cpu();
#if CONFIG_CONSOLE_CBMEM #if IS_ENABLED(CONFIG_CONSOLE_CBMEM)
/* Update the mem console pointer. */ /* Update the mem console pointer. */
gnvs->cbmc = (u32)cbmem_find(CBMEM_ID_CONSOLE); gnvs->cbmc = (u32)cbmem_find(CBMEM_ID_CONSOLE);
#endif #endif
#if CONFIG_CHROMEOS #if IS_ENABLED(CONFIG_CHROMEOS)
/* Initialize Verified Boot data */ /* Initialize Verified Boot data */
chromeos_init_vboot(&(gnvs->chromeos)); chromeos_init_vboot(&(gnvs->chromeos));
#if CONFIG_EC_GOOGLE_CHROMEEC #if IS_ENABLED(CONFIG_EC_GOOGLE_CHROMEEC)
gnvs->chromeos.vbt2 = google_ec_running_ro() ? gnvs->chromeos.vbt2 = google_ec_running_ro() ?
ACTIVE_ECFW_RO : ACTIVE_ECFW_RW; ACTIVE_ECFW_RO : ACTIVE_ECFW_RW;
#endif #endif

View File

@ -23,7 +23,7 @@ void broadwell_init_pre_device(void *chip_info);
void broadwell_init_cpus(device_t dev); void broadwell_init_cpus(device_t dev);
void broadwell_pch_enable_dev(device_t dev); void broadwell_pch_enable_dev(device_t dev);
#if CONFIG_HAVE_REFCODE_BLOB #if IS_ENABLED(CONFIG_HAVE_REFCODE_BLOB)
void broadwell_run_reference_code(void); void broadwell_run_reference_code(void);
#else #else
static inline void broadwell_run_reference_code(void) { } static inline void broadwell_run_reference_code(void) { }

View File

@ -221,7 +221,7 @@ static const struct reg_script pch_misc_init_script[] = {
REG_MMIO_OR32(RCBA_BASE_ADDRESS + 0x1114, (1 << 15) | (1 << 14)), REG_MMIO_OR32(RCBA_BASE_ADDRESS + 0x1114, (1 << 15) | (1 << 14)),
/* Setup SERIRQ, enable continuous mode */ /* Setup SERIRQ, enable continuous mode */
REG_PCI_OR8(SERIRQ_CNTL, (1 << 7) | (1 << 6)), REG_PCI_OR8(SERIRQ_CNTL, (1 << 7) | (1 << 6)),
#if !CONFIG_SERIRQ_CONTINUOUS_MODE #if !IS_ENABLED(CONFIG_SERIRQ_CONTINUOUS_MODE)
REG_PCI_RMW8(SERIRQ_CNTL, ~(1 << 6), 0), REG_PCI_RMW8(SERIRQ_CNTL, ~(1 << 6), 0),
#endif #endif
REG_SCRIPT_END REG_SCRIPT_END
@ -431,7 +431,7 @@ static void pch_cg_init(device_t dev)
static void pch_set_acpi_mode(void) static void pch_set_acpi_mode(void)
{ {
#if CONFIG_HAVE_SMI_HANDLER #if IS_ENABLED(CONFIG_HAVE_SMI_HANDLER)
if (!acpi_is_wakeup_s3()) { if (!acpi_is_wakeup_s3()) {
printk(BIOS_DEBUG, "Disabling ACPI via APMC:\n"); printk(BIOS_DEBUG, "Disabling ACPI via APMC:\n");
outb(APM_CNT_ACPI_DISABLE, APM_CNT); outb(APM_CNT_ACPI_DISABLE, APM_CNT);

View File

@ -39,7 +39,7 @@
#include <soc/rcba.h> #include <soc/rcba.h>
#include <soc/intel/broadwell/chip.h> #include <soc/intel/broadwell/chip.h>
#if CONFIG_CHROMEOS #if IS_ENABLED(CONFIG_CHROMEOS)
#include <vendorcode/google/chromeos/chromeos.h> #include <vendorcode/google/chromeos/chromeos.h>
#include <vendorcode/google/chromeos/gnvs.h> #include <vendorcode/google/chromeos/gnvs.h>
#endif #endif
@ -57,7 +57,7 @@ static const char *me_bios_path_values[] = {
/* MMIO base address for MEI interface */ /* MMIO base address for MEI interface */
static u8 *mei_base_address; static u8 *mei_base_address;
#if CONFIG_DEBUG_INTEL_ME #if IS_ENABLED(CONFIG_DEBUG_INTEL_ME)
static void mei_dump(void *ptr, int dword, int offset, const char *type) static void mei_dump(void *ptr, int dword, int offset, const char *type)
{ {
struct mei_csr *csr; struct mei_csr *csr;
@ -482,7 +482,7 @@ static void me_print_fw_version(mbp_fw_version_name *vers_name)
vers_name->hotfix_version, vers_name->build_version); vers_name->hotfix_version, vers_name->build_version);
} }
#if CONFIG_DEBUG_INTEL_ME #if IS_ENABLED(CONFIG_DEBUG_INTEL_ME)
static inline void print_cap(const char *name, int state) static inline void print_cap(const char *name, int state)
{ {
printk(BIOS_DEBUG, "ME Capability: %-41s : %sabled\n", printk(BIOS_DEBUG, "ME Capability: %-41s : %sabled\n",
@ -702,7 +702,7 @@ static me_bios_path intel_me_path(device_t dev)
path = ME_ERROR_BIOS_PATH; path = ME_ERROR_BIOS_PATH;
} }
#if CONFIG_ELOG #if IS_ENABLED(CONFIG_ELOG)
if (path != ME_NORMAL_BIOS_PATH) { if (path != ME_NORMAL_BIOS_PATH) {
struct elog_event_data_me_extended data = { struct elog_event_data_me_extended data = {
.current_working_state = hfs.working_state, .current_working_state = hfs.working_state,
@ -791,7 +791,7 @@ static int intel_me_extend_valid(device_t dev)
} }
printk(BIOS_DEBUG, "\n"); printk(BIOS_DEBUG, "\n");
#if CONFIG_CHROMEOS #if IS_ENABLED(CONFIG_CHROMEOS)
/* Save hash in NVS for the OS to verify */ /* Save hash in NVS for the OS to verify */
chromeos_set_me_hash(extend, count); chromeos_set_me_hash(extend, count);
#endif #endif
@ -803,7 +803,7 @@ static void intel_me_print_mbp(me_bios_payload *mbp_data)
{ {
me_print_fw_version(mbp_data->fw_version_name); me_print_fw_version(mbp_data->fw_version_name);
#if CONFIG_DEBUG_INTEL_ME #if IS_ENABLED(CONFIG_DEBUG_INTEL_ME)
me_print_fwcaps(mbp_data->fw_capabilities); me_print_fwcaps(mbp_data->fw_capabilities);
#endif #endif
@ -911,7 +911,7 @@ static int intel_me_read_mbp(me_bios_payload *mbp_data, device_t dev)
} }
/* Dump out the MBP contents. */ /* Dump out the MBP contents. */
#if CONFIG_DEBUG_INTEL_ME #if IS_ENABLED(CONFIG_DEBUG_INTEL_ME)
printk(BIOS_INFO, "ME MBP: Header: items: %d, size dw: %d\n", printk(BIOS_INFO, "ME MBP: Header: items: %d, size dw: %d\n",
mbp->header.num_entries, mbp->header.mbp_size); mbp->header.num_entries, mbp->header.mbp_size);
for (i = 0; i < mbp->header.mbp_size - 1; i++) for (i = 0; i < mbp->header.mbp_size - 1; i++)

View File

@ -22,7 +22,7 @@
#include <device/pci_def.h> #include <device/pci_def.h>
#include <lib.h> #include <lib.h>
#include <string.h> #include <string.h>
#if CONFIG_EC_GOOGLE_CHROMEEC #if IS_ENABLED(CONFIG_EC_GOOGLE_CHROMEEC)
#include <ec/google/chromeec/ec.h> #include <ec/google/chromeec/ec.h>
#include <ec/google/chromeec/ec_commands.h> #include <ec/google/chromeec/ec_commands.h>
#endif #endif
@ -65,7 +65,7 @@ void raminit(struct pei_data *pei_data)
reset_system(); reset_system();
} else { } else {
printk(BIOS_DEBUG, "No MRC cache found.\n"); printk(BIOS_DEBUG, "No MRC cache found.\n");
#if CONFIG_EC_GOOGLE_CHROMEEC #if IS_ENABLED(CONFIG_EC_GOOGLE_CHROMEEC)
if (pei_data->boot_mode == ACPI_S0) { if (pei_data->boot_mode == ACPI_S0) {
/* Ensure EC is running RO firmware. */ /* Ensure EC is running RO firmware. */
google_chromeec_check_ec_image(EC_IMAGE_RO); google_chromeec_check_ec_image(EC_IMAGE_RO);
@ -110,7 +110,7 @@ void raminit(struct pei_data *pei_data)
if (pei_data->boot_mode != ACPI_S3) { if (pei_data->boot_mode != ACPI_S3) {
cbmem_initialize_empty(); cbmem_initialize_empty();
} else if (cbmem_initialize()) { } else if (cbmem_initialize()) {
#if CONFIG_HAVE_ACPI_RESUME #if IS_ENABLED(CONFIG_HAVE_ACPI_RESUME)
printk(BIOS_DEBUG, "Failed to recover CBMEM in S3 resume.\n"); printk(BIOS_DEBUG, "Failed to recover CBMEM in S3 resume.\n");
/* Failed S3 resume, reset to come up cleanly */ /* Failed S3 resume, reset to come up cleanly */
reset_system(); reset_system();

View File

@ -91,7 +91,7 @@ void romstage_common(struct romstage_params *params)
params->pei_data->boot_mode = params->power_state->prev_sleep_state; params->pei_data->boot_mode = params->power_state->prev_sleep_state;
#if CONFIG_ELOG_BOOT_COUNT #if IS_ENABLED(CONFIG_ELOG_BOOT_COUNT)
if (params->power_state->prev_sleep_state != ACPI_S3) if (params->power_state->prev_sleep_state != ACPI_S3)
boot_count_increment(); boot_count_increment();
#endif #endif
@ -110,7 +110,7 @@ void romstage_common(struct romstage_params *params)
romstage_handoff_init(params->power_state->prev_sleep_state == ACPI_S3); romstage_handoff_init(params->power_state->prev_sleep_state == ACPI_S3);
#if CONFIG_LPC_TPM #if IS_ENABLED(CONFIG_LPC_TPM)
init_tpm(params->power_state->prev_sleep_state == ACPI_S3); init_tpm(params->power_state->prev_sleep_state == ACPI_S3);
#endif #endif
} }

View File

@ -40,7 +40,7 @@ static void serialio_enable_d3hot(struct resource *res)
static int serialio_uart_is_debug(struct device *dev) static int serialio_uart_is_debug(struct device *dev)
{ {
#if CONFIG_INTEL_PCH_UART_CONSOLE #if IS_ENABLED(CONFIG_INTEL_PCH_UART_CONSOLE)
switch (dev->path.pci.devfn) { switch (dev->path.pci.devfn) {
case PCH_DEVFN_UART0: /* UART0 */ case PCH_DEVFN_UART0: /* UART0 */
return !!(CONFIG_INTEL_PCH_UART_CONSOLE_NUMBER == 0); return !!(CONFIG_INTEL_PCH_UART_CONSOLE_NUMBER == 0);
@ -277,7 +277,7 @@ static void serialio_set_resources(struct device *dev)
{ {
pci_dev_set_resources(dev); pci_dev_set_resources(dev);
#if CONFIG_INTEL_PCH_UART_CONSOLE #if IS_ENABLED(CONFIG_INTEL_PCH_UART_CONSOLE)
/* Update UART base address if used for debug */ /* Update UART base address if used for debug */
if (serialio_uart_is_debug(dev)) { if (serialio_uart_is_debug(dev)) {
struct resource *res = find_resource(dev, PCI_BASE_ADDRESS_0); struct resource *res = find_resource(dev, PCI_BASE_ADDRESS_0);

View File

@ -176,7 +176,7 @@ static void southbridge_smi_sleep(void)
/* USB sleep preparations */ /* USB sleep preparations */
usb_xhci_sleep_prepare(PCH_DEV_XHCI, slp_typ); usb_xhci_sleep_prepare(PCH_DEV_XHCI, slp_typ);
#if CONFIG_ELOG_GSMI #if IS_ENABLED(CONFIG_ELOG_GSMI)
/* Log S3, S4, and S5 entry */ /* Log S3, S4, and S5 entry */
if (slp_typ >= ACPI_S3) if (slp_typ >= ACPI_S3)
elog_add_event_byte(ELOG_TYPE_ACPI_ENTER, slp_typ); elog_add_event_byte(ELOG_TYPE_ACPI_ENTER, slp_typ);
@ -290,7 +290,7 @@ static em64t101_smm_state_save_area_t *smi_apmc_find_state_save(u8 cmd)
return NULL; return NULL;
} }
#if CONFIG_ELOG_GSMI #if IS_ENABLED(CONFIG_ELOG_GSMI)
static void southbridge_smi_gsmi(void) static void southbridge_smi_gsmi(void)
{ {
u32 *ret, *param; u32 *ret, *param;
@ -323,7 +323,7 @@ static void finalize(void)
} }
finalize_done = 1; finalize_done = 1;
#if CONFIG_SPI_FLASH_SMM #if IS_ENABLED(CONFIG_SPI_FLASH_SMM)
/* Re-init SPI driver to handle locked BAR */ /* Re-init SPI driver to handle locked BAR */
spi_init(); spi_init();
#endif #endif
@ -369,7 +369,7 @@ static void southbridge_smi_apmc(void)
printk(BIOS_DEBUG, "SMI#: Setting GNVS to %p\n", gnvs); printk(BIOS_DEBUG, "SMI#: Setting GNVS to %p\n", gnvs);
} }
break; break;
#if CONFIG_ELOG_GSMI #if IS_ENABLED(CONFIG_ELOG_GSMI)
case ELOG_GSMI_APM_CNT: case ELOG_GSMI_APM_CNT:
southbridge_smi_gsmi(); southbridge_smi_gsmi();
break; break;
@ -388,7 +388,7 @@ static void southbridge_smi_pm1(void)
*/ */
if (pm1_sts & PWRBTN_STS) { if (pm1_sts & PWRBTN_STS) {
/* power button pressed */ /* power button pressed */
#if CONFIG_ELOG_GSMI #if IS_ENABLED(CONFIG_ELOG_GSMI)
elog_add_event(ELOG_TYPE_POWER_BUTTON); elog_add_event(ELOG_TYPE_POWER_BUTTON);
#endif #endif
disable_pm1_control(-1UL); disable_pm1_control(-1UL);

View File

@ -162,7 +162,7 @@ enum {
SPI_OPCODE_TYPE_WRITE_WITH_ADDRESS = 3 SPI_OPCODE_TYPE_WRITE_WITH_ADDRESS = 3
}; };
#if CONFIG_DEBUG_SPI_FLASH #if IS_ENABLED(CONFIG_DEBUG_SPI_FLASH)
static u8 readb_(const void *addr) static u8 readb_(const void *addr)
{ {

View File

@ -57,7 +57,7 @@ Method (APRT, 1, Serialized)
} }
Store (INDX, LENG) /* Length of the String */ Store (INDX, LENG) /* Length of the String */
#if CONFIG_DRIVERS_UART_8250MEM_32 #if IS_ENABLED(CONFIG_DRIVERS_UART_8250MEM_32)
OperationRegion (UBAR, SystemMemory, UART_DEBUG_BASE_ADDRESS, 24) OperationRegion (UBAR, SystemMemory, UART_DEBUG_BASE_ADDRESS, 24)
Field (UBAR, AnyAcc, NoLock, Preserve) Field (UBAR, AnyAcc, NoLock, Preserve)
{ {

View File

@ -16,7 +16,7 @@
Name(\_S0, Package(){0x0,0x0,0x0,0x0}) Name(\_S0, Package(){0x0,0x0,0x0,0x0})
// Name(\_S1, Package(){0x1,0x1,0x0,0x0}) // Name(\_S1, Package(){0x1,0x1,0x0,0x0})
#if CONFIG_HAVE_ACPI_RESUME #if IS_ENABLED(CONFIG_HAVE_ACPI_RESUME)
Name(\_S3, Package(){0x5,0x5,0x0,0x0}) Name(\_S3, Package(){0x5,0x5,0x0,0x0})
#endif #endif
Name(\_S4, Package(){0x6,0x6,0x0,0x0}) Name(\_S4, Package(){0x6,0x6,0x0,0x0})