SB800: Hide unused gpp ports
Add configure option SB_GPP_UNHIDE_PORTS for mainboard to hide/unhide the unused sb800 gpp ports. Certain gpp port should be hidden, if no device was detected and hotplug feature is disabled for such port. Hidden unused ports makes lspci -vvv get more accurate information under Linux. Test on avalue/eax-785e mainboard. Change-Id: I1d7df0f2ab6ad69b1b99b8bf046411ae7cdb09c0 Signed-off-by: Kerry Sheh <kerry.she@amd.com> Signed-off-by: Kerry Sheh <shekairui@gmail.com> Reviewed-on: http://review.coreboot.org/207 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
parent
d7ecfa7c15
commit
f3b0500050
|
@ -211,6 +211,12 @@
|
||||||
*/
|
*/
|
||||||
#define SB_GPP_GEN2 TRUE
|
#define SB_GPP_GEN2 TRUE
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @def SB_GPP_UNHIDE_PORTS
|
||||||
|
* TRUE - ports visable always, even port empty
|
||||||
|
* FALSE - ports invisable if port empty
|
||||||
|
*/
|
||||||
|
#define SB_GPP_UNHIDE_PORTS FALSE
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @def GEC_CONFIG
|
* @def GEC_CONFIG
|
||||||
|
|
|
@ -213,6 +213,12 @@
|
||||||
*/
|
*/
|
||||||
#define SB_GPP_GEN2 TRUE
|
#define SB_GPP_GEN2 TRUE
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @def SB_GPP_UNHIDE_PORTS
|
||||||
|
* TRUE - ports visable always, even port empty
|
||||||
|
* FALSE - ports invisable if port empty
|
||||||
|
*/
|
||||||
|
#define SB_GPP_UNHIDE_PORTS FALSE
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @def GEC_CONFIG
|
* @def GEC_CONFIG
|
||||||
|
|
|
@ -213,6 +213,12 @@
|
||||||
*/
|
*/
|
||||||
#define SB_GPP_GEN2 TRUE
|
#define SB_GPP_GEN2 TRUE
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @def SB_GPP_UNHIDE_PORTS
|
||||||
|
* TRUE - ports visable always, even port empty
|
||||||
|
* FALSE - ports invisable if port empty
|
||||||
|
*/
|
||||||
|
#define SB_GPP_UNHIDE_PORTS FALSE
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @def GEC_CONFIG
|
* @def GEC_CONFIG
|
||||||
|
|
|
@ -213,6 +213,12 @@
|
||||||
*/
|
*/
|
||||||
#define SB_GPP_GEN2 TRUE
|
#define SB_GPP_GEN2 TRUE
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @def SB_GPP_UNHIDE_PORTS
|
||||||
|
* TRUE - ports visable always, even port empty
|
||||||
|
* FALSE - ports invisable if port empty
|
||||||
|
*/
|
||||||
|
#define SB_GPP_UNHIDE_PORTS FALSE
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @def GEC_CONFIG
|
* @def GEC_CONFIG
|
||||||
|
|
|
@ -108,7 +108,7 @@ void sb800_cimx_config(AMDSBCFG *sb_config)
|
||||||
sb_config->PORTCONFIG[1].PortCfg.PortPresent = CIMX_OPTION_ENABLED;
|
sb_config->PORTCONFIG[1].PortCfg.PortPresent = CIMX_OPTION_ENABLED;
|
||||||
sb_config->PORTCONFIG[2].PortCfg.PortPresent = CIMX_OPTION_ENABLED;
|
sb_config->PORTCONFIG[2].PortCfg.PortPresent = CIMX_OPTION_ENABLED;
|
||||||
sb_config->PORTCONFIG[3].PortCfg.PortPresent = CIMX_OPTION_ENABLED;
|
sb_config->PORTCONFIG[3].PortCfg.PortPresent = CIMX_OPTION_ENABLED;
|
||||||
sb_config->GppUnhidePorts = TRUE; //visable always, even port empty
|
sb_config->GppUnhidePorts = SB_GPP_UNHIDE_PORTS;
|
||||||
sb_config->NbSbGen2 = NB_SB_GEN2;
|
sb_config->NbSbGen2 = NB_SB_GEN2;
|
||||||
sb_config->GppGen2 = SB_GPP_GEN2;
|
sb_config->GppGen2 = SB_GPP_GEN2;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue