imxssireg.h revision 1.1.8.2 1 1.1.8.2 rmind /* $NetBSD: imxssireg.h,v 1.1.8.2 2011/03/05 20:49:35 rmind Exp $ */
2 1.1.8.2 rmind /*
3 1.1.8.2 rmind * Copyright (c) 2009 Genetec Corporation. All rights reserved.
4 1.1.8.2 rmind * Written by Hashimoto Kenichi for Genetec Corporation.
5 1.1.8.2 rmind *
6 1.1.8.2 rmind * Redistribution and use in source and binary forms, with or without
7 1.1.8.2 rmind * modification, are permitted provided that the following conditions
8 1.1.8.2 rmind * are met:
9 1.1.8.2 rmind * 1. Redistributions of source code must retain the above copyright
10 1.1.8.2 rmind * notice, this list of conditions and the following disclaimer.
11 1.1.8.2 rmind * 2. Redistributions in binary form must reproduce the above copyright
12 1.1.8.2 rmind * notice, this list of conditions and the following disclaimer in the
13 1.1.8.2 rmind * documentation and/or other materials provided with the distribution.
14 1.1.8.2 rmind *
15 1.1.8.2 rmind * THIS SOFTWARE IS PROVIDED BY GENETEC CORPORATION ``AS IS'' AND
16 1.1.8.2 rmind * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
17 1.1.8.2 rmind * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18 1.1.8.2 rmind * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GENETEC CORPORATION
19 1.1.8.2 rmind * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20 1.1.8.2 rmind * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21 1.1.8.2 rmind * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22 1.1.8.2 rmind * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23 1.1.8.2 rmind * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24 1.1.8.2 rmind * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25 1.1.8.2 rmind * POSSIBILITY OF SUCH DAMAGE.
26 1.1.8.2 rmind */
27 1.1.8.2 rmind
28 1.1.8.2 rmind #ifndef _ARM_IMX_IMXSSIREG_H
29 1.1.8.2 rmind #define _ARM_IMX_IMXSSIREG_H
30 1.1.8.2 rmind
31 1.1.8.2 rmind #define SSI_STX0 0x0000
32 1.1.8.2 rmind #define SSI_STX1 0x0004
33 1.1.8.2 rmind #define SSI_SRX0 0x0008
34 1.1.8.2 rmind #define SSI_SRX1 0x000C
35 1.1.8.2 rmind #define SSI_SCR 0x0010
36 1.1.8.2 rmind #define SCR_CLK_IST __BIT(9)
37 1.1.8.2 rmind #define SCR_TCH_EN __BIT(8)
38 1.1.8.2 rmind #define SCR_SYS_CLK_EN __BIT(7)
39 1.1.8.2 rmind #define SCR_I2SMODE_MASK ((0x3)<<5)
40 1.1.8.2 rmind #define SCR_I2SMODE(n) ((n)<<5)
41 1.1.8.2 rmind #define I2SMODE_NORMAL (0)
42 1.1.8.2 rmind #define I2SMODE_MASTER (1)
43 1.1.8.2 rmind #define I2SMODE_SLAVE (2)
44 1.1.8.2 rmind #define SCR_SYN __BIT(4)
45 1.1.8.2 rmind #define SCR_NET __BIT(3)
46 1.1.8.2 rmind #define SCR_RE __BIT(2)
47 1.1.8.2 rmind #define SCR_TE __BIT(1)
48 1.1.8.2 rmind #define SCR_SSIEN __BIT(0)
49 1.1.8.2 rmind #define SSI_SISR 0x0014
50 1.1.8.2 rmind #define SSI_SIER 0x0018
51 1.1.8.2 rmind #define SI_RDMAE __BIT(22)
52 1.1.8.2 rmind #define SI_RIE __BIT(21)
53 1.1.8.2 rmind #define SI_TDMAE __BIT(20)
54 1.1.8.2 rmind #define SI_TIE __BIT(19)
55 1.1.8.2 rmind #define SI_CMDAU_EN __BIT(18)
56 1.1.8.2 rmind #define SI_CMDDU_EN __BIT(17)
57 1.1.8.2 rmind #define SI_RXT_EN __BIT(16)
58 1.1.8.2 rmind #define SI_RDR1_EN __BIT(15)
59 1.1.8.2 rmind #define SI_RDR0_EN __BIT(14)
60 1.1.8.2 rmind #define SI_TDE1_EN __BIT(13)
61 1.1.8.2 rmind #define SI_TDE0_EN __BIT(12)
62 1.1.8.2 rmind #define SI_ROE1_EN __BIT(11)
63 1.1.8.2 rmind #define SI_ROE0_EN __BIT(10)
64 1.1.8.2 rmind #define SI_TUE1_EN __BIT(9)
65 1.1.8.2 rmind #define SI_TUE0_EN __BIT(8)
66 1.1.8.2 rmind #define SI_RFS_EN __BIT(7)
67 1.1.8.2 rmind #define SI_TFS_EN __BIT(6)
68 1.1.8.2 rmind #define SI_RLS_EN __BIT(5)
69 1.1.8.2 rmind #define SI_TLS_EN __BIT(4)
70 1.1.8.2 rmind #define SI_RFF1_EN __BIT(3)
71 1.1.8.2 rmind #define SI_RFF0_EN __BIT(2)
72 1.1.8.2 rmind #define SI_TFE1_EN __BIT(1)
73 1.1.8.2 rmind #define SI_TFE0_EN __BIT(0)
74 1.1.8.2 rmind #define SSI_STCR 0x001C
75 1.1.8.2 rmind #define SSI_SRCR 0x0020
76 1.1.8.2 rmind #define CR_XEX __BIT(10)
77 1.1.8.2 rmind #define CR_XBIT __BIT(9)
78 1.1.8.2 rmind #define CR_FEN1 __BIT(8)
79 1.1.8.2 rmind #define CR_FEN0 __BIT(7)
80 1.1.8.2 rmind #define CR_FDIR __BIT(6)
81 1.1.8.2 rmind #define CR_XDIR __BIT(5)
82 1.1.8.2 rmind #define CR_SHFD __BIT(4)
83 1.1.8.2 rmind #define CR_SHFD_MSB (0<<4)
84 1.1.8.2 rmind #define CR_SHFD_LSB CR_SHFD
85 1.1.8.2 rmind #define CR_SCKP __BIT(3)
86 1.1.8.2 rmind #define CR_FSI __BIT(2)
87 1.1.8.2 rmind #define CR_FSL __BIT(1)
88 1.1.8.2 rmind #define CR_EFS __BIT(0)
89 1.1.8.2 rmind #define SSI_STCCR 0x0024
90 1.1.8.2 rmind #define SSI_SRCCR 0x0028
91 1.1.8.2 rmind #define WL_SHIFT 13
92 1.1.8.2 rmind #define WL_MASK (0xf << 13)
93 1.1.8.2 rmind #define DC_SHIFT 8
94 1.1.8.2 rmind #define DC_MASK (0xf << 8)
95 1.1.8.2 rmind #define SSI_SFCSR 0x002C
96 1.1.8.2 rmind #define SFCSR_RFCNT1_MASK (0xf << 28)
97 1.1.8.2 rmind #define SFCSR_TFCNT1_MASK (0xf << 24)
98 1.1.8.2 rmind #define SFCSR_RFWM1_MASK (0xf << 20)
99 1.1.8.2 rmind #define SFCSR_TFWM1_MASK (0xf << 16)
100 1.1.8.2 rmind #define SFCSR_RFCNT0_MASK (0xf << 12)
101 1.1.8.2 rmind #define SFCSR_TFCNT0_MASK (0xf << 8)
102 1.1.8.2 rmind #define SFCSR_RFWM0_MASK (0xf << 4)
103 1.1.8.2 rmind #define SFCSR_TFWM0_MASK (0xf << 0)
104 1.1.8.2 rmind #define SFCSR_RFWM1(x) (((x) & 0xf) << 20)
105 1.1.8.2 rmind #define SFCSR_TFWM1(x) (((x) & 0xf) << 16)
106 1.1.8.2 rmind #define SFCSR_RFWM0(x) (((x) & 0xf) << 4)
107 1.1.8.2 rmind #define SFCSR_TFWM0(x) (((x) & 0xf) << 0)
108 1.1.8.2 rmind #define SSI_SACNT 0x0038
109 1.1.8.2 rmind #define SSI_SACSDD 0x003C
110 1.1.8.2 rmind #define SSI_SACDAT 0x0040
111 1.1.8.2 rmind #define SSI_SATAG 0x0044
112 1.1.8.2 rmind #define SSI_STMSK 0x0048
113 1.1.8.2 rmind #define SSI_SRMSK 0x004C
114 1.1.8.2 rmind
115 1.1.8.2 rmind
116 1.1.8.2 rmind #define SSI_SIZE 0x100
117 1.1.8.2 rmind
118 1.1.8.2 rmind
119 1.1.8.2 rmind #endif /* _ARM_IMX_IMXSSIREG_H */
120