Wed Feb 20 17:04:13 2019 UTC ()
Make the initialization sequence for the eDP bridge more robust, now
mine (and Lex') pinebook always come up with working display.
Many thanks to Jared for helping to track this down.
(martin)
diff -r1.3 -r1.4 pkgsrc/sysutils/arm-trusted-firmware-sun50iw1p1/Makefile
diff -r1.4 -r1.5 pkgsrc/sysutils/arm-trusted-firmware-sun50iw1p1/distinfo
diff -r0 -r1.1 pkgsrc/sysutils/arm-trusted-firmware-sun50iw1p1/patches/patch-plat_sun50iw1p1_sunxi__power.c
--- pkgsrc/sysutils/arm-trusted-firmware-sun50iw1p1/Attic/Makefile 2018/05/26 17:29:44 1.3
+++ pkgsrc/sysutils/arm-trusted-firmware-sun50iw1p1/Attic/Makefile 2019/02/20 17:04:13 1.4
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.3 2018/05/26 17:29:44 jmcneill Exp $
+# $NetBSD: Makefile,v 1.4 2019/02/20 17:04:13 martin Exp $
VERSION= 20180210
GITHUB_PROJECT= arm-trusted-firmware
GITHUB_TAG= c9f55c023164a6c8c49f70f7ac6c68c626839d6f
+PKGREVISION= 1
PKGNAME= ${GITHUB_PROJECT}-sun50iw1p1-${VERSION}
DISTNAME= ${PKGNAME}
--- pkgsrc/sysutils/arm-trusted-firmware-sun50iw1p1/Attic/distinfo 2018/05/26 17:29:44 1.4
+++ pkgsrc/sysutils/arm-trusted-firmware-sun50iw1p1/Attic/distinfo 2019/02/20 17:04:13 1.5
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.4 2018/05/26 17:29:44 jmcneill Exp $
+$NetBSD: distinfo,v 1.5 2019/02/20 17:04:13 martin Exp $
SHA1 (arm-trusted-firmware-sun50iw1p1-20180210-c9f55c023164a6c8c49f70f7ac6c68c626839d6f.zip) = 5d4fd8aa57420cfaaab9a04054cebf89c9f8c69a
RMD160 (arm-trusted-firmware-sun50iw1p1-20180210-c9f55c023164a6c8c49f70f7ac6c68c626839d6f.zip) = bb206350589ecb556b20629728018cf79a0d35bd
SHA512 (arm-trusted-firmware-sun50iw1p1-20180210-c9f55c023164a6c8c49f70f7ac6c68c626839d6f.zip) = 477983b7fa7dd11b74edd12b7b6d20d573cfc86c08912c60967a0c66808432223a013e2049999b177ac740baf7a18f9fae151f418c03a7ab17f5d46075c7eaf1
Size (arm-trusted-firmware-sun50iw1p1-20180210-c9f55c023164a6c8c49f70f7ac6c68c626839d6f.zip) = 1067184 bytes
SHA1 (patch-Makefile) = f16622a17a4f6aa3f0c339c35e87f8d889c6d7aa
+SHA1 (patch-plat_sun50iw1p1_sunxi__power.c) = 3952b12726a9d6c4c62abdd7ba6d3c91b29770ec
$NetBSD: patch-plat_sun50iw1p1_sunxi__power.c,v 1.1 2019/02/20 17:04:13 martin Exp $
Fix power up sequence for pinebook display / eDP bridge.
--- plat/sun50iw1p1/sunxi_power.c.orig 2018-04-03 00:27:49.000000000 +0200
+++ plat/sun50iw1p1/sunxi_power.c 2019-02-19 14:39:16.148546954 +0100
@@ -266,6 +266,9 @@ static int pmic_setup(const char *dt_nam
ret = sunxi_pmic_read(0x12);
sunxi_pmic_write(0x12, ret | 0x10);
+ /* the ANX data sheet is rumored to say we need to wait for 2ms */
+ udelay(2000);
+
sunxi_pmic_write(0x1c, 0x0a); /* FLDO1 = HSIC = 1.2V */
ret = sunxi_pmic_read(0x13);
sunxi_pmic_write(0x13, ret | 0x4);