summaryrefslogtreecommitdiff
path: root/firmware/target/mips/ingenic_x1000/x1000/wdt.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/x1000/wdt.h')
-rw-r--r--firmware/target/mips/ingenic_x1000/x1000/wdt.h74
1 files changed, 74 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_x1000/x1000/wdt.h b/firmware/target/mips/ingenic_x1000/x1000/wdt.h
new file mode 100644
index 0000000000..53225e3d7c
--- /dev/null
+++ b/firmware/target/mips/ingenic_x1000/x1000/wdt.h
@@ -0,0 +1,74 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * This file was automatically generated by headergen, DO NOT EDIT it.
9 * headergen version: 3.0.0
10 * x1000 version: 1.0
11 * x1000 authors: Aidan MacDonald
12 *
13 * Copyright (C) 2015 by the authors
14 *
15 * This program is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License
17 * as published by the Free Software Foundation; either version 2
18 * of the License, or (at your option) any later version.
19 *
20 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21 * KIND, either express or implied.
22 *
23 ****************************************************************************/
24#ifndef __HEADERGEN_WDT_H__
25#define __HEADERGEN_WDT_H__
26
27#include "macro.h"
28
29#define REG_WDT_DATA jz_reg(WDT_DATA)
30#define JA_WDT_DATA (0xb0002000 + 0x0)
31#define JT_WDT_DATA JIO_32_RW
32#define JN_WDT_DATA WDT_DATA
33#define JI_WDT_DATA
34
35#define REG_WDT_ENABLE jz_reg(WDT_ENABLE)
36#define JA_WDT_ENABLE (0xb0002000 + 0x4)
37#define JT_WDT_ENABLE JIO_32_RW
38#define JN_WDT_ENABLE WDT_ENABLE
39#define JI_WDT_ENABLE
40
41#define REG_WDT_COUNT jz_reg(WDT_COUNT)
42#define JA_WDT_COUNT (0xb0002000 + 0x8)
43#define JT_WDT_COUNT JIO_32_RW
44#define JN_WDT_COUNT WDT_COUNT
45#define JI_WDT_COUNT
46
47#define REG_WDT_CTRL jz_reg(WDT_CTRL)
48#define JA_WDT_CTRL (0xb0002000 + 0xc)
49#define JT_WDT_CTRL JIO_32_RW
50#define JN_WDT_CTRL WDT_CTRL
51#define JI_WDT_CTRL
52#define BP_WDT_CTRL_PRESCALE 3
53#define BM_WDT_CTRL_PRESCALE 0x38
54#define BV_WDT_CTRL_PRESCALE__BY_1 0x0
55#define BV_WDT_CTRL_PRESCALE__BY_4 0x1
56#define BV_WDT_CTRL_PRESCALE__BY_16 0x2
57#define BV_WDT_CTRL_PRESCALE__BY_64 0x3
58#define BV_WDT_CTRL_PRESCALE__BY_256 0x4
59#define BV_WDT_CTRL_PRESCALE__BY_1024 0x5
60#define BF_WDT_CTRL_PRESCALE(v) (((v) & 0x7) << 3)
61#define BFM_WDT_CTRL_PRESCALE(v) BM_WDT_CTRL_PRESCALE
62#define BF_WDT_CTRL_PRESCALE_V(e) BF_WDT_CTRL_PRESCALE(BV_WDT_CTRL_PRESCALE__##e)
63#define BFM_WDT_CTRL_PRESCALE_V(v) BM_WDT_CTRL_PRESCALE
64#define BP_WDT_CTRL_SOURCE 0
65#define BM_WDT_CTRL_SOURCE 0x7
66#define BV_WDT_CTRL_SOURCE__EXT 0x4
67#define BV_WDT_CTRL_SOURCE__RTC 0x2
68#define BV_WDT_CTRL_SOURCE__PLCK 0x1
69#define BF_WDT_CTRL_SOURCE(v) (((v) & 0x7) << 0)
70#define BFM_WDT_CTRL_SOURCE(v) BM_WDT_CTRL_SOURCE
71#define BF_WDT_CTRL_SOURCE_V(e) BF_WDT_CTRL_SOURCE(BV_WDT_CTRL_SOURCE__##e)
72#define BFM_WDT_CTRL_SOURCE_V(v) BM_WDT_CTRL_SOURCE
73
74#endif /* __HEADERGEN_WDT_H__*/