| // SPDX-License-Identifier: GPL-2.0 |
| * Copyright 2019 Google LLC |
| #include <asm/lpc_common.h> |
| static int apl_set_spi_protect(struct udevice *dev, bool protect) |
| if (spl_phase() == PHASE_SPL) |
| return lpc_set_spi_protect(dev, BIOS_CTRL, protect); |
| static const struct pch_ops apl_pch_ops = { |
| .set_spi_protect = apl_set_spi_protect, |
| #if CONFIG_IS_ENABLED(OF_REAL) |
| static const struct udevice_id apl_pch_ids[] = { |
| { .compatible = "intel,apl-pch" }, |
| U_BOOT_DRIVER(intel_apl_pch) = { |
| .of_match = of_match_ptr(apl_pch_ids), |