فهرست منبع

x86: queensbay: Avoid using PCH prefix

The prefix PCH was taken from ivybridge port. However Queensbay
platform official document does not mention PCH. It is composed
of TunnelCreek processor and Topcliff IOH chipset. For accuracy,
avoid using PCH prefix in the macro.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
Bin Meng 10 سال پیش
والد
کامیت
9704f23b00
2فایلهای تغییر یافته به همراه3 افزوده شده و 4 حذف شده
  1. 2 2
      arch/x86/cpu/queensbay/tnc.c
  2. 1 2
      arch/x86/include/asm/arch-queensbay/tnc.h

+ 2 - 2
arch/x86/cpu/queensbay/tnc.c

@@ -16,9 +16,9 @@ static void unprotect_spi_flash(void)
 {
 	u32 bc;
 
-	bc = x86_pci_read_config32(PCH_LPC_DEV, 0xd8);
+	bc = x86_pci_read_config32(TNC_LPC, 0xd8);
 	bc |= 0x1;	/* unprotect the flash */
-	x86_pci_write_config32(PCH_LPC_DEV, 0xd8, bc);
+	x86_pci_write_config32(TNC_LPC, 0xd8, bc);
 }
 
 int arch_cpu_init(void)

+ 1 - 2
arch/x86/include/asm/arch-queensbay/tnc.h

@@ -9,7 +9,6 @@
 
 #include <pci.h>
 
-/* PCI Configuration Space (D31:F0): LPC */
-#define PCH_LPC_DEV	PCI_BDF(0, 0x1f, 0)
+#define TNC_LPC		PCI_BDF(0, 31, 0)
 
 #endif /* _X86_ARCH_TNC_H_ */