|
发表于 2015-5-29 11:22:21
只看该作者
推荐
本帖最后由 fire-juz 于 2015-5-29 11:24 编辑
你好!
更改屏幕默认方向的方法如下:
--- a/kernel/arch/arm/boot/dts/firefly-rk3288.dts
+++ b/kernel/arch/arm/boot/dts/firefly-rk3288.dts
@@ -709,7 +709,7 @@
&lcdc1 {
status = "okay";
- rockchip,mirror = <ROTATE_270>;
+ rockchip,mirror = <NO_MIRROR>;
};
将dts里rockchip,mirror = <ROTATE_270>;改成 rockchip,mirror = <NO_MIRROR>;
然后在对应的lcd.dtsi里更改对应的分辨率即可:(将 hactive与 vactive更改到合适的分辨率,如下:)
--- a/kernel/arch/arm/boot/dts/lcd-ips5k0350fpc-mipi.dtsi
+++ b/kernel/arch/arm/boot/dts/lcd-ips5k0350fpc-mipi.dtsi
@@ -212,8 +212,8 @@
out-face = <OUT_P888>;
color-mode = <COLOR_RGB>;
clock-frequency = <120000000>;
- hactive = <1080>;
- vactive = <1920>;
+ hactive = <1920>;
+ vactive = <1080>;
|
|