linux/cybook.config:
* Use new epaper driver instead of qisda fb driver linux/arch/arm/mach-s3c2416/orizon-devs.c: * Rename old cyio-dev.c linux/arch/arm/mach-s3c2416/mach-cybook_orizon.c, linux/arch/arm/mach-s3c2416/orizon-devs.c: + Add support for new drivers in platform device list linux/drivers/video/Makefile, linux/drivers/video/Kconfig, linux/drivers/video/epaper/*: + Add new epaper driver for tcon (resolve #9) linux/drivers/input/misc/orizon_tilt.c: + Add new driver for the tilt sensor linux/drivers/char/s3c-adc.c: - Remove bloated code (this code must be audited, see ticket #8) linux/include/cybook.h: * Extend the CAPABILITY Field
This commit is contained in:
@@ -20,37 +20,37 @@ extern unsigned int platform_type;
|
||||
/* 3322 2222 2222 1111 1111 1100 0000 0000
|
||||
* 1098 7654 3210 9876 5432 1098 7654 3210
|
||||
* ---------------------------------------
|
||||
* FFGG VVSS
|
||||
* FFFG GGVV VSSS
|
||||
*
|
||||
* FF = Form Factor
|
||||
* GG = GSensor mode
|
||||
* VV = Video Driver
|
||||
* SS = Sound Driver
|
||||
* FFF = Form Factor
|
||||
* GGG = GSensor mode
|
||||
* VVV = Video Driver
|
||||
* SSS = Sound Driver
|
||||
*/
|
||||
extern unsigned long platform_capability;
|
||||
|
||||
#define PLAT_CAP_GSENSOR (3 << 4)
|
||||
#define PLAT_CAP_GNONE (0 << 4)
|
||||
#define PLAT_CAP_GMMA7455 (1 << 4)
|
||||
#define PLAT_CAP_GMMA7660 (2 << 4)
|
||||
#define PLAT_CAP_GTILT (3 << 4)
|
||||
#define PLAT_CAP_GSENSOR (7 << 6)
|
||||
#define PLAT_CAP_GNONE (0 << 6)
|
||||
#define PLAT_CAP_GMMA7455 (1 << 6)
|
||||
#define PLAT_CAP_GMMA7660 (2 << 6)
|
||||
#define PLAT_CAP_GTILT (3 << 6)
|
||||
|
||||
#define PLAT_CAP_SOUND (3 << 0)
|
||||
#define PLAT_CAP_SOUND (7 << 0)
|
||||
#define PLAT_CAP_SOUNDNO (0 << 0)
|
||||
#define PLAT_CAP_SOUNDL3 (1 << 0)
|
||||
|
||||
#define PLAT_CAP_VIDEO (3 << 2)
|
||||
#define PLAT_CAP_VAPOLLO (0 << 2)
|
||||
#define PLAT_CAP_VEPSON (1 << 2)
|
||||
#define PLAT_CAP_VTCON (2 << 2)
|
||||
#define PLAT_CAP_VIDEO (7 << 3)
|
||||
#define PLAT_CAP_VAPOLLO (0 << 3)
|
||||
#define PLAT_CAP_VEPSON (1 << 3)
|
||||
#define PLAT_CAP_VTCON (2 << 3)
|
||||
|
||||
#define PLAT_CAP_FORMFACTOR (3 << 6)
|
||||
#define PLAT_CAP_GEN3FORM (0 << 6)
|
||||
#define PLAT_CAP_OPUSFORM (1 << 6)
|
||||
#define PLAT_CAP_ORIZONFORM (2 << 6)
|
||||
#define PLAT_CAP_FORMFACTOR (7 << 9)
|
||||
#define PLAT_CAP_GEN3FORM (0 << 9)
|
||||
#define PLAT_CAP_OPUSFORM (1 << 9)
|
||||
#define PLAT_CAP_ORIZONFORM (2 << 9)
|
||||
|
||||
#define GET_CAPABILITY(CAPAB) (platform_capability & (CAPAB))
|
||||
//#define PLAT_CAP_
|
||||
|
||||
#define GET_CAPABILITY(CAPAB) (platform_capability & (CAPAB))
|
||||
|
||||
#endif /* CYBOOK_H */
|
||||
|
||||
Reference in New Issue
Block a user