From efd633ccdd06361f63f9b8918eee647ceb65283d Mon Sep 17 00:00:00 2001 From: Bin Meng Date: Mon, 1 Feb 2016 01:40:39 -0800 Subject: 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 Reviewed-by: Simon Glass Tested-by: Simon Glass --- arch/x86/cpu/queensbay/tnc.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'arch/x86') 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 #include -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; -} -- cgit v1.1