Initial support for display output on Pinebook Pro
This commit is contained in:
parent
6513475170
commit
003e91fbfc
1027
rk3399-Pinebook-pro-EDP-support.patch
Normal file
1027
rk3399-Pinebook-pro-EDP-support.patch
Normal file
File diff suppressed because it is too large
Load Diff
46
rk3399-reset-display-hack.patch
Normal file
46
rk3399-reset-display-hack.patch
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
[HACK NOTFORMERGE] PBP: Fix panel reset
|
||||||
|
|
||||||
|
On warm reset, the pinebook pro panel is not working correctly.
|
||||||
|
The issue is not yet debugged so, for now, this hack seems to be
|
||||||
|
enough. It toggles the GPIO1_C6 gpio [ LCDVCC_EN signal in the
|
||||||
|
schematics ] used by the vcc3v3_panel regulator.
|
||||||
|
|
||||||
|
There's no gpio_request, since the gpio is already in use at this
|
||||||
|
stage, so it can only fail.
|
||||||
|
Index: u-boot/board/pine64/pinebook-pro-rk3399/pinebook-pro-rk3399.c
|
||||||
|
===================================================================
|
||||||
|
--- u-boot.orig/board/pine64/pinebook-pro-rk3399/pinebook-pro-rk3399.c
|
||||||
|
+++ u-boot/board/pine64/pinebook-pro-rk3399/pinebook-pro-rk3399.c
|
||||||
|
@@ -7,9 +7,12 @@
|
||||||
|
#include <common.h>
|
||||||
|
#include <dm.h>
|
||||||
|
#include <syscon.h>
|
||||||
|
+#include <linux/delay.h>
|
||||||
|
+#include <asm/gpio.h>
|
||||||
|
#include <asm/io.h>
|
||||||
|
#include <asm/arch-rockchip/clock.h>
|
||||||
|
#include <asm/arch-rockchip/grf_rk3399.h>
|
||||||
|
+#include <asm/arch-rockchip/gpio.h>
|
||||||
|
#include <asm/arch-rockchip/hardware.h>
|
||||||
|
#include <asm/arch-rockchip/misc.h>
|
||||||
|
#include <power/regulator.h>
|
||||||
|
@@ -59,6 +62,7 @@ int misc_init_r(void)
|
||||||
|
const u32 cpuid_length = 0x10;
|
||||||
|
u8 cpuid[cpuid_length];
|
||||||
|
int ret;
|
||||||
|
+ unsigned int gpio;
|
||||||
|
|
||||||
|
setup_iodomain();
|
||||||
|
|
||||||
|
@@ -70,6 +74,11 @@ int misc_init_r(void)
|
||||||
|
if (ret)
|
||||||
|
return ret;
|
||||||
|
|
||||||
|
+ gpio_lookup_name("B22", NULL, NULL, &gpio);
|
||||||
|
+ gpio_direction_output(gpio, 0);
|
||||||
|
+ mdelay(500);
|
||||||
|
+ gpio_direction_output(gpio, 1);
|
||||||
|
+
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
#endif
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: uboot-tools
|
Name: uboot-tools
|
||||||
Version: 2020.10
|
Version: 2020.10
|
||||||
Release: 0.5%{?candidate:.%{candidate}}%{?dist}
|
Release: 0.6%{?candidate:.%{candidate}}%{?dist}
|
||||||
Summary: U-Boot utilities
|
Summary: U-Boot utilities
|
||||||
License: GPLv2+ BSD LGPL-2.1+ LGPL-2.0+
|
License: GPLv2+ BSD LGPL-2.1+ LGPL-2.0+
|
||||||
URL: http://www.denx.de/wiki/U-Boot
|
URL: http://www.denx.de/wiki/U-Boot
|
||||||
@ -33,8 +33,10 @@ Patch10: AllWinner-PineTab.patch
|
|||||||
# Rockchips improvements
|
# Rockchips improvements
|
||||||
Patch11: arm-rk3399-enable-rng-on-rock960-and-firefly3399.patch
|
Patch11: arm-rk3399-enable-rng-on-rock960-and-firefly3399.patch
|
||||||
Patch12: rockchip-Rock960-Fix-up-USB-support.patch
|
Patch12: rockchip-Rock960-Fix-up-USB-support.patch
|
||||||
|
Patch13: rk3399-Pinebook-pro-EDP-support.patch
|
||||||
|
Patch14: rk3399-reset-display-hack.patch
|
||||||
# TI fixes
|
# TI fixes
|
||||||
Patch13: 0001-Fix-BeagleAI-detection.patch
|
Patch15: 0001-Fix-BeagleAI-detection.patch
|
||||||
|
|
||||||
BuildRequires: bc
|
BuildRequires: bc
|
||||||
BuildRequires: dtc
|
BuildRequires: dtc
|
||||||
@ -248,6 +250,9 @@ cp -p board/warp7/README builds/docs/README.warp7
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Sep 27 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 2020.10-0.6.rc5
|
||||||
|
- Initial support for display output on Pinebook Pro
|
||||||
|
|
||||||
* Tue Sep 22 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 2020.10-0.5.rc5
|
* Tue Sep 22 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 2020.10-0.5.rc5
|
||||||
- Update to 2020.10 RC5
|
- Update to 2020.10 RC5
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user