blob: b0fd16f5c3912a8ed9addba17f58d73a52b338bb [file] [log] [blame]
Santosh Shilimkarfcf6efa2010-06-16 22:19:47 +05301/*
2 * OMAP WakeupGen header file
3 *
4 * Copyright (C) 2011 Texas Instruments, Inc.
5 * Santosh Shilimkar <santosh.shilimkar@ti.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 */
11#ifndef OMAP_ARCH_WAKEUPGEN_H
12#define OMAP_ARCH_WAKEUPGEN_H
13
Santosh Shilimkar247c4452012-05-09 20:38:35 +053014/* OMAP4 and OMAP5 has same base address */
15#define OMAP_WKUPGEN_BASE 0x48281000
16
Santosh Shilimkarfcf6efa2010-06-16 22:19:47 +053017#define OMAP_WKG_CONTROL_0 0x00
18#define OMAP_WKG_ENB_A_0 0x10
19#define OMAP_WKG_ENB_B_0 0x14
20#define OMAP_WKG_ENB_C_0 0x18
21#define OMAP_WKG_ENB_D_0 0x1c
Santosh Shilimkar247c4452012-05-09 20:38:35 +053022#define OMAP_WKG_ENB_E_0 0x20
Santosh Shilimkarfcf6efa2010-06-16 22:19:47 +053023#define OMAP_WKG_ENB_A_1 0x410
24#define OMAP_WKG_ENB_B_1 0x414
25#define OMAP_WKG_ENB_C_1 0x418
26#define OMAP_WKG_ENB_D_1 0x41c
Santosh Shilimkar247c4452012-05-09 20:38:35 +053027#define OMAP_WKG_ENB_E_1 0x420
Santosh Shilimkarfcf6efa2010-06-16 22:19:47 +053028#define OMAP_AUX_CORE_BOOT_0 0x800
29#define OMAP_AUX_CORE_BOOT_1 0x804
30#define OMAP_PTMSYNCREQ_MASK 0xc00
31#define OMAP_PTMSYNCREQ_EN 0xc04
32#define OMAP_TIMESTAMPCYCLELO 0xc08
33#define OMAP_TIMESTAMPCYCLEHI 0xc0c
34
35extern int __init omap_wakeupgen_init(void);
Santosh Shilimkar247c4452012-05-09 20:38:35 +053036extern void __iomem *omap_get_wakeupgen_base(void);
37extern int omap_secure_apis_support(void);
Santosh Shilimkarfcf6efa2010-06-16 22:19:47 +053038#endif