* 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
57 lines
1.3 KiB
C
57 lines
1.3 KiB
C
/*
|
|
* Disclaimer (blabla)
|
|
*
|
|
* Author: Manoël Trapier <manoelt@bookeen.com>
|
|
* Copyright (c) 2009-2010 Bookeen
|
|
*
|
|
*/
|
|
#ifndef CYBOOK_H
|
|
#define CYBOOK_H
|
|
|
|
enum {
|
|
CYBOOK_GEN3 = 0,
|
|
CYBOOK_OPUS,
|
|
CYBOOK_GEN3GOLD,
|
|
CYBOOK_OPUS2,
|
|
CYBOOK_GEN4,
|
|
};
|
|
|
|
extern unsigned int platform_type;
|
|
/* 3322 2222 2222 1111 1111 1100 0000 0000
|
|
* 1098 7654 3210 9876 5432 1098 7654 3210
|
|
* ---------------------------------------
|
|
* FFFG GGVV VSSS
|
|
*
|
|
* FFF = Form Factor
|
|
* GGG = GSensor mode
|
|
* VVV = Video Driver
|
|
* SSS = Sound Driver
|
|
*/
|
|
extern unsigned long platform_capability;
|
|
|
|
#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 (7 << 0)
|
|
#define PLAT_CAP_SOUNDNO (0 << 0)
|
|
#define PLAT_CAP_SOUNDL3 (1 << 0)
|
|
|
|
#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 (7 << 9)
|
|
#define PLAT_CAP_GEN3FORM (0 << 9)
|
|
#define PLAT_CAP_OPUSFORM (1 << 9)
|
|
#define PLAT_CAP_ORIZONFORM (2 << 9)
|
|
|
|
//#define PLAT_CAP_
|
|
|
|
#define GET_CAPABILITY(CAPAB) (platform_capability & (CAPAB))
|
|
|
|
#endif /* CYBOOK_H */
|