diff options
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/x1000/ost.h')
-rw-r--r-- | firmware/target/mips/ingenic_x1000/x1000/ost.h | 141 |
1 files changed, 141 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_x1000/x1000/ost.h b/firmware/target/mips/ingenic_x1000/x1000/ost.h new file mode 100644 index 0000000000..8f2619e0e7 --- /dev/null +++ b/firmware/target/mips/ingenic_x1000/x1000/ost.h | |||
@@ -0,0 +1,141 @@ | |||
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_OST_H__ | ||
25 | #define __HEADERGEN_OST_H__ | ||
26 | |||
27 | #include "macro.h" | ||
28 | |||
29 | #define REG_OST_CTRL jz_reg(OST_CTRL) | ||
30 | #define JA_OST_CTRL (0xb2000000 + 0x0) | ||
31 | #define JT_OST_CTRL JIO_32_RW | ||
32 | #define JN_OST_CTRL OST_CTRL | ||
33 | #define JI_OST_CTRL | ||
34 | #define BP_OST_CTRL_PRESCALE2 3 | ||
35 | #define BM_OST_CTRL_PRESCALE2 0x38 | ||
36 | #define BV_OST_CTRL_PRESCALE2__BY_1 0x0 | ||
37 | #define BV_OST_CTRL_PRESCALE2__BY_4 0x1 | ||
38 | #define BV_OST_CTRL_PRESCALE2__BY_16 0x2 | ||
39 | #define BF_OST_CTRL_PRESCALE2(v) (((v) & 0x7) << 3) | ||
40 | #define BFM_OST_CTRL_PRESCALE2(v) BM_OST_CTRL_PRESCALE2 | ||
41 | #define BF_OST_CTRL_PRESCALE2_V(e) BF_OST_CTRL_PRESCALE2(BV_OST_CTRL_PRESCALE2__##e) | ||
42 | #define BFM_OST_CTRL_PRESCALE2_V(v) BM_OST_CTRL_PRESCALE2 | ||
43 | #define BP_OST_CTRL_PRESCALE1 0 | ||
44 | #define BM_OST_CTRL_PRESCALE1 0x7 | ||
45 | #define BV_OST_CTRL_PRESCALE1__BY_1 0x0 | ||
46 | #define BV_OST_CTRL_PRESCALE1__BY_4 0x1 | ||
47 | #define BV_OST_CTRL_PRESCALE1__BY_16 0x2 | ||
48 | #define BF_OST_CTRL_PRESCALE1(v) (((v) & 0x7) << 0) | ||
49 | #define BFM_OST_CTRL_PRESCALE1(v) BM_OST_CTRL_PRESCALE1 | ||
50 | #define BF_OST_CTRL_PRESCALE1_V(e) BF_OST_CTRL_PRESCALE1(BV_OST_CTRL_PRESCALE1__##e) | ||
51 | #define BFM_OST_CTRL_PRESCALE1_V(v) BM_OST_CTRL_PRESCALE1 | ||
52 | |||
53 | #define REG_OST_ENABLE jz_reg(OST_ENABLE) | ||
54 | #define JA_OST_ENABLE (0xb2000000 + 0x4) | ||
55 | #define JT_OST_ENABLE JIO_32_RW | ||
56 | #define JN_OST_ENABLE OST_ENABLE | ||
57 | #define JI_OST_ENABLE | ||
58 | #define REG_OST_ENABLE_SET jz_reg(OST_ENABLE_SET) | ||
59 | #define JA_OST_ENABLE_SET (JA_OST_ENABLE + 0x30) | ||
60 | #define JT_OST_ENABLE_SET JIO_32_WO | ||
61 | #define JN_OST_ENABLE_SET OST_ENABLE | ||
62 | #define JI_OST_ENABLE_SET | ||
63 | #define REG_OST_ENABLE_CLR jz_reg(OST_ENABLE_CLR) | ||
64 | #define JA_OST_ENABLE_CLR (JA_OST_ENABLE + 0x34) | ||
65 | #define JT_OST_ENABLE_CLR JIO_32_WO | ||
66 | #define JN_OST_ENABLE_CLR OST_ENABLE | ||
67 | #define JI_OST_ENABLE_CLR | ||
68 | #define BP_OST_ENABLE_OST1 0 | ||
69 | #define BM_OST_ENABLE_OST1 0x1 | ||
70 | #define BF_OST_ENABLE_OST1(v) (((v) & 0x1) << 0) | ||
71 | #define BFM_OST_ENABLE_OST1(v) BM_OST_ENABLE_OST1 | ||
72 | #define BF_OST_ENABLE_OST1_V(e) BF_OST_ENABLE_OST1(BV_OST_ENABLE_OST1__##e) | ||
73 | #define BFM_OST_ENABLE_OST1_V(v) BM_OST_ENABLE_OST1 | ||
74 | #define BP_OST_ENABLE_OST2 1 | ||
75 | #define BM_OST_ENABLE_OST2 0x2 | ||
76 | #define BF_OST_ENABLE_OST2(v) (((v) & 0x1) << 1) | ||
77 | #define BFM_OST_ENABLE_OST2(v) BM_OST_ENABLE_OST2 | ||
78 | #define BF_OST_ENABLE_OST2_V(e) BF_OST_ENABLE_OST2(BV_OST_ENABLE_OST2__##e) | ||
79 | #define BFM_OST_ENABLE_OST2_V(v) BM_OST_ENABLE_OST2 | ||
80 | |||
81 | #define REG_OST_CLEAR jz_reg(OST_CLEAR) | ||
82 | #define JA_OST_CLEAR (0xb2000000 + 0x8) | ||
83 | #define JT_OST_CLEAR JIO_32_RW | ||
84 | #define JN_OST_CLEAR OST_CLEAR | ||
85 | #define JI_OST_CLEAR | ||
86 | #define BP_OST_CLEAR_OST1 0 | ||
87 | #define BM_OST_CLEAR_OST1 0x1 | ||
88 | #define BF_OST_CLEAR_OST1(v) (((v) & 0x1) << 0) | ||
89 | #define BFM_OST_CLEAR_OST1(v) BM_OST_CLEAR_OST1 | ||
90 | #define BF_OST_CLEAR_OST1_V(e) BF_OST_CLEAR_OST1(BV_OST_CLEAR_OST1__##e) | ||
91 | #define BFM_OST_CLEAR_OST1_V(v) BM_OST_CLEAR_OST1 | ||
92 | #define BP_OST_CLEAR_OST2 1 | ||
93 | #define BM_OST_CLEAR_OST2 0x2 | ||
94 | #define BF_OST_CLEAR_OST2(v) (((v) & 0x1) << 1) | ||
95 | #define BFM_OST_CLEAR_OST2(v) BM_OST_CLEAR_OST2 | ||
96 | #define BF_OST_CLEAR_OST2_V(e) BF_OST_CLEAR_OST2(BV_OST_CLEAR_OST2__##e) | ||
97 | #define BFM_OST_CLEAR_OST2_V(v) BM_OST_CLEAR_OST2 | ||
98 | |||
99 | #define REG_OST_1FLG jz_reg(OST_1FLG) | ||
100 | #define JA_OST_1FLG (0xb2000000 + 0xc) | ||
101 | #define JT_OST_1FLG JIO_32_RW | ||
102 | #define JN_OST_1FLG OST_1FLG | ||
103 | #define JI_OST_1FLG | ||
104 | |||
105 | #define REG_OST_1MSK jz_reg(OST_1MSK) | ||
106 | #define JA_OST_1MSK (0xb2000000 + 0x10) | ||
107 | #define JT_OST_1MSK JIO_32_RW | ||
108 | #define JN_OST_1MSK OST_1MSK | ||
109 | #define JI_OST_1MSK | ||
110 | |||
111 | #define REG_OST_1DFR jz_reg(OST_1DFR) | ||
112 | #define JA_OST_1DFR (0xb2000000 + 0x14) | ||
113 | #define JT_OST_1DFR JIO_32_RW | ||
114 | #define JN_OST_1DFR OST_1DFR | ||
115 | #define JI_OST_1DFR | ||
116 | |||
117 | #define REG_OST_1CNT jz_reg(OST_1CNT) | ||
118 | #define JA_OST_1CNT (0xb2000000 + 0x18) | ||
119 | #define JT_OST_1CNT JIO_32_RW | ||
120 | #define JN_OST_1CNT OST_1CNT | ||
121 | #define JI_OST_1CNT | ||
122 | |||
123 | #define REG_OST_2CNTH jz_reg(OST_2CNTH) | ||
124 | #define JA_OST_2CNTH (0xb2000000 + 0x1c) | ||
125 | #define JT_OST_2CNTH JIO_32_RW | ||
126 | #define JN_OST_2CNTH OST_2CNTH | ||
127 | #define JI_OST_2CNTH | ||
128 | |||
129 | #define REG_OST_2CNTL jz_reg(OST_2CNTL) | ||
130 | #define JA_OST_2CNTL (0xb2000000 + 0x20) | ||
131 | #define JT_OST_2CNTL JIO_32_RW | ||
132 | #define JN_OST_2CNTL OST_2CNTL | ||
133 | #define JI_OST_2CNTL | ||
134 | |||
135 | #define REG_OST_2CNTHB jz_reg(OST_2CNTHB) | ||
136 | #define JA_OST_2CNTHB (0xb2000000 + 0x24) | ||
137 | #define JT_OST_2CNTHB JIO_32_RW | ||
138 | #define JN_OST_2CNTHB OST_2CNTHB | ||
139 | #define JI_OST_2CNTHB | ||
140 | |||
141 | #endif /* __HEADERGEN_OST_H__*/ | ||