ronnie
2023-02-21 452e44bd1ae1c65461db849228ddbad77b42f172
添加lvds 1024x600 patch
4 files modified
56 ■■■■ changed files
android/device/softwinner/ceres-c3/ceres_c3.mk 4 ●●●● patch | view | raw | blame | history
longan/device/config/chips/a133/configs/c3/android/bootlogo.bmp patch | view | raw | blame | history
longan/device/config/chips/a133/configs/c3/board.dts 44 ●●●● patch | view | raw | blame | history
longan/kernel/linux-4.9/drivers/input/touchscreen/gt9xx/gt9xx.c 8 ●●●● patch | view | raw | blame | history
android/device/softwinner/ceres-c3/ceres_c3.mk
....@@ -256,10 +256,10 @@
256256
257257 # set primary display orientation to 270
258258 PRODUCT_PROPERTY_OVERRIDES += \
259
- ro.surface_flinger.primary_display_orientation=ORIENTATION_270
259
+ ro.surface_flinger.primary_display_orientation=ORIENTATION_0
260260 #feisi
261261 #ro.surface_flinger.primary_display_orientation=ORIENTATION_90
262
- #ro.surface_flinger.primary_display_orientation=ORIENTATION_0 \
262
+ #ro.surface_flinger.primary_display_orientation=ORIENTATION_270
263263
264264 PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
265265 ro.minui.default_rotation=ROTATION_LEFT \
longan/device/config/chips/a133/configs/c3/android/bootlogo.bmp
Binary files differ
longan/device/config/chips/a133/configs/c3/board.dts
....@@ -290,8 +290,8 @@
290290 ctp_twi_id = <0x0>;
291291 ctp_name = "gt9xx";
292292 reg = <0x5D>;
293
- ctp_screen_max_x = <800>;
294
- ctp_screen_max_y = <1280>;
293
+ ctp_screen_max_x = <1024>;
294
+ ctp_screen_max_y = <600>;
295295 ctp_revert_x_flag = <0x1>;
296296 ctp_revert_y_flag = <0x1>;
297297 ctp_exchange_x_y_flag = <0x0>;
....@@ -1303,8 +1303,8 @@
13031303 hdmi_mode_check = <1>;
13041304
13051305 fb0_format = <0>;
1306
- fb0_width = <800>;
1307
- fb0_height = <1280>;
1306
+ fb0_width = <1024>;
1307
+ fb0_height = <600>;
13081308
13091309 fb1_format = <0>;
13101310 fb1_width = <0>;
....@@ -1377,15 +1377,15 @@
13771377 lcd0: lcd0@01c0c000 {
13781378 lcd_used = <1>;
13791379
1380
- lcd_driver_name = "mipi_800x1280";
1381
- lcd_backlight = <50>;
1382
- lcd_if = <4>;
1380
+ lcd_driver_name = "default_lcd";
1381
+ lcd_backlight = <100>;
1382
+ lcd_if = <3>;
13831383
1384
- lcd_x = <800>;
1385
- lcd_y = <1280>;
1386
- lcd_width = <220>;
1387
- lcd_height = <140>;
1388
- lcd_dclk_freq = <67>;
1384
+ lcd_x = <1024>;
1385
+ lcd_y = <600>;
1386
+ lcd_width = <217>;
1387
+ lcd_height = <136>;
1388
+ lcd_dclk_freq = <49>;
13891389
13901390 lcd_pwm_used = <1>;
13911391 lcd_pwm_ch = <3>;
....@@ -1393,12 +1393,12 @@
13931393 lcd_pwm_pol = <1>;
13941394 lcd_pwm_max_limit = <255>;
13951395
1396
- lcd_hbp = <18>;
1397
- lcd_ht = <934>;
1398
- lcd_hspw = <4>;
1399
- lcd_vbp = <38>;
1400
- lcd_vt = <1344>;
1401
- lcd_vspw = <2>;
1396
+ lcd_hbp = <124>;
1397
+ lcd_ht = <1264>;
1398
+ lcd_hspw = <24>;
1399
+ lcd_vbp = <24>;
1400
+ lcd_vt = <648>;
1401
+ lcd_vspw = <4>;
14021402
14031403 lcd_frm = <0>;
14041404 lcd_gamma_en = <0>;
....@@ -1409,11 +1409,9 @@
14091409 lcdgamma4iep = <22>;
14101410 smart_color = <90>;
14111411
1412
- lcd_dsi_if = <0>;
1413
- lcd_dsi_lane = <4>;
1414
- lcd_dsi_format = <0>;
1415
- lcd_dsi_te = <0>;
1416
- lcd_dsi_eotp = <0>;
1412
+ lcd_lvds_if = <0>;
1413
+ lcd_lvds_colordepth = <0>;
1414
+ lcd_lvds_mode = <0>;
14171415
14181416 lcd_pin_power = "dcdc1";
14191417 lcd_pin_power1 = "eldo3";
longan/kernel/linux-4.9/drivers/input/touchscreen/gt9xx/gt9xx.c
....@@ -79,11 +79,11 @@
7979 #define PRESS_MAX (255)
8080
8181
82
-static int screen_max_x = 1280;
83
-static int screen_max_y = 800;
84
-static int revert_x_flag = 1;
82
+static int screen_max_x = 1024;
83
+static int screen_max_y = 600;
84
+static int revert_x_flag = 0;
8585 static int revert_y_flag = 0;
86
-static int exchange_x_y_flag = 1;
86
+static int exchange_x_y_flag = 0;
8787 static __u32 twi_id = 0;
8888 static char irq_pin_name[8];
8989