summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authormartin <martin@pkgsrc.org>2019-02-20 17:04:13 +0000
committermartin <martin@pkgsrc.org>2019-02-20 17:04:13 +0000
commitc3ecfdbc2c6f07976d96cd4ceffb57cdfb2b8faf (patch)
treea39b01d6a6592aa13bd85098cc3bd69d5f54a6dd /sysutils
parent0ce6826c566172edaed07c329fbb19a592539740 (diff)
downloadpkgsrc-c3ecfdbc2c6f07976d96cd4ceffb57cdfb2b8faf.tar.gz
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 (limited to 'sysutils')
-rw-r--r--sysutils/arm-trusted-firmware-sun50iw1p1/Makefile3
-rw-r--r--sysutils/arm-trusted-firmware-sun50iw1p1/distinfo3
-rw-r--r--sysutils/arm-trusted-firmware-sun50iw1p1/patches/patch-plat_sun50iw1p1_sunxi__power.c16
3 files changed, 20 insertions, 2 deletions
diff --git a/sysutils/arm-trusted-firmware-sun50iw1p1/Makefile b/sysutils/arm-trusted-firmware-sun50iw1p1/Makefile
index f0c59fdf815..5e7b60d8cd7 100644
--- a/sysutils/arm-trusted-firmware-sun50iw1p1/Makefile
+++ b/sysutils/arm-trusted-firmware-sun50iw1p1/Makefile
@@ -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 --git a/sysutils/arm-trusted-firmware-sun50iw1p1/distinfo b/sysutils/arm-trusted-firmware-sun50iw1p1/distinfo
index 236151c8fb7..b6d07433a80 100644
--- a/sysutils/arm-trusted-firmware-sun50iw1p1/distinfo
+++ b/sysutils/arm-trusted-firmware-sun50iw1p1/distinfo
@@ -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 --git a/sysutils/arm-trusted-firmware-sun50iw1p1/patches/patch-plat_sun50iw1p1_sunxi__power.c b/sysutils/arm-trusted-firmware-sun50iw1p1/patches/patch-plat_sun50iw1p1_sunxi__power.c
new file mode 100644
index 00000000000..0c94ca6c3d0
--- /dev/null
+++ b/sysutils/arm-trusted-firmware-sun50iw1p1/patches/patch-plat_sun50iw1p1_sunxi__power.c
@@ -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);