gma500: opregion and ACPI
Add the opregion support and bring us in line with the opregion functionality in the reference driver code. We can't share this with i915 currently because there are hardcoded assumptions about dev_priv etc in both versions. [airlied: include opregion.h fix] Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Šī revīzija ir iekļauta:

revīziju iesūtīja
Dave Airlie

vecāks
9aba9d3a2c
revīzija
d839ede47a
@@ -30,6 +30,7 @@
|
||||
#include "psb_intel_drv.h"
|
||||
#include "gtt.h"
|
||||
#include "power.h"
|
||||
#include "opregion.h"
|
||||
#include "oaktrail.h"
|
||||
|
||||
/* Append new drm mode definition here, align with libdrm definition */
|
||||
@@ -120,6 +121,7 @@ enum {
|
||||
#define PSB_HWSTAM 0x2098
|
||||
#define PSB_INSTPM 0x20C0
|
||||
#define PSB_INT_IDENTITY_R 0x20A4
|
||||
#define _PSB_IRQ_ASLE (1<<0)
|
||||
#define _MDFLD_PIPEC_EVENT_FLAG (1<<2)
|
||||
#define _MDFLD_PIPEC_VBLANK_FLAG (1<<3)
|
||||
#define _PSB_DPST_PIPEB_FLAG (1<<4)
|
||||
@@ -259,7 +261,7 @@ struct psb_intel_opregion {
|
||||
struct opregion_swsci *swsci;
|
||||
struct opregion_asle *asle;
|
||||
void *vbt;
|
||||
int enabled;
|
||||
u32 __iomem *lid_state;
|
||||
};
|
||||
|
||||
struct sdvo_device_mapping {
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user