forked from JohnMH/chipone_ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
chipone.h
27 lines (24 loc) · 844 Bytes
/
chipone.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef CHIPONE_H
#define CHIPONE_H
#define CHIPONE_IIC_RETRY_NUM 3
#define CHIPONE_DRIVER_NAME "chipone_ts"
#define CHIPONE_NAME "CHPN0001"
#if defined(CONFIG_VI8PLUS)
#define SCREEN_MAX_X 1920
#define SCREEN_MAX_Y 1200
#define CHIPONE_IRQ 0x5C // HACK: Hardcode IRQ, kernel doesn't get it at boot time
#elif defined(CONFIG_CW1515)
#define SCREEN_MAX_X 1200
#define SCREEN_MAX_Y 1920
#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
#else //CONFIG_VI10U
#define SCREEN_MAX_X 1366
#define SCREEN_MAX_Y 768
#define CHIPONE_IRQ 0x64 // HACK: Hardcode IRQ, kernel doesn't get it at boot time
#endif
#endif // CHIPONE_H