From 5a32e48eef23f68f3cfa3e42a5b40b0703a64495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Attila=20Sz=C3=B6ll=C5=91si?= Date: Tue, 8 Aug 2017 18:50:11 +0200 Subject: [PATCH] Fix refresh rate on sony-amami (#348) Patch added to hardcode pixclock in framebuffer driver --- device/linux-sony-amami/APKBUILD | 6 ++++-- device/linux-sony-amami/mdss_fb_refresh_rate.patch | 13 +++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 device/linux-sony-amami/mdss_fb_refresh_rate.patch diff --git a/device/linux-sony-amami/APKBUILD b/device/linux-sony-amami/APKBUILD index 1c897566a..968d2b8f2 100644 --- a/device/linux-sony-amami/APKBUILD +++ b/device/linux-sony-amami/APKBUILD @@ -22,7 +22,7 @@ case $pkgver in *.*.*) _kernver=${pkgver%.*};; *.*) _kernver=$pkgver;; esac -pkgrel=5 +pkgrel=6 arch="armhf" pkgdesc="Sony Xperia Z1 Compact kernel" url="https://github.com/sonyxperiadev/kernel" @@ -34,6 +34,7 @@ source=" $pkgname-$_hash.tar.gz::https://github.com/sonyxperiadev/kernel/archive/${_hash}.tar.gz $_config compiler-gcc6.h + mdss_fb_refresh_rate.patch " subpackages="" license="GPL2" @@ -105,4 +106,5 @@ package() { sha512sums="cd4af23a9a6898e7f1807758f8ba0c9e99b0e31e4452df2fe05632da1f28366773e403d17d81872ff00d78e620d079aa510759b6763b13e6e74392be0d726ea3 linux-sony-amami-d78970c1afd9fad52cb4402c7bcb9701e8a06d41.tar.gz dd345d9f7f499ecbba274c274351fe174cd189f000b3459ca7e7e2d234740bc1fc0ed5ce69eaac8509f5867efd2699df35d64b03d1643da01ba1401e599bbaa7 config-sony-amami.armhf -d80980e9474c82ba0ef1a6903b434d8bd1b092c40367ba543e72d2c119301c8b2d05265740e4104ca1ac5d15f6c4aa49e8776cb44264a9a28dc551e0d1850dcc compiler-gcc6.h" +d80980e9474c82ba0ef1a6903b434d8bd1b092c40367ba543e72d2c119301c8b2d05265740e4104ca1ac5d15f6c4aa49e8776cb44264a9a28dc551e0d1850dcc compiler-gcc6.h +a8c955bf718f155011e980f3d0948be98e1fee5649f418299a4851780543019daf7afa406aa7b0829375645107e4e6fbf241026b0cabe2b2ac895a47df83d2d8 mdss_fb_refresh_rate.patch" diff --git a/device/linux-sony-amami/mdss_fb_refresh_rate.patch b/device/linux-sony-amami/mdss_fb_refresh_rate.patch new file mode 100644 index 000000000..78e7cfbba --- /dev/null +++ b/device/linux-sony-amami/mdss_fb_refresh_rate.patch @@ -0,0 +1,13 @@ +diff --git a/drivers/video/msm/mdss/mdss_fb.c b/drivers/video/msm/mdss/mdss_fb.c +index b37fd1e07ac1..1f091a261d22 100644 +--- a/drivers/video/msm/mdss/mdss_fb.c ++++ b/drivers/video/msm/mdss/mdss_fb.c +@@ -2668,7 +2668,7 @@ static int mdss_fb_register(struct msm_fb_data_type *mfd) + var->left_margin = panel_info->lcdc.h_back_porch; + var->right_margin = panel_info->lcdc.h_front_porch; + var->hsync_len = panel_info->lcdc.h_pulse_width; +- var->pixclock = panel_info->clk_rate / 1000; ++ var->pixclock = 1000000 / 60; + + /* + * Store the cont splash state in the var reserved[3] field.