mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-25 20:43:32 +00:00
e5ffa4bb62
According to Atom E6xx datasheet, setting VGA Disable (bit17) of Graphics Controller register (offset 0x50) prevents IGD (D2:F0) from reporting itself as a VGA display controller class in the PCI configuration space, and should also prevent it from responding to VGA legacy memory range and I/O addresses. However test result shows that with just VGA Disable bit set and a PCIe graphics card connected to one of the PCIe controllers on the E6xx, accessing the VGA legacy space still causes system hang. After a number of attempts, it turns out besides VGA Disable bit, the SDVO (D3:F0) device should be disabled to make it work. To simplify, use the Function Disable register (offset 0xc4) to disable both IGD (D2:F0) and SDVO (D3:F0) devices. Now these two devices will be completely disabled (invisible in the PCI configuration space) unless a system reset is performed. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
53 lines
807 B
C
53 lines
807 B
C
/*
|
|
* Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef _X86_ARCH_TNC_H_
|
|
#define _X86_ARCH_TNC_H_
|
|
|
|
/* IGD Function Disable Register */
|
|
#define IGD_FD 0xc4
|
|
#define FUNC_DISABLE 0x00000001
|
|
|
|
/* Memory BAR Enable */
|
|
#define MEM_BAR_EN 0x00000001
|
|
|
|
/* LPC PCI Configuration Registers */
|
|
#define LPC_RCBA 0xf0
|
|
|
|
/* Root Complex Register Block */
|
|
struct tnc_rcba {
|
|
u32 rctl;
|
|
u32 esd;
|
|
u32 rsvd1[2];
|
|
u32 hdd;
|
|
u32 rsvd2;
|
|
u32 hdba;
|
|
u32 rsvd3[3129];
|
|
u32 d31ip;
|
|
u32 rsvd4[3];
|
|
u32 d27ip;
|
|
u32 rsvd5;
|
|
u32 d02ip;
|
|
u32 rsvd6;
|
|
u32 d26ip;
|
|
u32 d25ip;
|
|
u32 d24ip;
|
|
u32 d23ip;
|
|
u32 d03ip;
|
|
u32 rsvd7[3];
|
|
u16 d31ir;
|
|
u16 rsvd8[3];
|
|
u16 d27ir;
|
|
u16 d26ir;
|
|
u16 d25ir;
|
|
u16 d24ir;
|
|
u16 d23ir;
|
|
u16 rsvd9[7];
|
|
u16 d02ir;
|
|
u16 d03ir;
|
|
};
|
|
|
|
#endif /* _X86_ARCH_TNC_H_ */
|