Merge tag 'locks-v3.16-2' of git://git.samba.org/jlayton/linux
[linux/fpc-iii.git] / arch / arm / mach-omap2 / ctrl_module_wkup_44xx.h
bloba0af9baec3f7dffb51b7aa2fd584549623e40115
1 /*
2 * OMAP44xx CTRL_MODULE_WKUP registers and bitfields
4 * Copyright (C) 2009-2010 Texas Instruments, Inc.
6 * Benoit Cousson (b-cousson@ti.com)
7 * Santosh Shilimkar (santosh.shilimkar@ti.com)
9 * This file is automatically generated from the OMAP hardware databases.
10 * We respectfully ask that any modifications to this file be coordinated
11 * with the public linux-omap@vger.kernel.org mailing list and the
12 * authors above to ensure that the autogeneration scripts are kept
13 * up-to-date with the file contents.
15 * This program is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License version 2 as
17 * published by the Free Software Foundation.
20 #ifndef __ARCH_ARM_MACH_OMAP2_CTRL_MODULE_WKUP_44XX_H
21 #define __ARCH_ARM_MACH_OMAP2_CTRL_MODULE_WKUP_44XX_H
24 /* Base address */
25 #define OMAP4_CTRL_MODULE_WKUP 0x4a30c000
27 /* Registers offset */
28 #define OMAP4_CTRL_MODULE_WKUP_IP_REVISION 0x0000
29 #define OMAP4_CTRL_MODULE_WKUP_IP_HWINFO 0x0004
30 #define OMAP4_CTRL_MODULE_WKUP_IP_SYSCONFIG 0x0010
31 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_0 0x0460
32 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_1 0x0464
33 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_2 0x0468
34 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_3 0x046c
35 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_4 0x0470
36 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_5 0x0474
37 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_6 0x0478
38 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_7 0x047c
39 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_8 0x0480
40 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_9 0x0484
41 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_10 0x0488
42 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_11 0x048c
43 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_12 0x0490
44 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_13 0x0494
45 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_14 0x0498
46 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_15 0x049c
47 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_16 0x04a0
48 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_17 0x04a4
49 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_18 0x04a8
50 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_19 0x04ac
51 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_20 0x04b0
52 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_21 0x04b4
53 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_22 0x04b8
54 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_23 0x04bc
55 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_24 0x04c0
56 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_25 0x04c4
57 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_26 0x04c8
58 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_27 0x04cc
59 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_28 0x04d0
60 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_29 0x04d4
61 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_30 0x04d8
62 #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_31 0x04dc
64 /* Registers shifts and masks */
66 /* IP_REVISION */
67 #define OMAP4_IP_REV_SCHEME_SHIFT 30
68 #define OMAP4_IP_REV_SCHEME_MASK (0x3 << 30)
69 #define OMAP4_IP_REV_FUNC_SHIFT 16
70 #define OMAP4_IP_REV_FUNC_MASK (0xfff << 16)
71 #define OMAP4_IP_REV_RTL_SHIFT 11
72 #define OMAP4_IP_REV_RTL_MASK (0x1f << 11)
73 #define OMAP4_IP_REV_MAJOR_SHIFT 8
74 #define OMAP4_IP_REV_MAJOR_MASK (0x7 << 8)
75 #define OMAP4_IP_REV_CUSTOM_SHIFT 6
76 #define OMAP4_IP_REV_CUSTOM_MASK (0x3 << 6)
77 #define OMAP4_IP_REV_MINOR_SHIFT 0
78 #define OMAP4_IP_REV_MINOR_MASK (0x3f << 0)
80 /* IP_HWINFO */
81 #define OMAP4_IP_HWINFO_SHIFT 0
82 #define OMAP4_IP_HWINFO_MASK (0xffffffff << 0)
84 /* IP_SYSCONFIG */
85 #define OMAP4_IP_SYSCONFIG_IDLEMODE_SHIFT 2
86 #define OMAP4_IP_SYSCONFIG_IDLEMODE_MASK (0x3 << 2)
88 /* CONF_DEBUG_SEL_TST_0 */
89 #define OMAP4_WKUP_MODE_SHIFT 0
90 #define OMAP4_WKUP_MODE_MASK (1 << 0)
92 #endif