k3screenctrl: fix PHICOMM K3 screen display off

This commit is contained in:
lean 2022-01-02 12:07:07 +08:00
parent 7b75725731
commit 5e4693f2ac
3 changed files with 29 additions and 1 deletions

View File

@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=k3screenctrl
PKG_VERSION:=0.10
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/updateing/k3screenctrl.git

View File

@ -0,0 +1,16 @@
diff -Nuar a/src/infocenter.c b/src/infocenter.c
--- a/src/infocenter.c 2017-05-02 19:49:08.000000000 +0800
+++ b/src/infocenter.c 2021-12-29 17:37:00.837529076 +0800
@@ -116,9 +116,10 @@
* be malformatted and the results are not reliable.
*/
const char *stopped_at = tokenize_and_store(out, '\n', stores, store_len);
+ int ret = *stopped_at == 0 ? SUCCESS : FAILURE;
+
free((void *)out);
-
- return *stopped_at == 0 ? SUCCESS : FAILURE;
+ return ret;
}
BASIC_INFO g_basic_info;

View File

@ -0,0 +1,12 @@
diff -Nuar a/arch/arm/boot/dts/bcm5301x.dtsi b/arch/arm/boot/dts/bcm5301x.dtsi
--- a/arch/arm/boot/dts/bcm5301x.dtsi 2021-12-29 16:55:29.441523015 +0800
+++ b/arch/arm/boot/dts/bcm5301x.dtsi 2021-12-29 17:03:44.640694605 +0800
@@ -38,8 +38,6 @@
reg = <0x0400 0x100>;
interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&iprocslow>;
- pinctrl-names = "default";
- pinctrl-0 = <&pinmux_uart1>;
status = "disabled";
};
};