diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2008-11-19 06:32:06 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2008-11-19 06:32:06 +0000 |
commit | 14d37cb4555703d216e954db15ccca2c34642dc3 (patch) | |
tree | 9b8a9ebc237902c17cedefef0ce5fe0ef2a977f8 | |
parent | 1dcee69fd20437b6ea4ee80aedc449936cf97a32 (diff) | |
download | rockbox-14d37cb4555703d216e954db15ccca2c34642dc3.tar.gz rockbox-14d37cb4555703d216e954db15ccca2c34642dc3.zip |
Add some watchdog timer definitions for IMX31L
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19143 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-x | firmware/export/imx31l.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/firmware/export/imx31l.h b/firmware/export/imx31l.h index 9bb24f77dd..f41381c8eb 100755 --- a/firmware/export/imx31l.h +++ b/firmware/export/imx31l.h | |||
@@ -1026,6 +1026,30 @@ | |||
1026 | #define RTC_DAYR (*(REG32_PTR_T)(RTC_BASE_ADDR+0x20)) | 1026 | #define RTC_DAYR (*(REG32_PTR_T)(RTC_BASE_ADDR+0x20)) |
1027 | #define RTC_DAYALARM (*(REG32_PTR_T)(RTC_BASE_ADDR+0x24)) | 1027 | #define RTC_DAYALARM (*(REG32_PTR_T)(RTC_BASE_ADDR+0x24)) |
1028 | 1028 | ||
1029 | /* Watchdog */ | ||
1030 | #define WDOG_WCR (*(REG16_PTR_T)(WDOG_BASE_ADDR+0x00)) | ||
1031 | #define WDOG_WSR (*(REG16_PTR_T)(WDOG_BASE_ADDR+0x02)) | ||
1032 | #define WDOG_WRSR (*(REG16_PTR_T)(WDOG_BASE_ADDR+0x04)) | ||
1033 | |||
1034 | #define WDOG_WCR_WT (0xff << 8) | ||
1035 | #define WDOG_WCR_WTw(x) (((x) << 8) & WDOG_WCR_WT) | ||
1036 | #define WDOG_WCR_WTr(x) (((x) & WDOG_WCR_WT) >> 8) | ||
1037 | |||
1038 | #define WDOG_WCR_WOE (0x1 << 6) | ||
1039 | #define WDOG_WCR_WDA (0x1 << 5) | ||
1040 | #define WDOG_WCR_SRS (0x1 << 4) | ||
1041 | #define WDOG_WCR_WRE (0x1 << 3) | ||
1042 | #define WDOG_WCR_WDE (0x1 << 2) | ||
1043 | #define WDOG_WCR_WDBG (0x1 << 1) | ||
1044 | #define WDOG_WCR_WDZST (0x1 << 0) | ||
1045 | |||
1046 | #define WDOG_WRSR_JRST (0x1 << 5) | ||
1047 | #define WDOG_WRSR_PWR (0x1 << 4) | ||
1048 | #define WDOG_WRSR_EXT (0x1 << 3) | ||
1049 | #define WDOG_WRSR_CMON (0x1 << 2) | ||
1050 | #define WDOG_WRSR_TOUT (0x1 << 1) | ||
1051 | #define WDOG_WRSR_SFTW (0x1 << 0) | ||
1052 | |||
1029 | /* Keypad */ | 1053 | /* Keypad */ |
1030 | #define KPP_KPCR (*(REG16_PTR_T)(KPP_BASE_ADDR+0x0)) | 1054 | #define KPP_KPCR (*(REG16_PTR_T)(KPP_BASE_ADDR+0x0)) |
1031 | #define KPP_KPSR (*(REG16_PTR_T)(KPP_BASE_ADDR+0x2)) | 1055 | #define KPP_KPSR (*(REG16_PTR_T)(KPP_BASE_ADDR+0x2)) |