OSDN Git Service

Add nouveau support
authorChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 29 Jan 2015 06:34:42 +0000 (14:34 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 29 Jan 2015 06:34:42 +0000 (14:34 +0800)
This enables the nouveau gallium driver in mesa and
gralloc_drm_nouveau in drm_gralloc.

BoardConfig.mk
init.sh

index c4a554e..af80237 100644 (file)
@@ -78,7 +78,7 @@ WPA_SUPPLICANT_VERSION ?= VER_0_8_X
 WIFI_DRIVER_MODULE_PATH ?= auto
 
 #BOARD_GPU_DRIVERS ?= i915 i965 ilo r300g r600g nouveau vmwgfx
-BOARD_GPU_DRIVERS ?= i915 i965 swrast r300g r600g
+BOARD_GPU_DRIVERS ?= i915 i965 nouveau r300g r600g swrast
 ifneq ($(strip $(BOARD_GPU_DRIVERS)),)
 TARGET_HARDWARE_3D := true
 BOARD_EGL_CFG ?= device/generic/x86/gpu/egl_mesa.cfg
diff --git a/init.sh b/init.sh
index 48836d2..bd3808f 100644 (file)
--- a/init.sh
+++ b/init.sh
@@ -100,12 +100,10 @@ function init_uvesafb()
 function init_hal_gralloc()
 {
        case "$(cat /proc/fb | head -1)" in
-               0*inteldrmfb|0*radeondrmfb)
+               0*inteldrmfb|0*radeondrmfb|0*nouveaufb|0*svgadrmfb)
                        set_property hal.gralloc drm
                        set_drm_mode
                        ;;
-               0*svgadrmfb)
-                       ;;
                "")
                        init_uvesafb
                        ;&