Enable galp5 NVIDIA GPU
Change-Id: I9dd1a7b0150672925bf454202947ccace8b0edb7
This commit is contained in:
22
src/mainboard/system76/galp5/acpi/dgpu.asl
Normal file
22
src/mainboard/system76/galp5/acpi/dgpu.asl
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
External (\_SB.PCI0.RP01.RTD3)
|
||||||
|
|
||||||
|
Device (\_SB.PCI0.RP01.DEV0) {
|
||||||
|
Name(_ADR, 0x00000000)
|
||||||
|
|
||||||
|
Name (_PR0, Package() { \_SB.PCI0.RP01.RTD3 })
|
||||||
|
Name (_PR3, Package() { \_SB.PCI0.RP01.RTD3 })
|
||||||
|
|
||||||
|
Method (_PS0, 0) {
|
||||||
|
Debug = "GPU _PS0"
|
||||||
|
STXS (DGPU_EVENT_N)
|
||||||
|
Sleep (1)
|
||||||
|
CTXS (DGPU_EVENT_N)
|
||||||
|
Sleep (1)
|
||||||
|
STXS (DGPU_EVENT_N)
|
||||||
|
}
|
||||||
|
|
||||||
|
Method (_PS3, 0) {
|
||||||
|
Debug = "GPU _PS3"
|
||||||
|
}
|
||||||
|
}
|
@@ -1,5 +1,8 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
|
#include "../gpio.h"
|
||||||
|
#include "dgpu.asl"
|
||||||
|
|
||||||
#define EC_GPE_SCI 0x6E
|
#define EC_GPE_SCI 0x6E
|
||||||
#define EC_GPE_SWI 0x6E
|
#define EC_GPE_SWI 0x6E
|
||||||
#include <ec/system76/ec/acpi/ec.asl>
|
#include <ec/system76/ec/acpi/ec.asl>
|
||||||
|
@@ -7,5 +7,5 @@
|
|||||||
|
|
||||||
void bootblock_mainboard_init(void) {
|
void bootblock_mainboard_init(void) {
|
||||||
gpio_configure_pads(early_gpio_table, ARRAY_SIZE(early_gpio_table));
|
gpio_configure_pads(early_gpio_table, ARRAY_SIZE(early_gpio_table));
|
||||||
dgpu_power_enable(0);
|
dgpu_power_enable(1);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user