2005-04-17 06:20:36 +08:00
|
|
|
/*
|
2013-10-10 20:11:18 +08:00
|
|
|
* access the core module control register.
|
2005-04-17 06:20:36 +08:00
|
|
|
*/
|
2013-10-10 20:11:18 +08:00
|
|
|
u32 cm_get(void);
|
2005-04-17 06:20:36 +08:00
|
|
|
void cm_control(u32, u32);
|
|
|
|
|
2013-06-16 08:44:27 +08:00
|
|
|
struct device_node;
|
|
|
|
void cm_init(void);
|
|
|
|
void cm_clear_irqs(void);
|
2012-03-14 01:46:50 +08:00
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
#define CM_CTRL_LED (1 << 0)
|
|
|
|
#define CM_CTRL_nMBDET (1 << 1)
|
|
|
|
#define CM_CTRL_REMAP (1 << 2)
|
|
|
|
#define CM_CTRL_RESET (1 << 3)
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Integrator/AP,PP2 specific
|
|
|
|
*/
|
|
|
|
#define CM_CTRL_HIGHVECTORS (1 << 4)
|
|
|
|
#define CM_CTRL_BIGENDIAN (1 << 5)
|
|
|
|
#define CM_CTRL_FASTBUS (1 << 6)
|
|
|
|
#define CM_CTRL_SYNC (1 << 7)
|
|
|
|
|
|
|
|
/*
|
|
|
|
* ARM926/946/966 Integrator/CP specific
|
|
|
|
*/
|
|
|
|
#define CM_CTRL_LCDBIASEN (1 << 8)
|
|
|
|
#define CM_CTRL_LCDBIASUP (1 << 9)
|
|
|
|
#define CM_CTRL_LCDBIASDN (1 << 10)
|
|
|
|
#define CM_CTRL_LCDMUXSEL_MASK (7 << 11)
|
|
|
|
#define CM_CTRL_LCDMUXSEL_GENLCD (1 << 11)
|
2011-01-22 19:02:10 +08:00
|
|
|
#define CM_CTRL_LCDMUXSEL_VGA565_TFT555 (2 << 11)
|
2005-05-01 06:32:38 +08:00
|
|
|
#define CM_CTRL_LCDMUXSEL_SHARPLCD (3 << 11)
|
2011-01-22 19:02:10 +08:00
|
|
|
#define CM_CTRL_LCDMUXSEL_VGA555_TFT555 (4 << 11)
|
2005-04-17 06:20:36 +08:00
|
|
|
#define CM_CTRL_LCDEN0 (1 << 14)
|
|
|
|
#define CM_CTRL_LCDEN1 (1 << 15)
|
|
|
|
#define CM_CTRL_STATIC1 (1 << 16)
|
|
|
|
#define CM_CTRL_STATIC2 (1 << 17)
|
|
|
|
#define CM_CTRL_STATIC (1 << 18)
|
|
|
|
#define CM_CTRL_n24BITEN (1 << 19)
|
|
|
|
#define CM_CTRL_EBIWP (1 << 20)
|