18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * OMAP WakeupGen header file
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (C) 2011 Texas Instruments, Inc.
68c2ecf20Sopenharmony_ci *	Santosh Shilimkar <santosh.shilimkar@ti.com>
78c2ecf20Sopenharmony_ci */
88c2ecf20Sopenharmony_ci#ifndef OMAP_ARCH_WAKEUPGEN_H
98c2ecf20Sopenharmony_ci#define OMAP_ARCH_WAKEUPGEN_H
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci/* OMAP4 and OMAP5 has same base address */
128c2ecf20Sopenharmony_ci#define OMAP_WKUPGEN_BASE			0x48281000
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci#define OMAP_WKG_CONTROL_0			0x00
158c2ecf20Sopenharmony_ci#define OMAP_WKG_ENB_A_0			0x10
168c2ecf20Sopenharmony_ci#define OMAP_WKG_ENB_B_0			0x14
178c2ecf20Sopenharmony_ci#define OMAP_WKG_ENB_C_0			0x18
188c2ecf20Sopenharmony_ci#define OMAP_WKG_ENB_D_0			0x1c
198c2ecf20Sopenharmony_ci#define OMAP_WKG_ENB_E_0			0x20
208c2ecf20Sopenharmony_ci#define OMAP_WKG_ENB_A_1			0x410
218c2ecf20Sopenharmony_ci#define OMAP_WKG_ENB_B_1			0x414
228c2ecf20Sopenharmony_ci#define OMAP_WKG_ENB_C_1			0x418
238c2ecf20Sopenharmony_ci#define OMAP_WKG_ENB_D_1			0x41c
248c2ecf20Sopenharmony_ci#define OMAP_WKG_ENB_E_1			0x420
258c2ecf20Sopenharmony_ci#define OMAP_AUX_CORE_BOOT_0			0x800
268c2ecf20Sopenharmony_ci#define OMAP_AUX_CORE_BOOT_1			0x804
278c2ecf20Sopenharmony_ci#define OMAP_AMBA_IF_MODE			0x80c
288c2ecf20Sopenharmony_ci#define OMAP_PTMSYNCREQ_MASK			0xc00
298c2ecf20Sopenharmony_ci#define OMAP_PTMSYNCREQ_EN			0xc04
308c2ecf20Sopenharmony_ci#define OMAP_TIMESTAMPCYCLELO			0xc08
318c2ecf20Sopenharmony_ci#define OMAP_TIMESTAMPCYCLEHI			0xc0c
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ciextern void __iomem *omap_get_wakeupgen_base(void);
348c2ecf20Sopenharmony_ciextern int omap_secure_apis_support(void);
358c2ecf20Sopenharmony_ci#endif
36