chipone_ts/chipone_ts-20171121git-hi10.patch

26 lines
956 B
Diff
Raw Normal View History

diff -ru /usr/src/chipone_ts-20171121git/chipone.h chipone_ts-20171121git.buono/chipone.h
--- /usr/src/chipone_ts-20171121git/chipone.h 2017-11-21 23:01:46.000000000 +0100
+++ chipone_ts-20171121git.buono/chipone.h 2017-11-21 23:33:04.610598932 +0100
@@ -1,7 +1,7 @@
#ifndef CHIPONE_H
#define CHIPONE_H
-#define CHIPONE_IIC_RETRY_NUM 3
+#define CHIPONE_IIC_RETRY_NUM 50
#define CHIPONE_DRIVER_NAME "chipone_ts"
#define CHIPONE_NAME "CHPN0001"
@@ -15,9 +15,9 @@
#define CHIPONE_IRQ 0xB8
#define CHIPONE_XORG_HACK 1
#elif defined(CONFIG_HI10)
- #define SCREEN_MAX_X 1200
- #define SCREEN_MAX_Y 1900
- #define CHIPONE_IRQ 0xB9 // HACK: Hardcode IRQ, kernel doesn't get it at boot time
+ #define SCREEN_MAX_X 1920
+ #define SCREEN_MAX_Y 1200
+ #define CHIPONE_IRQ 0xBB // HACK: Hardcode IRQ, kernel doesn't get it at boot time
#else //CONFIG_VI10U
#define SCREEN_MAX_X 1366
#define SCREEN_MAX_Y 768