blob: bcc37b2c8ff86fabcfe5463059b1c212ff2dc77d [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Santosh Shilimkarfcf6efa2010-06-16 22:19:47 +05302/*
3 * OMAP WakeupGen header file
4 *
5 * Copyright (C) 2011 Texas Instruments, Inc.
6 * Santosh Shilimkar <santosh.shilimkar@ti.com>
Santosh Shilimkarfcf6efa2010-06-16 22:19:47 +05307 */
8#ifndef OMAP_ARCH_WAKEUPGEN_H
9#define OMAP_ARCH_WAKEUPGEN_H
10
Santosh Shilimkar247c4452012-05-09 20:38:35 +053011/* OMAP4 and OMAP5 has same base address */
12#define OMAP_WKUPGEN_BASE 0x48281000
13
Santosh Shilimkarfcf6efa2010-06-16 22:19:47 +053014#define OMAP_WKG_CONTROL_0 0x00
15#define OMAP_WKG_ENB_A_0 0x10
16#define OMAP_WKG_ENB_B_0 0x14
17#define OMAP_WKG_ENB_C_0 0x18
18#define OMAP_WKG_ENB_D_0 0x1c
Santosh Shilimkar247c4452012-05-09 20:38:35 +053019#define OMAP_WKG_ENB_E_0 0x20
Santosh Shilimkarfcf6efa2010-06-16 22:19:47 +053020#define OMAP_WKG_ENB_A_1 0x410
21#define OMAP_WKG_ENB_B_1 0x414
22#define OMAP_WKG_ENB_C_1 0x418
23#define OMAP_WKG_ENB_D_1 0x41c
Santosh Shilimkar247c4452012-05-09 20:38:35 +053024#define OMAP_WKG_ENB_E_1 0x420
Santosh Shilimkarfcf6efa2010-06-16 22:19:47 +053025#define OMAP_AUX_CORE_BOOT_0 0x800
26#define OMAP_AUX_CORE_BOOT_1 0x804
Santosh Shilimkar4664d4d2013-02-08 17:07:31 +053027#define OMAP_AMBA_IF_MODE 0x80c
Santosh Shilimkarfcf6efa2010-06-16 22:19:47 +053028#define OMAP_PTMSYNCREQ_MASK 0xc00
29#define OMAP_PTMSYNCREQ_EN 0xc04
30#define OMAP_TIMESTAMPCYCLELO 0xc08
31#define OMAP_TIMESTAMPCYCLEHI 0xc0c
32
Santosh Shilimkar247c4452012-05-09 20:38:35 +053033extern void __iomem *omap_get_wakeupgen_base(void);
34extern int omap_secure_apis_support(void);
Santosh Shilimkarfcf6efa2010-06-16 22:19:47 +053035#endif