1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright 2019 Google LLC
10 #include <asm/lpc_common.h>
12 #define BIOS_CTRL 0xdc
14 static int apl_set_spi_protect(struct udevice *dev, bool protect)
16 if (spl_phase() == PHASE_SPL)
17 return lpc_set_spi_protect(dev, BIOS_CTRL, protect);
22 static const struct pch_ops apl_pch_ops = {
23 .set_spi_protect = apl_set_spi_protect,
26 static const struct udevice_id apl_pch_ids[] = {
27 { .compatible = "intel,apl-pch" },
31 U_BOOT_DRIVER(intel_apl_pch) = {
32 .name = "intel_apl_pch",
34 .of_match = apl_pch_ids,