summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233/regs/stmp3700/regs-ssp.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-06-13 19:03:33 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-06-15 22:27:34 +0200
commit017667c2dc9843eb5082e991f421c773636dcf36 (patch)
tree60432008dd3bc012ac60cbfa771305f6d894dd84 /firmware/target/arm/imx233/regs/stmp3700/regs-ssp.h
parent97b9ade63945fd8b8261fb0cf1dd0aa225c1a319 (diff)
downloadrockbox-017667c2dc9843eb5082e991f421c773636dcf36.tar.gz
rockbox-017667c2dc9843eb5082e991f421c773636dcf36.zip
imx233: generate register headers for stmp3600, stmp3700 and imx233
Change-Id: Ia87086f4f4f4ecbb844ffd869407b14ea2509934
Diffstat (limited to 'firmware/target/arm/imx233/regs/stmp3700/regs-ssp.h')
-rw-r--r--firmware/target/arm/imx233/regs/stmp3700/regs-ssp.h558
1 files changed, 558 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/regs/stmp3700/regs-ssp.h b/firmware/target/arm/imx233/regs/stmp3700/regs-ssp.h
new file mode 100644
index 0000000000..463cf26cf7
--- /dev/null
+++ b/firmware/target/arm/imx233/regs/stmp3700/regs-ssp.h
@@ -0,0 +1,558 @@
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: 2.1.7
10 * XML versions: stmp3700:3.2.0
11 *
12 * Copyright (C) 2013 by Amaury Pouly
13 *
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
18 *
19 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20 * KIND, either express or implied.
21 *
22 ****************************************************************************/
23#ifndef __HEADERGEN__STMP3700__SSP__H__
24#define __HEADERGEN__STMP3700__SSP__H__
25
26#define REGS_SSP_BASE(i) ((i) == 1 ? 0x80010000 : 0x80034000)
27
28#define REGS_SSP_VERSION "3.2.0"
29
30/**
31 * Register: HW_SSP_CTRL0
32 * Address: 0
33 * SCT: yes
34*/
35#define HW_SSP_CTRL0(d) (*(volatile unsigned long *)(REGS_SSP_BASE(d) + 0x0 + 0x0))
36#define HW_SSP_CTRL0_SET(d) (*(volatile unsigned long *)(REGS_SSP_BASE(d) + 0x0 + 0x4))
37#define HW_SSP_CTRL0_CLR(d) (*(volatile unsigned long *)(REGS_SSP_BASE(d) + 0x0 + 0x8))
38#define HW_SSP_CTRL0_TOG(d) (*(volatile unsigned long *)(REGS_SSP_BASE(d) + 0x0 + 0xc))
39#define BP_SSP_CTRL0_SFTRST 31
40#define BM_SSP_CTRL0_SFTRST 0x80000000
41#define BF_SSP_CTRL0_SFTRST(v) (((v) << 31) & 0x80000000)
42#define BP_SSP_CTRL0_CLKGATE 30
43#define BM_SSP_CTRL0_CLKGATE 0x40000000
44#define BF_SSP_CTRL0_CLKGATE(v) (((v) << 30) & 0x40000000)
45#define BP_SSP_CTRL0_RUN 29
46#define BM_SSP_CTRL0_RUN 0x20000000
47#define BF_SSP_CTRL0_RUN(v) (((v) << 29) & 0x20000000)
48#define BP_SSP_CTRL0_SDIO_IRQ_CHECK 28
49#define BM_SSP_CTRL0_SDIO_IRQ_CHECK 0x10000000
50#define BF_SSP_CTRL0_SDIO_IRQ_CHECK(v) (((v) << 28) & 0x10000000)
51#define BP_SSP_CTRL0_LOCK_CS 27
52#define BM_SSP_CTRL0_LOCK_CS 0x8000000
53#define BF_SSP_CTRL0_LOCK_CS(v) (((v) << 27) & 0x8000000)
54#define BP_SSP_CTRL0_IGNORE_CRC 26
55#define BM_SSP_CTRL0_IGNORE_CRC 0x4000000
56#define BF_SSP_CTRL0_IGNORE_CRC(v) (((v) << 26) & 0x4000000)
57#define BP_SSP_CTRL0_READ 25
58#define BM_SSP_CTRL0_READ 0x2000000
59#define BF_SSP_CTRL0_READ(v) (((v) << 25) & 0x2000000)
60#define BP_SSP_CTRL0_DATA_XFER 24
61#define BM_SSP_CTRL0_DATA_XFER 0x1000000
62#define BF_SSP_CTRL0_DATA_XFER(v) (((v) << 24) & 0x1000000)
63#define BP_SSP_CTRL0_BUS_WIDTH 22
64#define BM_SSP_CTRL0_BUS_WIDTH 0xc00000
65#define BV_SSP_CTRL0_BUS_WIDTH__ONE_BIT 0x0
66#define BV_SSP_CTRL0_BUS_WIDTH__FOUR_BIT 0x1
67#define BV_SSP_CTRL0_BUS_WIDTH__EIGHT_BIT 0x2
68#define BF_SSP_CTRL0_BUS_WIDTH(v) (((v) << 22) & 0xc00000)
69#define BF_SSP_CTRL0_BUS_WIDTH_V(v) ((BV_SSP_CTRL0_BUS_WIDTH__##v << 22) & 0xc00000)
70#define BP_SSP_CTRL0_WAIT_FOR_IRQ 21
71#define BM_SSP_CTRL0_WAIT_FOR_IRQ 0x200000
72#define BF_SSP_CTRL0_WAIT_FOR_IRQ(v) (((v) << 21) & 0x200000)
73#define BP_SSP_CTRL0_WAIT_FOR_CMD 20
74#define BM_SSP_CTRL0_WAIT_FOR_CMD 0x100000
75#define BF_SSP_CTRL0_WAIT_FOR_CMD(v) (((v) << 20) & 0x100000)
76#define BP_SSP_CTRL0_LONG_RESP 19
77#define BM_SSP_CTRL0_LONG_RESP 0x80000
78#define BF_SSP_CTRL0_LONG_RESP(v) (((v) << 19) & 0x80000)
79#define BP_SSP_CTRL0_CHECK_RESP 18
80#define BM_SSP_CTRL0_CHECK_RESP 0x40000
81#define BF_SSP_CTRL0_CHECK_RESP(v) (((v) << 18) & 0x40000)
82#define BP_SSP_CTRL0_GET_RESP 17
83#define BM_SSP_CTRL0_GET_RESP 0x20000
84#define BF_SSP_CTRL0_GET_RESP(v) (((v) << 17) & 0x20000)
85#define BP_SSP_CTRL0_ENABLE 16
86#define BM_SSP_CTRL0_ENABLE 0x10000
87#define BF_SSP_CTRL0_ENABLE(v) (((v) << 16) & 0x10000)
88#define BP_SSP_CTRL0_XFER_COUNT 0
89#define BM_SSP_CTRL0_XFER_COUNT 0xffff
90#define BF_SSP_CTRL0_XFER_COUNT(v) (((v) << 0) & 0xffff)
91
92/**
93 * Register: HW_SSP_CMD0
94 * Address: 0x10
95 * SCT: yes
96*/
97#define HW_SSP_CMD0(d) (*(volatile unsigned long *)(REGS_SSP_BASE(d) + 0x10 + 0x0))
98#define HW_SSP_CMD0_SET(d) (*(volatile unsigned long *)(REGS_SSP_BASE(d) + 0x10 + 0x4))
99#define HW_SSP_CMD0_CLR(d) (*(volatile unsigned long *)(REGS_SSP_BASE(d) + 0x10 + 0x8))
100#define HW_SSP_CMD0_TOG(d) (*(volatile unsigned long *)(REGS_SSP_BASE(d) + 0x10 + 0xc))
101#define BP_SSP_CMD0_APPEND_8CYC 20
102#define BM_SSP_CMD0_APPEND_8CYC 0x100000
103#define BF_SSP_CMD0_APPEND_8CYC(v) (((v) << 20) & 0x100000)
104#define BP_SSP_CMD0_BLOCK_SIZE 16
105#define BM_SSP_CMD0_BLOCK_SIZE 0xf0000
106#define BF_SSP_CMD0_BLOCK_SIZE(v) (((v) << 16) & 0xf0000)
107#define BP_SSP_CMD0_BLOCK_COUNT 8
108#define BM_SSP_CMD0_BLOCK_COUNT 0xff00
109#define BF_SSP_CMD0_BLOCK_COUNT(v) (((v) << 8) & 0xff00)
110#define BP_SSP_CMD0_CMD 0
111#define BM_SSP_CMD0_CMD 0xff
112#define BV_SSP_CMD0_CMD__MMC_GO_IDLE_STATE 0x0
113#define BV_SSP_CMD0_CMD__MMC_SEND_OP_COND 0x1
114#define BV_SSP_CMD0_CMD__MMC_ALL_SEND_CID 0x2
115#define BV_SSP_CMD0_CMD__MMC_SET_RELATIVE_ADDR 0x3
116#define BV_SSP_CMD0_CMD__MMC_SET_DSR 0x4
117#define BV_SSP_CMD0_CMD__MMC_RESERVED_5 0x5
118#define BV_SSP_CMD0_CMD__MMC_SWITCH 0x6
119#define BV_SSP_CMD0_CMD__MMC_SELECT_DESELECT_CARD 0x7
120#define BV_SSP_CMD0_CMD__MMC_SEND_EXT_CSD 0x8
121#define BV_SSP_CMD0_CMD__MMC_SEND_CSD 0x9
122#define BV_SSP_CMD0_CMD__MMC_SEND_CID 0xa
123#define BV_SSP_CMD0_CMD__MMC_READ_DAT_UNTIL_STOP 0xb
124#define BV_SSP_CMD0_CMD__MMC_STOP_TRANSMISSION 0xc
125#define BV_SSP_CMD0_CMD__MMC_SEND_STATUS 0xd
126#define BV_SSP_CMD0_CMD__MMC_BUSTEST_R 0xe
127#define BV_SSP_CMD0_CMD__MMC_GO_INACTIVE_STATE 0xf
128#define BV_SSP_CMD0_CMD__MMC_SET_BLOCKLEN 0x10
129#define BV_SSP_CMD0_CMD__MMC_READ_SINGLE_BLOCK 0x11
130#define BV_SSP_CMD0_CMD__MMC_READ_MULTIPLE_BLOCK 0x12
131#define BV_SSP_CMD0_CMD__MMC_BUSTEST_W 0x13
132#define BV_SSP_CMD0_CMD__MMC_WRITE_DAT_UNTIL_STOP 0x14
133#define BV_SSP_CMD0_CMD__MMC_SET_BLOCK_COUNT 0x17
134#define BV_SSP_CMD0_CMD__MMC_WRITE_BLOCK 0x18
135#define BV_SSP_CMD0_CMD__MMC_WRITE_MULTIPLE_BLOCK 0x19
136#define BV_SSP_CMD0_CMD__MMC_PROGRAM_CID 0x1a
137#define BV_SSP_CMD0_CMD__MMC_PROGRAM_CSD 0x1b
138#define BV_SSP_CMD0_CMD__MMC_SET_WRITE_PROT 0x1c
139#define BV_SSP_CMD0_CMD__MMC_CLR_WRITE_PROT 0x1d
140#define BV_SSP_CMD0_CMD__MMC_SEND_WRITE_PROT 0x1e
141#define BV_SSP_CMD0_CMD__MMC_ERASE_GROUP_START 0x23
142#define BV_SSP_CMD0_CMD__MMC_ERASE_GROUP_END 0x24
143#define BV_SSP_CMD0_CMD__MMC_ERASE 0x26
144#define BV_SSP_CMD0_CMD__MMC_FAST_IO 0x27
145#define BV_SSP_CMD0_CMD__MMC_GO_IRQ_STATE 0x28
146#define BV_SSP_CMD0_CMD__MMC_LOCK_UNLOCK 0x2a
147#define BV_SSP_CMD0_CMD__MMC_APP_CMD 0x37
148#define BV_SSP_CMD0_CMD__MMC_GEN_CMD 0x38
149#define BV_SSP_CMD0_CMD__SD_GO_IDLE_STATE 0x0
150#define BV_SSP_CMD0_CMD__SD_ALL_SEND_CID 0x2
151#define BV_SSP_CMD0_CMD__SD_SEND_RELATIVE_ADDR 0x3
152#define BV_SSP_CMD0_CMD__SD_SET_DSR 0x4
153#define BV_SSP_CMD0_CMD__SD_IO_SEND_OP_COND 0x5
154#define BV_SSP_CMD0_CMD__SD_SELECT_DESELECT_CARD 0x7
155#define BV_SSP_CMD0_CMD__SD_SEND_CSD 0x9
156#define BV_SSP_CMD0_CMD__SD_SEND_CID 0xa
157#define BV_SSP_CMD0_CMD__SD_STOP_TRANSMISSION 0xc
158#define BV_SSP_CMD0_CMD__SD_SEND_STATUS 0xd
159#define BV_SSP_CMD0_CMD__SD_GO_INACTIVE_STATE 0xf
160#define BV_SSP_CMD0_CMD__SD_SET_BLOCKLEN 0x10
161#define BV_SSP_CMD0_CMD__SD_READ_SINGLE_BLOCK 0x11
162#define BV_SSP_CMD0_CMD__SD_READ_MULTIPLE_BLOCK 0x12
163#define BV_SSP_CMD0_CMD__SD_WRITE_BLOCK 0x18
164#define BV_SSP_CMD0_CMD__SD_WRITE_MULTIPLE_BLOCK 0x19
165#define BV_SSP_CMD0_CMD__SD_PROGRAM_CSD 0x1b
166#define BV_SSP_CMD0_CMD__SD_SET_WRITE_PROT 0x1c
167#define BV_SSP_CMD0_CMD__SD_CLR_WRITE_PROT 0x1d
168#define BV_SSP_CMD0_CMD__SD_SEND_WRITE_PROT 0x1e
169#define BV_SSP_CMD0_CMD__SD_ERASE_WR_BLK_START 0x20
170#define BV_SSP_CMD0_CMD__SD_ERASE_WR_BLK_END 0x21
171#define BV_SSP_CMD0_CMD__SD_ERASE_GROUP_START 0x23
172#define BV_SSP_CMD0_CMD__SD_ERASE_GROUP_END 0x24
173#define BV_SSP_CMD0_CMD__SD_ERASE 0x26
174#define BV_SSP_CMD0_CMD__SD_LOCK_UNLOCK 0x2a
175#define BV_SSP_CMD0_CMD__SD_IO_RW_DIRECT 0x34
176#define BV_SSP_CMD0_CMD__SD_IO_RW_EXTENDED 0x35
177#define BV_SSP_CMD0_CMD__SD_APP_CMD 0x37
178#define BV_SSP_CMD0_CMD__SD_GEN_CMD 0x38
179#define BF_SSP_CMD0_CMD(v) (((v) << 0) & 0xff)
180#define BF_SSP_CMD0_CMD_V(v) ((BV_SSP_CMD0_CMD__##v << 0) & 0xff)
181
182/**
183 * Register: HW_SSP_CMD1
184 * Address: 0x20
185 * SCT: no
186*/
187#define HW_SSP_CMD1(d) (*(volatile unsigned long *)(REGS_SSP_BASE(d) + 0x20))
188#define BP_SSP_CMD1_CMD_ARG 0
189#define BM_SSP_CMD1_CMD_ARG 0xffffffff
190#define BF_SSP_CMD1_CMD_ARG(v) (((v) << 0) & 0xffffffff)
191
192/**
193 * Register: HW_SSP_COMPREF
194 * Address: 0x30
195 * SCT: no
196*/
197#define HW_SSP_COMPREF(d) (*(volatile unsigned long *)(REGS_SSP_BASE(d) + 0x30))
198#define BP_SSP_COMPREF_REFERENCE 0
199#define BM_SSP_COMPREF_REFERENCE 0xffffffff
200#define BF_SSP_COMPREF_REFERENCE(v) (((v) << 0) & 0xffffffff)
201
202/**
203 * Register: HW_SSP_COMPMASK
204 * Address: 0x40
205 * SCT: no
206*/
207#define HW_SSP_COMPMASK(d) (*(volatile unsigned long *)(REGS_SSP_BASE(d) + 0x40))
208#define BP_SSP_COMPMASK_MASK 0
209#define BM_SSP_COMPMASK_MASK 0xffffffff
210#define BF_SSP_COMPMASK_MASK(v) (((v) << 0) & 0xffffffff)
211
212/**
213 * Register: HW_SSP_TIMING
214 * Address: 0x50
215 * SCT: no
216*/
217#define HW_SSP_TIMING(d) (*(volatile unsigned long *)(REGS_SSP_BASE(d) + 0x50))
218#define BP_SSP_TIMING_TIMEOUT 16
219#define BM_SSP_TIMING_TIMEOUT 0xffff0000
220#define BF_SSP_TIMING_TIMEOUT(v) (((v) << 16) & 0xffff0000)
221#define BP_SSP_TIMING_CLOCK_DIVIDE 8
222#define BM_SSP_TIMING_CLOCK_DIVIDE 0xff00
223#define BF_SSP_TIMING_CLOCK_DIVIDE(v) (((v) << 8) & 0xff00)
224#define BP_SSP_TIMING_CLOCK_RATE 0
225#define BM_SSP_TIMING_CLOCK_RATE 0xff
226#define BF_SSP_TIMING_CLOCK_RATE(v) (((v) << 0) & 0xff)
227
228/**
229 * Register: HW_SSP_CTRL1
230 * Address: 0x60
231 * SCT: yes
232*/
233#define HW_SSP_CTRL1(d) (*(volatile unsigned long *)(REGS_SSP_BASE(d) + 0x60 + 0x0))
234#define HW_SSP_CTRL1_SET(d) (*(volatile unsigned long *)(REGS_SSP_BASE(d) + 0x60 + 0x4))
235#define HW_SSP_CTRL1_CLR(d) (*(volatile unsigned long *)(REGS_SSP_BASE(d) + 0x60 + 0x8))
236#define HW_SSP_CTRL1_TOG(d) (*(volatile unsigned long *)(REGS_SSP_BASE(d) + 0x60 + 0xc))
237#define BP_SSP_CTRL1_SDIO_IRQ 31
238#define BM_SSP_CTRL1_SDIO_IRQ 0x80000000
239#define BF_SSP_CTRL1_SDIO_IRQ(v) (((v) << 31) & 0x80000000)
240#define BP_SSP_CTRL1_SDIO_IRQ_EN 30
241#define BM_SSP_CTRL1_SDIO_IRQ_EN 0x40000000
242#define BF_SSP_CTRL1_SDIO_IRQ_EN(v) (((v) << 30) & 0x40000000)
243#define BP_SSP_CTRL1_RESP_ERR_IRQ 29
244#define BM_SSP_CTRL1_RESP_ERR_IRQ 0x20000000
245#define BF_SSP_CTRL1_RESP_ERR_IRQ(v) (((v) << 29) & 0x20000000)
246#define BP_SSP_CTRL1_RESP_ERR_IRQ_EN 28
247#define BM_SSP_CTRL1_RESP_ERR_IRQ_EN 0x10000000
248#define BF_SSP_CTRL1_RESP_ERR_IRQ_EN(v) (((v) << 28) & 0x10000000)
249#define BP_SSP_CTRL1_RESP_TIMEOUT_IRQ 27
250#define BM_SSP_CTRL1_RESP_TIMEOUT_IRQ 0x8000000
251#define BF_SSP_CTRL1_RESP_TIMEOUT_IRQ(v) (((v) << 27) & 0x8000000)
252#define BP_SSP_CTRL1_RESP_TIMEOUT_IRQ_EN 26
253#define BM_SSP_CTRL1_RESP_TIMEOUT_IRQ_EN 0x4000000
254#define BF_SSP_CTRL1_RESP_TIMEOUT_IRQ_EN(v) (((v) << 26) & 0x4000000)
255#define BP_SSP_CTRL1_DATA_TIMEOUT_IRQ 25
256#define BM_SSP_CTRL1_DATA_TIMEOUT_IRQ 0x2000000
257#define BF_SSP_CTRL1_DATA_TIMEOUT_IRQ(v) (((v) << 25) & 0x2000000)
258#define BP_SSP_CTRL1_DATA_TIMEOUT_IRQ_EN 24
259#define BM_SSP_CTRL1_DATA_TIMEOUT_IRQ_EN 0x1000000
260#define BF_SSP_CTRL1_DATA_TIMEOUT_IRQ_EN(v) (((v) << 24) & 0x1000000)
261#define BP_SSP_CTRL1_DATA_CRC_IRQ 23
262#define BM_SSP_CTRL1_DATA_CRC_IRQ 0x800000
263#define BF_SSP_CTRL1_DATA_CRC_IRQ(v) (((v) << 23) & 0x800000)
264#define BP_SSP_CTRL1_DATA_CRC_IRQ_EN 22
265#define BM_SSP_CTRL1_DATA_CRC_IRQ_EN 0x400000
266#define BF_SSP_CTRL1_DATA_CRC_IRQ_EN(v) (((v) << 22) & 0x400000)
267#define BP_SSP_CTRL1_FIFO_UNDERRUN_IRQ 21
268#define BM_SSP_CTRL1_FIFO_UNDERRUN_IRQ 0x200000
269#define BF_SSP_CTRL1_FIFO_UNDERRUN_IRQ(v) (((v) << 21) & 0x200000)
270#define BP_SSP_CTRL1_FIFO_UNDERRUN_EN 20
271#define BM_SSP_CTRL1_FIFO_UNDERRUN_EN 0x100000
272#define BF_SSP_CTRL1_FIFO_UNDERRUN_EN(v) (((v) << 20) & 0x100000)
273#define BP_SSP_CTRL1_CEATA_CCS_ERR_IRQ 19
274#define BM_SSP_CTRL1_CEATA_CCS_ERR_IRQ 0x80000
275#define BF_SSP_CTRL1_CEATA_CCS_ERR_IRQ(v) (((v) << 19) & 0x80000)
276#define BP_SSP_CTRL1_CEATA_CCS_ERR_IRQ_EN 18
277#define BM_SSP_CTRL1_CEATA_CCS_ERR_IRQ_EN 0x40000
278#define BF_SSP_CTRL1_CEATA_CCS_ERR_IRQ_EN(v) (((v) << 18) & 0x40000)
279#define BP_SSP_CTRL1_RECV_TIMEOUT_IRQ 17
280#define BM_SSP_CTRL1_RECV_TIMEOUT_IRQ 0x20000
281#define BF_SSP_CTRL1_RECV_TIMEOUT_IRQ(v) (((v) << 17) & 0x20000)
282#define BP_SSP_CTRL1_RECV_TIMEOUT_IRQ_EN 16
283#define BM_SSP_CTRL1_RECV_TIMEOUT_IRQ_EN 0x10000
284#define BF_SSP_CTRL1_RECV_TIMEOUT_IRQ_EN(v) (((v) << 16) & 0x10000)
285#define BP_SSP_CTRL1_FIFO_OVERRUN_IRQ 15
286#define BM_SSP_CTRL1_FIFO_OVERRUN_IRQ 0x8000
287#define BF_SSP_CTRL1_FIFO_OVERRUN_IRQ(v) (((v) << 15) & 0x8000)
288#define BP_SSP_CTRL1_FIFO_OVERRUN_IRQ_EN 14
289#define BM_SSP_CTRL1_FIFO_OVERRUN_IRQ_EN 0x4000
290#define BF_SSP_CTRL1_FIFO_OVERRUN_IRQ_EN(v) (((v) << 14) & 0x4000)
291#define BP_SSP_CTRL1_DMA_ENABLE 13
292#define BM_SSP_CTRL1_DMA_ENABLE 0x2000
293#define BF_SSP_CTRL1_DMA_ENABLE(v) (((v) << 13) & 0x2000)
294#define BP_SSP_CTRL1_CEATA_CCS_ERR_EN 12
295#define BM_SSP_CTRL1_CEATA_CCS_ERR_EN 0x1000
296#define BF_SSP_CTRL1_CEATA_CCS_ERR_EN(v) (((v) << 12) & 0x1000)
297#define BP_SSP_CTRL1_SLAVE_OUT_DISABLE 11
298#define BM_SSP_CTRL1_SLAVE_OUT_DISABLE 0x800
299#define BF_SSP_CTRL1_SLAVE_OUT_DISABLE(v) (((v) << 11) & 0x800)
300#define BP_SSP_CTRL1_PHASE 10
301#define BM_SSP_CTRL1_PHASE 0x400
302#define BF_SSP_CTRL1_PHASE(v) (((v) << 10) & 0x400)
303#define BP_SSP_CTRL1_POLARITY 9
304#define BM_SSP_CTRL1_POLARITY 0x200
305#define BF_SSP_CTRL1_POLARITY(v) (((v) << 9) & 0x200)
306#define BP_SSP_CTRL1_SLAVE_MODE 8
307#define BM_SSP_CTRL1_SLAVE_MODE 0x100
308#define BF_SSP_CTRL1_SLAVE_MODE(v) (((v) << 8) & 0x100)
309#define BP_SSP_CTRL1_WORD_LENGTH 4
310#define BM_SSP_CTRL1_WORD_LENGTH 0xf0
311#define BV_SSP_CTRL1_WORD_LENGTH__RESERVED0 0x0
312#define BV_SSP_CTRL1_WORD_LENGTH__RESERVED1 0x1
313#define BV_SSP_CTRL1_WORD_LENGTH__RESERVED2 0x2
314#define BV_SSP_CTRL1_WORD_LENGTH__FOUR_BITS 0x3
315#define BV_SSP_CTRL1_WORD_LENGTH__EIGHT_BITS 0x7
316#define BV_SSP_CTRL1_WORD_LENGTH__SIXTEEN_BITS 0xf
317#define BF_SSP_CTRL1_WORD_LENGTH(v) (((v) << 4) & 0xf0)
318#define BF_SSP_CTRL1_WORD_LENGTH_V(v) ((BV_SSP_CTRL1_WORD_LENGTH__##v << 4) & 0xf0)
319#define BP_SSP_CTRL1_SSP_MODE 0
320#define BM_SSP_CTRL1_SSP_MODE 0xf
321#define BV_SSP_CTRL1_SSP_MODE__SPI 0x0
322#define BV_SSP_CTRL1_SSP_MODE__SSI 0x1
323#define BV_SSP_CTRL1_SSP_MODE__SD_MMC 0x3
324#define BV_SSP_CTRL1_SSP_MODE__MS 0x4
325#define BV_SSP_CTRL1_SSP_MODE__CE_ATA 0x7
326#define BF_SSP_CTRL1_SSP_MODE(v) (((v) << 0) & 0xf)
327#define BF_SSP_CTRL1_SSP_MODE_V(v) ((BV_SSP_CTRL1_SSP_MODE__##v << 0) & 0xf)
328
329/**
330 * Register: HW_SSP_DATA
331 * Address: 0x70
332 * SCT: no
333*/
334#define HW_SSP_DATA(d) (*(volatile unsigned long *)(REGS_SSP_BASE(d) + 0x70))
335#define BP_SSP_DATA_DATA 0
336#define BM_SSP_DATA_DATA 0xffffffff
337#define BF_SSP_DATA_DATA(v) (((v) << 0) & 0xffffffff)
338
339/**
340 * Register: HW_SSP_SDRESP0
341 * Address: 0x80
342 * SCT: no
343*/
344#define HW_SSP_SDRESP0(d) (*(volatile unsigned long *)(REGS_SSP_BASE(d) + 0x80))
345#define BP_SSP_SDRESP0_RESP0 0
346#define BM_SSP_SDRESP0_RESP0 0xffffffff
347#define BF_SSP_SDRESP0_RESP0(v) (((v) << 0) & 0xffffffff)
348
349/**
350 * Register: HW_SSP_SDRESP1
351 * Address: 0x90
352 * SCT: no
353*/
354#define HW_SSP_SDRESP1(d) (*(volatile unsigned long *)(REGS_SSP_BASE(d) + 0x90))
355#define BP_SSP_SDRESP1_RESP1 0
356#define BM_SSP_SDRESP1_RESP1 0xffffffff
357#define BF_SSP_SDRESP1_RESP1(v) (((v) << 0) & 0xffffffff)
358
359/**
360 * Register: HW_SSP_SDRESP2
361 * Address: 0xa0
362 * SCT: no
363*/
364#define HW_SSP_SDRESP2(d) (*(volatile unsigned long *)(REGS_SSP_BASE(d) + 0xa0))
365#define BP_SSP_SDRESP2_RESP2 0
366#define BM_SSP_SDRESP2_RESP2 0xffffffff
367#define BF_SSP_SDRESP2_RESP2(v) (((v) << 0) & 0xffffffff)
368
369/**
370 * Register: HW_SSP_SDRESP3
371 * Address: 0xb0
372 * SCT: no
373*/
374#define HW_SSP_SDRESP3(d) (*(volatile unsigned long *)(REGS_SSP_BASE(d) + 0xb0))
375#define BP_SSP_SDRESP3_RESP3 0
376#define BM_SSP_SDRESP3_RESP3 0xffffffff
377#define BF_SSP_SDRESP3_RESP3(v) (((v) << 0) & 0xffffffff)
378
379/**
380 * Register: HW_SSP_STATUS
381 * Address: 0xc0
382 * SCT: no
383*/
384#define HW_SSP_STATUS(d) (*(volatile unsigned long *)(REGS_SSP_BASE(d) + 0xc0))
385#define BP_SSP_STATUS_PRESENT 31
386#define BM_SSP_STATUS_PRESENT 0x80000000
387#define BF_SSP_STATUS_PRESENT(v) (((v) << 31) & 0x80000000)
388#define BP_SSP_STATUS_MS_PRESENT 30
389#define BM_SSP_STATUS_MS_PRESENT 0x40000000
390#define BF_SSP_STATUS_MS_PRESENT(v) (((v) << 30) & 0x40000000)
391#define BP_SSP_STATUS_SD_PRESENT 29
392#define BM_SSP_STATUS_SD_PRESENT 0x20000000
393#define BF_SSP_STATUS_SD_PRESENT(v) (((v) << 29) & 0x20000000)
394#define BP_SSP_STATUS_CARD_DETECT 28
395#define BM_SSP_STATUS_CARD_DETECT 0x10000000
396#define BF_SSP_STATUS_CARD_DETECT(v) (((v) << 28) & 0x10000000)
397#define BP_SSP_STATUS_DMASENSE 21
398#define BM_SSP_STATUS_DMASENSE 0x200000
399#define BF_SSP_STATUS_DMASENSE(v) (((v) << 21) & 0x200000)
400#define BP_SSP_STATUS_DMATERM 20
401#define BM_SSP_STATUS_DMATERM 0x100000
402#define BF_SSP_STATUS_DMATERM(v) (((v) << 20) & 0x100000)
403#define BP_SSP_STATUS_DMAREQ 19
404#define BM_SSP_STATUS_DMAREQ 0x80000
405#define BF_SSP_STATUS_DMAREQ(v) (((v) << 19) & 0x80000)
406#define BP_SSP_STATUS_DMAEND 18
407#define BM_SSP_STATUS_DMAEND 0x40000
408#define BF_SSP_STATUS_DMAEND(v) (((v) << 18) & 0x40000)
409#define BP_SSP_STATUS_SDIO_IRQ 17
410#define BM_SSP_STATUS_SDIO_IRQ 0x20000
411#define BF_SSP_STATUS_SDIO_IRQ(v) (((v) << 17) & 0x20000)
412#define BP_SSP_STATUS_RESP_CRC_ERR 16
413#define BM_SSP_STATUS_RESP_CRC_ERR 0x10000
414#define BF_SSP_STATUS_RESP_CRC_ERR(v) (((v) << 16) & 0x10000)
415#define BP_SSP_STATUS_RESP_ERR 15
416#define BM_SSP_STATUS_RESP_ERR 0x8000
417#define BF_SSP_STATUS_RESP_ERR(v) (((v) << 15) & 0x8000)
418#define BP_SSP_STATUS_RESP_TIMEOUT 14
419#define BM_SSP_STATUS_RESP_TIMEOUT 0x4000
420#define BF_SSP_STATUS_RESP_TIMEOUT(v) (((v) << 14) & 0x4000)
421#define BP_SSP_STATUS_DATA_CRC_ERR 13
422#define BM_SSP_STATUS_DATA_CRC_ERR 0x2000
423#define BF_SSP_STATUS_DATA_CRC_ERR(v) (((v) << 13) & 0x2000)
424#define BP_SSP_STATUS_TIMEOUT 12
425#define BM_SSP_STATUS_TIMEOUT 0x1000
426#define BF_SSP_STATUS_TIMEOUT(v) (((v) << 12) & 0x1000)
427#define BP_SSP_STATUS_RECV_TIMEOUT_STAT 11
428#define BM_SSP_STATUS_RECV_TIMEOUT_STAT 0x800
429#define BF_SSP_STATUS_RECV_TIMEOUT_STAT(v) (((v) << 11) & 0x800)
430#define BP_SSP_STATUS_CEATA_CCS_ERR 10
431#define BM_SSP_STATUS_CEATA_CCS_ERR 0x400
432#define BF_SSP_STATUS_CEATA_CCS_ERR(v) (((v) << 10) & 0x400)
433#define BP_SSP_STATUS_FIFO_OVRFLW 9
434#define BM_SSP_STATUS_FIFO_OVRFLW 0x200
435#define BF_SSP_STATUS_FIFO_OVRFLW(v) (((v) << 9) & 0x200)
436#define BP_SSP_STATUS_FIFO_FULL 8
437#define BM_SSP_STATUS_FIFO_FULL 0x100
438#define BF_SSP_STATUS_FIFO_FULL(v) (((v) << 8) & 0x100)
439#define BP_SSP_STATUS_FIFO_EMPTY 5
440#define BM_SSP_STATUS_FIFO_EMPTY 0x20
441#define BF_SSP_STATUS_FIFO_EMPTY(v) (((v) << 5) & 0x20)
442#define BP_SSP_STATUS_FIFO_UNDRFLW 4
443#define BM_SSP_STATUS_FIFO_UNDRFLW 0x10
444#define BF_SSP_STATUS_FIFO_UNDRFLW(v) (((v) << 4) & 0x10)
445#define BP_SSP_STATUS_CMD_BUSY 3
446#define BM_SSP_STATUS_CMD_BUSY 0x8
447#define BF_SSP_STATUS_CMD_BUSY(v) (((v) << 3) & 0x8)
448#define BP_SSP_STATUS_DATA_BUSY 2
449#define BM_SSP_STATUS_DATA_BUSY 0x4
450#define BF_SSP_STATUS_DATA_BUSY(v) (((v) << 2) & 0x4)
451#define BP_SSP_STATUS_BUSY 0
452#define BM_SSP_STATUS_BUSY 0x1
453#define BF_SSP_STATUS_BUSY(v) (((v) << 0) & 0x1)
454
455/**
456 * Register: HW_SSP_DEBUG
457 * Address: 0x100
458 * SCT: no
459*/
460#define HW_SSP_DEBUG(d) (*(volatile unsigned long *)(REGS_SSP_BASE(d) + 0x100))
461#define BP_SSP_DEBUG_DATACRC_ERR 28
462#define BM_SSP_DEBUG_DATACRC_ERR 0xf0000000
463#define BF_SSP_DEBUG_DATACRC_ERR(v) (((v) << 28) & 0xf0000000)
464#define BP_SSP_DEBUG_DATA_STALL 27
465#define BM_SSP_DEBUG_DATA_STALL 0x8000000
466#define BF_SSP_DEBUG_DATA_STALL(v) (((v) << 27) & 0x8000000)
467#define BP_SSP_DEBUG_DAT_SM 24
468#define BM_SSP_DEBUG_DAT_SM 0x7000000
469#define BV_SSP_DEBUG_DAT_SM__DSM_IDLE 0x0
470#define BV_SSP_DEBUG_DAT_SM__DSM_WORD 0x2
471#define BV_SSP_DEBUG_DAT_SM__DSM_CRC1 0x3
472#define BV_SSP_DEBUG_DAT_SM__DSM_CRC2 0x4
473#define BV_SSP_DEBUG_DAT_SM__DSM_END 0x5
474#define BF_SSP_DEBUG_DAT_SM(v) (((v) << 24) & 0x7000000)
475#define BF_SSP_DEBUG_DAT_SM_V(v) ((BV_SSP_DEBUG_DAT_SM__##v << 24) & 0x7000000)
476#define BP_SSP_DEBUG_MSTK_SM 20
477#define BM_SSP_DEBUG_MSTK_SM 0xf00000
478#define BV_SSP_DEBUG_MSTK_SM__MSTK_IDLE 0x0
479#define BV_SSP_DEBUG_MSTK_SM__MSTK_CKON 0x1
480#define BV_SSP_DEBUG_MSTK_SM__MSTK_BS1 0x2
481#define BV_SSP_DEBUG_MSTK_SM__MSTK_TPC 0x3
482#define BV_SSP_DEBUG_MSTK_SM__MSTK_BS2 0x4
483#define BV_SSP_DEBUG_MSTK_SM__MSTK_HDSHK 0x5
484#define BV_SSP_DEBUG_MSTK_SM__MSTK_BS3 0x6
485#define BV_SSP_DEBUG_MSTK_SM__MSTK_RW 0x7
486#define BV_SSP_DEBUG_MSTK_SM__MSTK_CRC1 0x8
487#define BV_SSP_DEBUG_MSTK_SM__MSTK_CRC2 0x9
488#define BV_SSP_DEBUG_MSTK_SM__MSTK_BS0 0xa
489#define BV_SSP_DEBUG_MSTK_SM__MSTK_END1 0xb
490#define BV_SSP_DEBUG_MSTK_SM__MSTK_END2W 0xc
491#define BV_SSP_DEBUG_MSTK_SM__MSTK_END2R 0xd
492#define BV_SSP_DEBUG_MSTK_SM__MSTK_DONE 0xe
493#define BF_SSP_DEBUG_MSTK_SM(v) (((v) << 20) & 0xf00000)
494#define BF_SSP_DEBUG_MSTK_SM_V(v) ((BV_SSP_DEBUG_MSTK_SM__##v << 20) & 0xf00000)
495#define BP_SSP_DEBUG_CMD_OE 19
496#define BM_SSP_DEBUG_CMD_OE 0x80000
497#define BF_SSP_DEBUG_CMD_OE(v) (((v) << 19) & 0x80000)
498#define BP_SSP_DEBUG_DMA_SM 16
499#define BM_SSP_DEBUG_DMA_SM 0x70000
500#define BV_SSP_DEBUG_DMA_SM__DMA_IDLE 0x0
501#define BV_SSP_DEBUG_DMA_SM__DMA_DMAREQ 0x1
502#define BV_SSP_DEBUG_DMA_SM__DMA_DMAACK 0x2
503#define BV_SSP_DEBUG_DMA_SM__DMA_STALL 0x3
504#define BV_SSP_DEBUG_DMA_SM__DMA_BUSY 0x4
505#define BV_SSP_DEBUG_DMA_SM__DMA_DONE 0x5
506#define BV_SSP_DEBUG_DMA_SM__DMA_COUNT 0x6
507#define BF_SSP_DEBUG_DMA_SM(v) (((v) << 16) & 0x70000)
508#define BF_SSP_DEBUG_DMA_SM_V(v) ((BV_SSP_DEBUG_DMA_SM__##v << 16) & 0x70000)
509#define BP_SSP_DEBUG_MMC_SM 12
510#define BM_SSP_DEBUG_MMC_SM 0xf000
511#define BV_SSP_DEBUG_MMC_SM__MMC_IDLE 0x0
512#define BV_SSP_DEBUG_MMC_SM__MMC_CMD 0x1
513#define BV_SSP_DEBUG_MMC_SM__MMC_TRC 0x2
514#define BV_SSP_DEBUG_MMC_SM__MMC_RESP 0x3
515#define BV_SSP_DEBUG_MMC_SM__MMC_RPRX 0x4
516#define BV_SSP_DEBUG_MMC_SM__MMC_TX 0x5
517#define BV_SSP_DEBUG_MMC_SM__MMC_CTOK 0x6
518#define BV_SSP_DEBUG_MMC_SM__MMC_RX 0x7
519#define BV_SSP_DEBUG_MMC_SM__MMC_CCS 0x8
520#define BV_SSP_DEBUG_MMC_SM__MMC_PUP 0x9
521#define BV_SSP_DEBUG_MMC_SM__MMC_WAIT 0xa
522#define BF_SSP_DEBUG_MMC_SM(v) (((v) << 12) & 0xf000)
523#define BF_SSP_DEBUG_MMC_SM_V(v) ((BV_SSP_DEBUG_MMC_SM__##v << 12) & 0xf000)
524#define BP_SSP_DEBUG_CMD_SM 10
525#define BM_SSP_DEBUG_CMD_SM 0xc00
526#define BV_SSP_DEBUG_CMD_SM__CSM_IDLE 0x0
527#define BV_SSP_DEBUG_CMD_SM__CSM_INDEX 0x1
528#define BV_SSP_DEBUG_CMD_SM__CSM_ARG 0x2
529#define BV_SSP_DEBUG_CMD_SM__CSM_CRC 0x3
530#define BF_SSP_DEBUG_CMD_SM(v) (((v) << 10) & 0xc00)
531#define BF_SSP_DEBUG_CMD_SM_V(v) ((BV_SSP_DEBUG_CMD_SM__##v << 10) & 0xc00)
532#define BP_SSP_DEBUG_SSP_CMD 9
533#define BM_SSP_DEBUG_SSP_CMD 0x200
534#define BF_SSP_DEBUG_SSP_CMD(v) (((v) << 9) & 0x200)
535#define BP_SSP_DEBUG_SSP_RESP 8
536#define BM_SSP_DEBUG_SSP_RESP 0x100
537#define BF_SSP_DEBUG_SSP_RESP(v) (((v) << 8) & 0x100)
538#define BP_SSP_DEBUG_SSP_RXD 0
539#define BM_SSP_DEBUG_SSP_RXD 0xff
540#define BF_SSP_DEBUG_SSP_RXD(v) (((v) << 0) & 0xff)
541
542/**
543 * Register: HW_SSP_VERSION
544 * Address: 0x110
545 * SCT: no
546*/
547#define HW_SSP_VERSION(d) (*(volatile unsigned long *)(REGS_SSP_BASE(d) + 0x110))
548#define BP_SSP_VERSION_MAJOR 24
549#define BM_SSP_VERSION_MAJOR 0xff000000
550#define BF_SSP_VERSION_MAJOR(v) (((v) << 24) & 0xff000000)
551#define BP_SSP_VERSION_MINOR 16
552#define BM_SSP_VERSION_MINOR 0xff0000
553#define BF_SSP_VERSION_MINOR(v) (((v) << 16) & 0xff0000)
554#define BP_SSP_VERSION_STEP 0
555#define BM_SSP_VERSION_STEP 0xffff
556#define BF_SSP_VERSION_STEP(v) (((v) << 0) & 0xffff)
557
558#endif /* __HEADERGEN__STMP3700__SSP__H__ */