Skip to content

Commit

Permalink
drm/radeon: add new AMD ACPI header and update relevant code (v2)
Browse files Browse the repository at this point in the history
Add a new header that defines the AMD ACPI interface used
for laptops, PowerXpress, and chipset specific functionality
and update the current code to use it.

Todo:
- properly verify the ACPI interfaces
- hook up and handle ACPI notifications
- make PX code more robust
- implement PCIe Gen and width switching using ACPI

v2: fix typo in header

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Alex Deucher committed Sep 20, 2012
1 parent 9e9eb7c commit 9e05b2f
Show file tree
Hide file tree
Showing 3 changed files with 455 additions and 22 deletions.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/radeon/radeon_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "drm_sarea.h"
#include "drm_crtc_helper.h"
#include "radeon.h"
#include "radeon_acpi.h"

#include <linux/vga_switcheroo.h>

Expand All @@ -27,7 +28,7 @@ static int radeon_atif_call(acpi_handle handle)
atif_arg.pointer = &atif_arg_elements[0];

atif_arg_elements[0].type = ACPI_TYPE_INTEGER;
atif_arg_elements[0].integer.value = 0;
atif_arg_elements[0].integer.value = ATIF_FUNCTION_VERIFY_INTERFACE;
atif_arg_elements[1].type = ACPI_TYPE_INTEGER;
atif_arg_elements[1].integer.value = 0;

Expand Down
Loading

0 comments on commit 9e05b2f

Please sign in to comment.