blob: 5b8ba8247f45404d7d4c6d8f318a9295e9ce6e15 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
Linus Walleijfb61f862013-10-10 14:11:18 +02002 * access the core module control register.
Linus Torvalds1da177e2005-04-16 15:20:36 -07003 */
Linus Walleijfb61f862013-10-10 14:11:18 +02004u32 cm_get(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -07005void cm_control(u32, u32);
6
Linus Walleijbb4dbef2013-06-16 02:44:27 +02007struct device_node;
8void cm_init(void);
9void cm_clear_irqs(void);
Bryan Wub7ea0322012-03-14 01:46:50 +080010
Linus Torvalds1da177e2005-04-16 15:20:36 -070011#define CM_CTRL_LED (1 << 0)
12#define CM_CTRL_nMBDET (1 << 1)
13#define CM_CTRL_REMAP (1 << 2)
Linus Torvalds1da177e2005-04-16 15:20:36 -070014
15/*
16 * Integrator/AP,PP2 specific
17 */
18#define CM_CTRL_HIGHVECTORS (1 << 4)
19#define CM_CTRL_BIGENDIAN (1 << 5)
20#define CM_CTRL_FASTBUS (1 << 6)
21#define CM_CTRL_SYNC (1 << 7)
22
23/*
24 * ARM926/946/966 Integrator/CP specific
25 */
26#define CM_CTRL_LCDBIASEN (1 << 8)
27#define CM_CTRL_LCDBIASUP (1 << 9)
28#define CM_CTRL_LCDBIASDN (1 << 10)
29#define CM_CTRL_LCDMUXSEL_MASK (7 << 11)
30#define CM_CTRL_LCDMUXSEL_GENLCD (1 << 11)
Russell Kinge6b9c1f2011-01-22 11:02:10 +000031#define CM_CTRL_LCDMUXSEL_VGA565_TFT555 (2 << 11)
Russell King4774e222005-04-30 23:32:38 +010032#define CM_CTRL_LCDMUXSEL_SHARPLCD (3 << 11)
Russell Kinge6b9c1f2011-01-22 11:02:10 +000033#define CM_CTRL_LCDMUXSEL_VGA555_TFT555 (4 << 11)
Linus Torvalds1da177e2005-04-16 15:20:36 -070034#define CM_CTRL_LCDEN0 (1 << 14)
35#define CM_CTRL_LCDEN1 (1 << 15)
36#define CM_CTRL_STATIC1 (1 << 16)
37#define CM_CTRL_STATIC2 (1 << 17)
38#define CM_CTRL_STATIC (1 << 18)
39#define CM_CTRL_n24BITEN (1 << 19)
40#define CM_CTRL_EBIWP (1 << 20)