Browse Source

change lcd 1280*480

kvvipa 4 years ago
parent
commit
0a7699bd21

+ 1 - 34
buildroot-external/board/arkmicro/ark1668e_devb_emmc/rootfs_overlay/etc/init.d/S04qtlaunch

@@ -1,38 +1,5 @@
 export QTDIR=/usr
-export QT_QPA_FONTDIR=$QTDIR/lib/qt/fonts
-#export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb0
-export QT_QPA_PLATFORM=eglfs
-export QT_QPA_EGLFS_INTEGRATION=eglfs_mali
-export QT_QPA_EGLFS_DEBUG=1
-export QT_QPA_EGLFS_FORCEVSYNC=1
-#export QT_QPA_EGLFS_FORCE888=1
-export QT_QPA_PLATFORM_PLUGIN_PATH=$QTDIR/lib/qt/plugins
-export QT_QPA_GENERIC_PLUGINS=evdevtouch:/dev/input/event0
 export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
 export MALI_NOCLEAR=1
 
-start() {
-	eval `dbus-launch --auto-syntax`
-	DashBoard &
-}
-
-stop() {
-	echo "stop"
-}
-
-restart() {
-	stop
-	sleep 1
-	start
-}
-
-case "$1" in
-	start|stop|restart)
-		"$1";;
-	reload)
-		# Restart, since there is no true "reload" feature.
-		restart;;
-	*)
-		echo "Usage: $0 {start|stop|restart|reload}"
-		exit 1
-esac
+/etc/build_adb.sh &

+ 10 - 10
linux/arch/arm/boot/dts/ark1668e_devb_emmc.dts

@@ -172,7 +172,7 @@
 	display0: display@0 {
 		interface-type = "DLVDS";
 		lvds-con = <0x4545>;
-		lvds-con2 = <0xfa200141>;
+		lvds-con2 = <0xfa000101>;
 		bits-per-pixel = <32>;
 		power-control-gpio = <&gportd 0 GPIO_ACTIVE_HIGH>;
 		lcd-wiring-mode = "RGB";
@@ -185,15 +185,15 @@
 		display-timings {
 			native-mode = <&timing0>;
 			timing0: timing0 {
-				clock-frequency = <120000000>;
-				hactive = <1920>;
-				vactive = <720>;
-				hback-porch = <300>;
-				hfront-porch = <240>;
-				vback-porch = <80>;
-				vfront-porch = <80>;
-				hsync-len = <36>;
-				vsync-len = <18>;
+				clock-frequency = <40000000>;
+				hactive = <1280>;
+				vactive = <480>;
+				hback-porch = <20>;
+				hfront-porch = <45>;
+				vback-porch = <5>;
+				vfront-porch = <10>;
+				hsync-len = <5>;
+				vsync-len = <6>;
 				hsync-active = <1>;
 				vsync-active = <1>;
 				de-active = <0>;

+ 10 - 10
u-boot/arch/arm/dts/ark1668e_devb_emmc.dts

@@ -226,7 +226,7 @@
 					0x4e200000 0x100000>;
 			interface-type = "DLVDS";
 			lvds-con = <0x4545>;
-			lvds-con2 = <0xfa200141>;
+			lvds-con2 = <0xfa000101>;
 			bits-per-pixel = <32>;
 			power-control-gpio = <&gportd 0 GPIO_ACTIVE_HIGH>;
 			lcd-wiring-mode = "RGB";
@@ -238,15 +238,15 @@
 			display-timings {
 				native-mode = <&timing0>;
 				timing0: timing0 {
-					clock-frequency = <120000000>;
-					hactive = <1920>;
-					vactive = <720>;
-					hback-porch = <300>;
-					hfront-porch = <240>;
-					vback-porch = <80>;
-					vfront-porch = <80>;
-					hsync-len = <36>;
-					vsync-len = <18>;
+					clock-frequency = <40000000>;
+					hactive = <1280>;
+					vactive = <480>;
+					hback-porch = <20>;
+					hfront-porch = <45>;
+					vback-porch = <5>;
+					vfront-porch = <10>;
+					hsync-len = <5>;
+					vsync-len = <6>;
 					hsync-active = <1>;
 					vsync-active = <1>;
 					de-active = <0>;