T2M Flame updates (#560)

* Fix t2m-flame MDSS driver issues
* Fix path in firmware-t2m-flame
* Remove unneccesary FB hacks
* Fix touchscreen on T2M Flame
* Remove unneeded initfs-hook.sh
* Add patch number prefixes
This commit is contained in:
Yuval Adam 2017-09-13 22:46:45 +03:00 committed by Oliver Smith
parent cf0f710f53
commit 527948ec91
9 changed files with 91 additions and 18 deletions

View file

@ -1,5 +1,3 @@
# use 'weston-calibrator' to calibrate the touchscreen!
SUBSYSTEM=="input", ATTRS{name}=="touch_dev", \
SUBSYSTEM=="input", ATTRS{name}=="Goodix-TS", \
ENV{ID_INPUT}="1", ENV{ID_INPUT_TOUCHSCREEN}="1" \
ENV{WL_CALIBRATION}="0.982113 -0.006129 1.983124 -0.002560 1.000800 -6.012451"
ENV{WL_CALIBRATION}="0.904965 0.063683 -7.812866 -0.039802 1.052755 -10.156433"

View file

@ -1,6 +1,6 @@
pkgname=device-t2m-flame
pkgver=1
pkgrel=2
pkgrel=4
pkgdesc="Mozilla Flame"
url="https://github.com/postmarketOS"
arch="noarch"
@ -9,7 +9,7 @@ depends="linux-t2m-flame firmware-t2m-flame mkbootimg"
makedepends=""
install="$pkgname.post-install"
subpackages=""
source="deviceinfo initfs-hook.sh 90-android-touch-dev.rules $install"
source="deviceinfo 90-android-touch-dev.rules $install"
options="!check"
build() {
@ -26,6 +26,5 @@ package() {
}
sha512sums="55be27dc159d09931ad5fee519292db21df38180e557ad913339030be41423e107e2848e7374204b19872e1a160168690c1800047556ae1b0ca5a03c396aa318 deviceinfo
29f7be2df62a48604cfbb48bc2192ac309b36b0bf0f02819fdbb240868ff382c0cf17baf1ad8c84361474a2218ec34bdb28ae3ccd940b2560d1b1e281449c48d initfs-hook.sh
ee25f3d0377f027d108593eb7953b8db49d7f05a5c36a0c8ca7e7849d15e3c217bc1ac97d77a66e28d2db4b81c0f50b905639911276da40321d2b6cca7f797df 90-android-touch-dev.rules
25256120a19cba6b6f9ae0cda7b2c8c84d168a6457e82afee438d50d2c28b9598bfe690301c15156d866b77cd87652d9b7cc3d9b0637f69414aae09fec159c91 90-android-touch-dev.rules
0a301a723f2a6ad8285fa8c016a73b0d05ae9811a8c96cd73f6db274e85676f7b3d427ede46484665fd613b67ef42330f0b69413328c04c3f489db86c5aa9038 device-t2m-flame.post-install"

View file

@ -1,5 +0,0 @@
#!/bin/sh
fbdev=/sys/class/graphics/fb0
echo "480,1708" > $fbdev/virtual_size
cat $fbdev/modes > $fbdev/mode

View file

@ -0,0 +1,25 @@
From 16cb015cfc3adc6a91aa560343a22a681804a481 Mon Sep 17 00:00:00 2001
From: Yuval Adam <_@yuv.al>
Date: Mon, 11 Sep 2017 21:33:10 +0300
Subject: [PATCH] Fix fb_imgType
---
drivers/video/msm/mdss/mdss_fb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/video/msm/mdss/mdss_fb.c b/drivers/video/msm/mdss/mdss_fb.c
index 76d97074..b20d75a9 100644
--- a/drivers/video/msm/mdss/mdss_fb.c
+++ b/drivers/video/msm/mdss/mdss_fb.c
@@ -454,7 +454,7 @@ static int mdss_fb_probe(struct platform_device *pdev)
mfd->bl_level = 0;
mfd->bl_scale = 1024;
mfd->bl_min_lvl = 30;
- mfd->fb_imgType = MDP_RGBA_8888;
+ mfd->fb_imgType = MDP_RGB_888;
mfd->pdev = pdev;
if (pdata->next)
--
2.14.1

View file

@ -0,0 +1,25 @@
From 6afa08808e2e76f56fcd9665deab93b19d42151c Mon Sep 17 00:00:00 2001
From: Yuval Adam <_@yuv.al>
Date: Mon, 11 Sep 2017 09:37:12 +0300
Subject: [PATCH] Fix mdp3_ctrl_off
---
drivers/video/msm/mdss/mdp3_ctrl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/video/msm/mdss/mdp3_ctrl.c b/drivers/video/msm/mdss/mdp3_ctrl.c
index 28ac7fe5..91aba12a 100644
--- a/drivers/video/msm/mdss/mdp3_ctrl.c
+++ b/drivers/video/msm/mdss/mdp3_ctrl.c
@@ -1771,7 +1771,7 @@ int mdp3_ctrl_init(struct msm_fb_data_type *mfd)
splash_mismatch = 1;
mdp3_interface->on_fnc = mdp3_ctrl_on;
- mdp3_interface->off_fnc = mdp3_ctrl_off;
+ mdp3_interface->off_fnc = NULL;
mdp3_interface->do_histogram = NULL;
mdp3_interface->cursor_update = NULL;
mdp3_interface->dma_fnc = mdp3_ctrl_pan_display;
--
2.14.1

View file

@ -0,0 +1,25 @@
From 0f79de020117b8e396983421ef47f690eccd3812 Mon Sep 17 00:00:00 2001
From: Yuval Adam <_@yuv.al>
Date: Tue, 15 Aug 2017 12:05:19 +0300
Subject: [PATCH 1/2] Fix 60hz clock
---
drivers/video/msm/mdss/mdss_fb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/video/msm/mdss/mdss_fb.c b/drivers/video/msm/mdss/mdss_fb.c
index d4a236a0..76d97074 100644
--- a/drivers/video/msm/mdss/mdss_fb.c
+++ b/drivers/video/msm/mdss/mdss_fb.c
@@ -1219,7 +1219,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;
/* id field for fb app */
--
2.14.1

View file

@ -34,7 +34,10 @@ source="
compiler-gcc6.h
00_fix_return_address.patch
02_gpu-msm-fix-gcc5-compile.patch
add-missing-dtbs.patch
03_add-missing-dtbs.patch
04_fix-fb-imgtype.patch
05_fix-mdp3-ctrl-off.patch
06_fix-clock.patch
"
subpackages=""
license="GPL2"
@ -119,9 +122,12 @@ package() {
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
}
sha512sums="76288c37192c92c7dfd7d9a7e1f8fb299f4e6fdc09e5ab9049efc5c1b67475b135821995999e1f96a13baba4605cf53908c5d29cf860ed4e94c9733add169a56 linux-t2m-flame-03396c93577aafae7ca3603de1c74eafd30e7d54.tar.gz
sha512sums="f16194d7bf254201290cff2b6eddc8bb8944e28e78d57f64f1feba54be053845873c27b385db286ca50f020102a2bcd5dc53454d5c0526ceb99f970a694f0a17 linux-t2m-flame-03396c93577aafae7ca3603de1c74eafd30e7d54.tar.gz
28d4f4d0e1f0f55d06d05ad2a62560aa611f9611084b6653df9dd381323509c534227d1058acfad2c7bf014289b4f2a253ce47847c6fe5423688ec0998fb6056 config-t2m-flame.armhf
d80980e9474c82ba0ef1a6903b434d8bd1b092c40367ba543e72d2c119301c8b2d05265740e4104ca1ac5d15f6c4aa49e8776cb44264a9a28dc551e0d1850dcc compiler-gcc6.h
ea1d3b5a234fa565e3c1a792de48f4fc4e6023d281d303c8e319c7ef28edc5739ab0e4dea0139a41f0a5c7d03e27921ccaa214fd0ac5c72245a094ce60128864 00_fix_return_address.patch
7be03a9e78b7ac330a54b1f00509caa0621a95c0c55901878ad757f9dd69cc05ba2c8b5ea987063ae1224f92c4d090d515fa5d369e7755181a4871b0d0f82881 02_gpu-msm-fix-gcc5-compile.patch
ee53d221cad0970316f16ff52927b9a133a2297b61a61976bd75c07b735b4c87d0a7e6b37d9a849460ec57f6da097801c9ae110b95f33756ca23a148ef86a1d2 add-missing-dtbs.patch"
ee53d221cad0970316f16ff52927b9a133a2297b61a61976bd75c07b735b4c87d0a7e6b37d9a849460ec57f6da097801c9ae110b95f33756ca23a148ef86a1d2 03_add-missing-dtbs.patch
8b7615530d6c423ffb1bd3e99a28c045f5586fac9e586dea11d68e5d41dea1b161e2bba915547db94fb1f1fecc2e98c23b3aa7b2736255616440371c827fcab2 04_fix-fb-imgtype.patch
f239137a5664515016190effa9f6385b18b599bad48892cb7337723438c0d3d6dc10a719c0733ccb27a93198ceef9daf332146be2e906c591caab92f53869ae4 05_fix-mdp3-ctrl-off.patch
4b0dc5d425c9a6191a8cd3896ffd9adacdb5706a3b31e38f434ec131880fdb75e1717abb54f042c032c512575a1cec2eb63fff9ec87198d2e5f47260f04c721c 06_fix-clock.patch"

View file

@ -1,6 +1,6 @@
pkgname=firmware-t2m-flame
pkgver=1
pkgrel=2
pkgrel=3
pkgdesc="Mozilla Flame Firmware"
url="https://github.com/yuvadm/mozilla-flame-firmware"
arch="noarch"
@ -15,7 +15,7 @@ options="!check !strip !archcheck"
package() {
mkdir -p "$pkgdir/lib/firmware/postmarketos"
for fw in $(find "${srcdir}/t2m-flame-firmware-${_hash}/" -type f)
for fw in $(find "${srcdir}/mozilla-flame-firmware-${_hash}/" -type f)
do
install -m644 $fw "$pkgdir/lib/firmware/postmarketos/"
done