Maintainers.txt: Update email address
[mirror_edk2.git] / ArmPlatformPkg / Drivers / SP805WatchdogDxe / SP805Watchdog.h
CommitLineData
33e7c2ab 1/** @file\r
5a5440d0
PG
2\r
3 Copyright (c) 2011-2012, ARM Limited. All rights reserved.\r
4\r
5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
6\r
33e7c2ab 7**/\r
8\r
33e7c2ab 9#ifndef __SP805_WATCHDOG_H__\r
10#define __SP805_WATCHDOG_H__\r
11\r
33e7c2ab 12// SP805 Watchdog Registers\r
40b0b23e
MK
13#define SP805_WDOG_LOAD_REG ((UINT32)PcdGet32 (PcdSP805WatchdogBase) + 0x000)\r
14#define SP805_WDOG_CURRENT_REG ((UINT32)PcdGet32 (PcdSP805WatchdogBase) + 0x004)\r
15#define SP805_WDOG_CONTROL_REG ((UINT32)PcdGet32 (PcdSP805WatchdogBase) + 0x008)\r
16#define SP805_WDOG_INT_CLR_REG ((UINT32)PcdGet32 (PcdSP805WatchdogBase) + 0x00C)\r
17#define SP805_WDOG_RAW_INT_STS_REG ((UINT32)PcdGet32 (PcdSP805WatchdogBase) + 0x010)\r
18#define SP805_WDOG_MSK_INT_STS_REG ((UINT32)PcdGet32 (PcdSP805WatchdogBase) + 0x014)\r
19#define SP805_WDOG_LOCK_REG ((UINT32)PcdGet32 (PcdSP805WatchdogBase) + 0xC00)\r
20\r
21#define SP805_WDOG_PERIPH_ID0 ((UINT32)PcdGet32 (PcdSP805WatchdogBase) + 0xFE0)\r
22#define SP805_WDOG_PERIPH_ID1 ((UINT32)PcdGet32 (PcdSP805WatchdogBase) + 0xFE4)\r
23#define SP805_WDOG_PERIPH_ID2 ((UINT32)PcdGet32 (PcdSP805WatchdogBase) + 0xFE8)\r
24#define SP805_WDOG_PERIPH_ID3 ((UINT32)PcdGet32 (PcdSP805WatchdogBase) + 0xFEC)\r
25\r
26#define SP805_WDOG_PCELL_ID0 ((UINT32)PcdGet32 (PcdSP805WatchdogBase) + 0xFF0)\r
27#define SP805_WDOG_PCELL_ID1 ((UINT32)PcdGet32 (PcdSP805WatchdogBase) + 0xFF4)\r
28#define SP805_WDOG_PCELL_ID2 ((UINT32)PcdGet32 (PcdSP805WatchdogBase) + 0xFF8)\r
29#define SP805_WDOG_PCELL_ID3 ((UINT32)PcdGet32 (PcdSP805WatchdogBase) + 0xFFC)\r
33e7c2ab 30\r
31// Timer control register bit definitions\r
32#define SP805_WDOG_CTRL_INTEN BIT0\r
33#define SP805_WDOG_CTRL_RESEN BIT1\r
34#define SP805_WDOG_RAW_INT_STS_WDOGRIS BIT0\r
35#define SP805_WDOG_MSK_INT_STS_WDOGMIS BIT0\r
36\r
37#define SP805_WDOG_LOCK_IS_UNLOCKED 0x00000000\r
38#define SP805_WDOG_LOCK_IS_LOCKED 0x00000001\r
39#define SP805_WDOG_SPECIAL_UNLOCK_CODE 0x1ACCE551\r
40\r
40b0b23e 41#endif // __SP805_WATCHDOG_H__\r