mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-07-06 03:06:16 +09:00
x86: baytrail: acpi: Hide internal UART per GNVS setting
If global NVS says internal UART is not enabled, hide it in the ASL code so that OS won't see it. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: George McCollister <george.mccollister@gmail.com> Tested-by: George McCollister <george.mccollister@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
79c2c257cf
commit
3ff11aaa50
|
@ -119,17 +119,14 @@ Device (LPCB)
|
||||||
|
|
||||||
Method(_STA, 0, Serialized)
|
Method(_STA, 0, Serialized)
|
||||||
{
|
{
|
||||||
/*
|
If (LEqual(IURE, 1)) {
|
||||||
* TODO:
|
Store(1, UI3E)
|
||||||
*
|
Store(1, UI4E)
|
||||||
* Need to hide the internal UART depending on whether
|
Store(1, C1EN)
|
||||||
* internal UART is enabled or not so that external
|
Return (STA_VISIBLE)
|
||||||
* SuperIO UART can be exposed to system.
|
} Else {
|
||||||
*/
|
Return (STA_MISSING)
|
||||||
Store(1, UI3E)
|
}
|
||||||
Store(1, UI4E)
|
|
||||||
Store(1, C1EN)
|
|
||||||
Return (STA_VISIBLE)
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user