Skip to contentSkip to conversation

Add Intel Poulsbo Stub Driver

PATCH In review Lee, Chun-Yi 2 participants 2 messages Sep 14, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add Intel Poulsbo Stub Driver

Currently, there have no Poulsbo native video driver to support intel opregion. So, use this stub driver to enable the acpi backlight control sysfs entry files by requrest acpi_video_register.

---
 drivers/gpu/Makefile       |    2 +-
 drivers/gpu/stub/Kconfig   |   13 +++++++++
 drivers/gpu/stub/Makefile  |    1 +
 drivers/gpu/stub/poulsbo.c |   63 ++++++++++++++++++++++++++++++++++++++++++++
 drivers/video/Kconfig      |    2 +
 5 files changed, 80 insertions(+), 1 deletions(-)
 create mode 100644 drivers/gpu/stub/Kconfig
 create mode 100644 drivers/gpu/stub/Makefile
 create mode 100644 drivers/gpu/stub/poulsbo.c
drivers/gpu/Makefile +1 -1
index 30879df..cc92778 100644
@@ -1 +1 @@
-obj-y			+= drm/ vga/
+obj-y			+= drm/ vga/ stub/
drivers/gpu/stub/Kconfig new file +13 -0
new file mode 100644
index 0000000..9795890
@@ -0,0 +1,13 @@
+config STUB_POULSBO
+	tristate "Intel Poulsbo Stub Driver"
+	depends on PCI
+        # Poulsbo stub depends on ACPI_VIDEO when ACPI is enabled
+        # but for select to work, need to select ACPI_VIDEO's dependencies, ick
+        select ACPI_VIDEO if ACPI
+	help
+	  Choose this option if you have a system that has Intel Poulsbo
+	  integrated graphics. If M is selected, the module will be called
+	  Poulsbo. This driver is a stub driver for Poulsbo that will call
+	  poulsbo.ko to enable the acpi backlight control sysfs entry file
+	  because there have no poulsbo native driver can support intel
+	  opregion.
drivers/gpu/stub/Makefile new file +1 -0
new file mode 100644
index 0000000..cd940cc
@@ -0,0 +1 @@
+obj-$(CONFIG_STUB_POULSBO) += poulsbo.o
drivers/gpu/stub/poulsbo.c new file +63 -0

63 lines not on this page · raw message

drivers/video/Kconfig +2 -0
index 8b31fdf..8807ae5 100644
@@ -17,6 +17,8 @@ source "drivers/gpu/vga/Kconfig"
 
 source "drivers/gpu/drm/Kconfig"
 
+source "drivers/gpu/stub/Kconfig"
+
 config VGASTATE
        tristate
        default n
Signature · 1 line
1.6.0.2
#1 lore raw

drivers/gpu/stub/Kconfig

Quoted 5 lines · Chun-Yi
drivers/gpu/stub/Kconfig new file +4 -0
+        select ACPI_VIDEO if ACPI
+	help
+	  Choose this option if you have a system that has Intel Poulsbo
+	  integrated graphics.

Can we have a part number or something here? When I buy a system from Dell or someplace, the spec sheet doesn't say 'Poulsbo', it says 'i945' or 'i987' or something like that.

(If this is a not-yet-escaped-from-engineering new part, maybe a follow-up patch when the part is officially named/announced?)