summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2016-02-01 01:40:39 -0800
committerBin Meng <bmeng.cn@gmail.com>2016-02-05 12:47:20 +0800
commitefd633ccdd06361f63f9b8918eee647ceb65283d (patch)
treee45cee955e567949627066cb7fdf2d1eb80f8c34 /arch
parent6e670b5c4d198c0c5715a2fe0c7980c9e6ca95c5 (diff)
downloadu-boot-imx-efd633ccdd06361f63f9b8918eee647ceb65283d.zip
u-boot-imx-efd633ccdd06361f63f9b8918eee647ceb65283d.tar.gz
u-boot-imx-efd633ccdd06361f63f9b8918eee647ceb65283d.tar.bz2
x86: tnc: Drop unprotect_spi_flash()
Unprotecting SPI flash is now handled in the SPI controller driver, via a call to the PCH driver. Drop the ad-hoc version. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/cpu/queensbay/tnc.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/x86/cpu/queensbay/tnc.c b/arch/x86/cpu/queensbay/tnc.c
index 75f7adb..f9fddc1 100644
--- a/arch/x86/cpu/queensbay/tnc.c
+++ b/arch/x86/cpu/queensbay/tnc.c
@@ -14,15 +14,6 @@
#include <asm/fsp/fsp_support.h>
#include <asm/processor.h>
-static void unprotect_spi_flash(void)
-{
- u32 bc;
-
- bc = x86_pci_read_config32(TNC_LPC, 0xd8);
- bc |= 0x1; /* unprotect the flash */
- x86_pci_write_config32(TNC_LPC, 0xd8, bc);
-}
-
static void __maybe_unused disable_igd(void)
{
/*
@@ -68,10 +59,3 @@ int arch_early_init_r(void)
return 0;
}
-
-int arch_misc_init(void)
-{
- unprotect_spi_flash();
-
- return 0;
-}