pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/arm-trusted-firmware-sun50iw1p1 Make the init...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e59f215eca13
branches:  trunk
changeset: 329998:e59f215eca13
user:      martin <martin%pkgsrc.org@localhost>
date:      Wed Feb 20 17:04:13 2019 +0000

description:
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.

diffstat:

 sysutils/arm-trusted-firmware-sun50iw1p1/Makefile                                     |   3 +-
 sysutils/arm-trusted-firmware-sun50iw1p1/distinfo                                     |   3 +-
 sysutils/arm-trusted-firmware-sun50iw1p1/patches/patch-plat_sun50iw1p1_sunxi__power.c |  16 ++++++++++
 3 files changed, 20 insertions(+), 2 deletions(-)

diffs (47 lines):

diff -r 0a66b62ea9e8 -r e59f215eca13 sysutils/arm-trusted-firmware-sun50iw1p1/Makefile
--- a/sysutils/arm-trusted-firmware-sun50iw1p1/Makefile Wed Feb 20 17:02:41 2019 +0000
+++ b/sysutils/arm-trusted-firmware-sun50iw1p1/Makefile Wed Feb 20 17:04:13 2019 +0000
@@ -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}
diff -r 0a66b62ea9e8 -r e59f215eca13 sysutils/arm-trusted-firmware-sun50iw1p1/distinfo
--- a/sysutils/arm-trusted-firmware-sun50iw1p1/distinfo Wed Feb 20 17:02:41 2019 +0000
+++ b/sysutils/arm-trusted-firmware-sun50iw1p1/distinfo Wed Feb 20 17:04:13 2019 +0000
@@ -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
diff -r 0a66b62ea9e8 -r e59f215eca13 sysutils/arm-trusted-firmware-sun50iw1p1/patches/patch-plat_sun50iw1p1_sunxi__power.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/arm-trusted-firmware-sun50iw1p1/patches/patch-plat_sun50iw1p1_sunxi__power.c     Wed Feb 20 17:04:13 2019 +0000
@@ -0,0 +1,16 @@
+$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);



Home | Main Index | Thread Index | Old Index