]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blame - arch/arm/mach-integrator/cm.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-jammy-kernel.git] / arch / arm / mach-integrator / cm.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1da177e4 2/*
fb61f862 3 * access the core module control register.
1da177e4 4 */
fb61f862 5u32 cm_get(void);
1da177e4
LT
6void cm_control(u32, u32);
7
bb4dbefe
LW
8struct device_node;
9void cm_init(void);
10void cm_clear_irqs(void);
b7ea032e 11
1da177e4
LT
12#define CM_CTRL_LED (1 << 0)
13#define CM_CTRL_nMBDET (1 << 1)
14#define CM_CTRL_REMAP (1 << 2)
1da177e4
LT
15
16/*
17 * Integrator/AP,PP2 specific
18 */
19#define CM_CTRL_HIGHVECTORS (1 << 4)
20#define CM_CTRL_BIGENDIAN (1 << 5)
21#define CM_CTRL_FASTBUS (1 << 6)
22#define CM_CTRL_SYNC (1 << 7)
23
24/*
25 * ARM926/946/966 Integrator/CP specific
26 */
27#define CM_CTRL_LCDBIASEN (1 << 8)
28#define CM_CTRL_LCDBIASUP (1 << 9)
29#define CM_CTRL_LCDBIASDN (1 << 10)
30#define CM_CTRL_LCDMUXSEL_MASK (7 << 11)
31#define CM_CTRL_LCDMUXSEL_GENLCD (1 << 11)
e6b9c1f8 32#define CM_CTRL_LCDMUXSEL_VGA565_TFT555 (2 << 11)
4774e226 33#define CM_CTRL_LCDMUXSEL_SHARPLCD (3 << 11)
e6b9c1f8 34#define CM_CTRL_LCDMUXSEL_VGA555_TFT555 (4 << 11)
1da177e4
LT
35#define CM_CTRL_LCDEN0 (1 << 14)
36#define CM_CTRL_LCDEN1 (1 << 15)
37#define CM_CTRL_STATIC1 (1 << 16)
38#define CM_CTRL_STATIC2 (1 << 17)
39#define CM_CTRL_STATIC (1 << 18)
40#define CM_CTRL_n24BITEN (1 << 19)
41#define CM_CTRL_EBIWP (1 << 20)