📄 s3c2410-ts.h
字号:
/*** Driver for the H3600 Touch Screen and other Atmel controlled devices.** Copyright 2000 Compaq Computer Corporation.** Use consistent with the GNU GPL is permitted,* provided that this copyright notice is* preserved in its entirety in all copies and derived works.** COMPAQ COMPUTER CORPORATION MAKES NO WARRANTIES, EXPRESSED OR IMPLIED,* AS TO THE USEFULNESS OR CORRECTNESS OF THIS CODE OR ITS* FITNESS FOR ANY PARTICULAR PURPOSE.** Author: Charles Flynn.** Author: SW.LEE <hitchcar@sec.samsung.com> Modified for S3C2410 */#ifndef __S3C2410_TS_H__#define __S3C2410_TS_H__#include <linux/ioctl.h>enum s3c2410_ts_minor_devices { TS_MINOR = 0, TSRAW_MINOR = 1, KEY_MINOR = 2};typedef struct s3c2410_ts_calibration { int xscale; int xtrans; int yscale; int ytrans; int xyswap;} TS_CAL1;typedef struct s3c2410_ts_event { unsigned short pressure; unsigned short x; unsigned short y; unsigned short pad;} TS_EVENT;/* Deprecated - do not use */typedef struct s3c2410_ts_return { unsigned short pressure; unsigned short x; unsigned short y; unsigned short pad;} TS_RET1;/* IOCTL cmds user or kernel space *//* Use 'f' as magic number */#define IOC_S3C2410_TS_MAGIC 'f'#define TS_GET_CAL _IOR(IOC_S3C2410_TS_MAGIC, 10, struct s3c2410_ts_calibration)#define TS_SET_CAL _IOW(IOC_S3C2410_TS_MAGIC, 11, struct s3c2410_ts_calibration)#define SYS_TIMER01_PRESCALER 24 /* for Touch Screen */#define TOUCH_RESCHED_PERIOD 10 /* 10 ms */#define SYS_TIMER1_MUX 0 /* 1/2 */#define SYS_TIMER1_DIVIDER 2/* * LCD Parameter * Used in drivers/video/s3c2410fb.c */#define TFT240_320 1#define STN320_240 2#define TFT640_480 3 /* Used in s3c2410fb.c *///#define LCD_TYPE TFT240_320//#define LCD_TYPE STN320_240#define LCD_TYPE TFT640_480 #if (LCD_TYPE == TFT240_320)#define CURRENT_LCD_X 240 /* used in Touch Screen */#define CURRENT_LCD_Y 320 /* used in Touch Screen */#elif (LCD_TYPE == STN320_240)#define CURRENT_LCD_X 320 /* used in Touch Screen */#define CURRENT_LCD_Y 240 /* used in Touch Screen */#elif (LCD_TYPE == TFT640_480)#define CURRENT_LCD_X 640 /* used in Touch Screen */#define CURRENT_LCD_Y 480 /* used in Touch Screen */#endif#define ADCPRS 39 /* used s3c2410_ts.c */#define ADC_DELAY_TIME 50000 /* used s3c2410_ts.c *//*************** Clock Parameter **********/#define FCLK 203000000#define HCLK (FCLK/2)#define PCLK (HCLK/2)#define UCLK 48000000#define BUSWIDTH (32)/********************************************/#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -