From: Bin Meng Date: Mon, 1 Feb 2016 01:40:39 -0800 Subject: [U-Boot] [PATCH 04/23] x86: tnc: Drop unprotect_spi_flash() In-Reply-To: <1454319658-17431-1-git-send-email-bmeng.cn@gmail.com> References: <1454319658-17431-1-git-send-email-bmeng.cn@gmail.com> Message-ID: <1454319658-17431-5-git-send-email-bmeng.cn@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- arch/x86/cpu/queensbay/tnc.c | 16 ---------------- include/configs/crownbay.h | 1 - 2 files changed, 17 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 #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; -} diff --git a/include/configs/crownbay.h b/include/configs/crownbay.h index ffd65d5..fc1a8ba 100644 --- a/include/configs/crownbay.h +++ b/include/configs/crownbay.h @@ -16,7 +16,6 @@ #define CONFIG_SYS_MONITOR_LEN (1 << 20) #define CONFIG_BOARD_EARLY_INIT_F #define CONFIG_ARCH_EARLY_INIT_R -#define CONFIG_ARCH_MISC_INIT #define CONFIG_SMSC_LPC47M -- 1.8.2.1