This is an example of what an ACPI property table looks like. Signed-off-by: Bob Paauwe <bob.j.paauwe@xxxxxxxxx> --- drivers/gpu/drm/i915/i915-properties.asl | 167 +++++++++++++++++++++++++++++++ 1 file changed, 167 insertions(+) create mode 100644 drivers/gpu/drm/i915/i915-properties.asl diff --git a/drivers/gpu/drm/i915/i915-properties.asl b/drivers/gpu/drm/i915/i915-properties.asl new file mode 100644 index 0000000..e97ac2e --- /dev/null +++ b/drivers/gpu/drm/i915/i915-properties.asl @@ -0,0 +1,167 @@ +DefinitionBlock ("i915-properties.aml", "SSDT", 5, "", "", 0x00000001) +{ + External (DSEN) + + Device (\_SB.PRP) { + Device(GFX0) { + Name (_ADR, 0x00020000) + Name (_HID, "PRP0000") + + Method (_DOS, 1, NotSerialized) { + Store (And (Arg0, 0x07), DSEN) + If (LEqual (And (Arg0, 0x03), Zero)) { + } + } + + Name (_DSD, Package() { + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package() {"display_detect", 1}, + Package() {"fastboot", 1}, + Package() {"powersave", 0}, + Package() {"count", 99}, + } + }) + + Device (CRTC) { + Name (_HID, "PRP0000") + Name (_DSD, Package() { + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package() { "enabled", "3" }, + Package() { "count", 3 } + } + }) + + Device (ID0) { + Name (_HID, "PRP0000") + Name (_DSD, Package() { + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package() { "id", 0 }, + Package() { "canvas_color", Package() { 0, 0, 0 } }, + Package() { "blend_equ", 0 }, + Package() { "enabled", 1 } + } + }) + } + + Device (ID1) { + Name (_HID, "PRP0000") + Name (_DSD, Package() { + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package() { "id", 1 }, + Package() { "canvas_color", Package() { 0, 0, 0 } }, + Package() { "blend_equ", 0 }, + Package() { "enabled", 1 } + } + }) + } + + Device (ID2) { + Name (_HID, "PRP0000") + Name (_DSD, Package() { + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package() { "id", 2 }, + Package() { "canvas_color", Package() { 0, 0, 0 } }, + Package() { "blend_equ", 0 }, + Package() { "enabled", 1 } + } + }) + } + } + + Device (PLNS) { + Name (_HID, "PRP0000") + Name (_DSD, Package() { + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package() { "count", 2 } + } + }) + + Device (PL0) { + Name (_HID, "PRP0000") + Name (_DSD, Package() { + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package () { "gamma", 1 }, + Package () { "color-key", 0xffffffff }, + } + }) + } + + Device (PL1) { + Name (_HID, "PRP0000") + Name (_DSD, Package() { + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package () { "gamma", 0 }, + Package () { "color-key", 0xffffffff }, + } + }) + } + } + + + Device (CNCT) { + Name (_HID, "PRP0000") + Name (_DSD, Package() { + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package() { "count", 2 } + } + }) + + Device(C0) { + Name (_HID, "PRP0000") + Name (_DSD, Package() { + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package() { "name", "VGA-1" }, + Package() { "enabled", 1 }, + Package() { "bits_per_color", 6 }, + Package() { "constant_alpha", 255 } + } + }) + } + + Device(C1) { + Name (_HID, "PRP0000") + Name (_DSD, Package() { + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package() { "name", "DP-1" }, + Package() { "enabled", 1 }, + Package() { "scaling_mode", "Full aspect" }, + Package() { "audio", "force-dvi" }, + Package() { "Broadcast_RGB", "Automatic" }, + Package() { "bits_per_color", 8 }, + Package() { "constant_alpha", 255 } + } + }) + } + + Device(C2) { + Name (_HID, "PRP0000") + Name (_DSD, Package() { + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package() { "name", "eDP-1" }, + Package() { "enabled", 1 }, + Package() { "t1_t3", 2001 }, + Package() { "t8", 0 }, + Package() { "t9", 2001 }, + Package() { "t10", 501 }, + Package() { "t11_t12", 6001 }, + Package() { "backlight level", 100 }, + } + }) + } + } + } + } +} + -- 2.1.0 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx