summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2015-07-09 21:45:55 -0700
committerJohn Stultz <john.stultz@linaro.org>2016-04-26 10:18:56 -0700
commit597c91b7fd25a3d263922a3bd7f1c03f81279d42 (patch)
tree2e96cd68e7233bbf049f8f06b3ae3e993b56a71d
parent096c3c87f9da05361cd67f09e66db3b13d7ab392 (diff)
downloadflo-597c91b7fd25a3d263922a3bd7f1c03f81279d42.tar.gz
flo: Add support for freedreno on flo
This patch removes much of the qualcomm adreno support and enables DRM based gralloc and hwcomposer to use the freedreno driver on the nexus7 (flo). Signed-off-by: John Stultz <john.stultz@linaro.org>
-rwxr-xr-xBoardConfigCommon.mk6
-rw-r--r--device-common.mk37
-rw-r--r--egl.cfg2
-rw-r--r--init.flo.rc8
-rw-r--r--ueventd.flo.rc1
5 files changed, 19 insertions, 35 deletions
diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk
index 96d761f..fb9cb28 100755
--- a/BoardConfigCommon.mk
+++ b/BoardConfigCommon.mk
@@ -59,6 +59,10 @@ WIFI_DRIVER_FW_PATH_AP := "ap"
BOARD_EGL_CFG := device/asus/flo/egl.cfg
+BOARD_USES_DRM_HWCOMPOSER := true
+BOARD_GPU_DRIVERS := freedreno
+
+
#BOARD_USES_HGL := true
#BOARD_USES_OVERLAY := true
USE_OPENGL_RENDERER := true
@@ -109,7 +113,7 @@ TARGET_USES_POST_PROCESSING := true
TARGET_CUSTOM_DISPLAY_TUNING := true
USE_DEVICE_SPECIFIC_QCOM_PROPRIETARY := true
-OVERRIDE_RS_DRIVER := libRSDriver_adreno.so
+#OVERRIDE_RS_DRIVER := libRSDriver_adreno.so
USE_DEVICE_SPECIFIC_CAMERA:= true
diff --git a/device-common.mk b/device-common.mk
index 3400109..a96c951 100644
--- a/device-common.mk
+++ b/device-common.mk
@@ -121,9 +121,6 @@ PRODUCT_COPY_FILES += \
endif
PRODUCT_PROPERTY_OVERRIDES += \
- ro.opengles.version=196608
-
-PRODUCT_PROPERTY_OVERRIDES += \
ro.sf.lcd_density=320
# Audio Configuration
@@ -158,21 +155,10 @@ PRODUCT_PACKAGES += \
setup_fs
PRODUCT_PACKAGES += \
- libgenlock \
- liboverlay \
- hwcomposer.msm8960 \
- gralloc.msm8960 \
- copybit.msm8960 \
- keystore.msm8960 \
- memtrack.msm8960
-
-PRODUCT_PACKAGES += \
- alsa.msm8960 \
- audio.primary.msm8960 \
- audio.a2dp.default \
- audio.usb.default \
- audio.r_submix.default \
- libaudio-resampler
+ libGLES_mesa \
+ libGLES_android \
+ hwcomposer.drm \
+ gralloc.drm
# Voice processing
PRODUCT_PACKAGES += \
@@ -197,21 +183,6 @@ PRODUCT_COPY_FILES += \
PRODUCT_PROPERTY_OVERRIDES += \
ro.qualcomm.bt.hci_transport=smd
-PRODUCT_PACKAGES += \
- libmmcamera_interface2 \
- libmmcamera_interface \
- libqomx_core
-
-PRODUCT_PACKAGES += \
- mm-vdec-omx-test \
- mm-venc-omx-test720p \
- libdivxdrmdecrypt \
- libOmxVdec \
- libOmxVenc \
- libOmxCore \
- libstagefrighthw \
- libc2dcolorconvert
-
# GPS
PRODUCT_PACKAGES += \
libloc_adapter \
diff --git a/egl.cfg b/egl.cfg
index 2a11ba2..a25ebb5 100644
--- a/egl.cfg
+++ b/egl.cfg
@@ -1,2 +1,2 @@
0 0 android
-0 1 adreno
+0 1 freedreno
diff --git a/init.flo.rc b/init.flo.rc
index 1a82fc8..67e2f8e 100644
--- a/init.flo.rc
+++ b/init.flo.rc
@@ -22,6 +22,14 @@ on early-init
chown system system /sys/kernel/debug/kgsl/proc
symlink /data/tombstones /tombstones
+ setprop ro.hardware.gralloc drm
+ setprop ro.hardware.hwcomposer drm
+ setprop debug.sf.no_hw_vsync 1
+ setprop hwc.drm.use_framebuffer_target 1
+ setprop hwc.drm.use_overlay_planes 0
+
+
+
on init
# Support legacy paths
symlink /sdcard /mnt/sdcard
diff --git a/ueventd.flo.rc b/ueventd.flo.rc
index ccf03d5..c7eec75 100644
--- a/ueventd.flo.rc
+++ b/ueventd.flo.rc
@@ -41,3 +41,4 @@
/dev/gss 0660 system gps
/dev/ks_hsic_bridge 0660 system system
/dev/efs_hsic_bridge 0660 system system
+/dev/sw_sync 0660 root graphics