1*11696c5eSBiju Das /* SPDX-License-Identifier: GPL-2.0+ */
2*11696c5eSBiju Das /*
3*11696c5eSBiju Das * shmob_drm_regs.h -- SH Mobile DRM registers
4*11696c5eSBiju Das *
5*11696c5eSBiju Das * Copyright (C) 2012 Renesas Electronics Corporation
6*11696c5eSBiju Das *
7*11696c5eSBiju Das * Laurent Pinchart (laurent.pinchart@ideasonboard.com)
8*11696c5eSBiju Das */
9*11696c5eSBiju Das
10*11696c5eSBiju Das #ifndef __SHMOB_DRM_REGS_H__
11*11696c5eSBiju Das #define __SHMOB_DRM_REGS_H__
12*11696c5eSBiju Das
13*11696c5eSBiju Das #include <linux/io.h>
14*11696c5eSBiju Das #include <linux/jiffies.h>
15*11696c5eSBiju Das
16*11696c5eSBiju Das #include "shmob_drm_drv.h"
17*11696c5eSBiju Das
18*11696c5eSBiju Das /* Register definitions */
19*11696c5eSBiju Das #define LDDCKPAT1R 0x400
20*11696c5eSBiju Das #define LDDCKPAT2R 0x404
21*11696c5eSBiju Das #define LDDCKR 0x410
22*11696c5eSBiju Das #define LDDCKR_ICKSEL_BUS (0 << 16)
23*11696c5eSBiju Das #define LDDCKR_ICKSEL_MIPI (1 << 16)
24*11696c5eSBiju Das #define LDDCKR_ICKSEL_HDMI (2 << 16)
25*11696c5eSBiju Das #define LDDCKR_ICKSEL_EXT (3 << 16)
26*11696c5eSBiju Das #define LDDCKR_ICKSEL_MASK (7 << 16)
27*11696c5eSBiju Das #define LDDCKR_MOSEL (1 << 6)
28*11696c5eSBiju Das #define LDDCKSTPR 0x414
29*11696c5eSBiju Das #define LDDCKSTPR_DCKSTS (1 << 16)
30*11696c5eSBiju Das #define LDDCKSTPR_DCKSTP (1 << 0)
31*11696c5eSBiju Das #define LDMT1R 0x418
32*11696c5eSBiju Das #define LDMT1R_VPOL (1 << 28)
33*11696c5eSBiju Das #define LDMT1R_HPOL (1 << 27)
34*11696c5eSBiju Das #define LDMT1R_DWPOL (1 << 26)
35*11696c5eSBiju Das #define LDMT1R_DIPOL (1 << 25)
36*11696c5eSBiju Das #define LDMT1R_DAPOL (1 << 24)
37*11696c5eSBiju Das #define LDMT1R_HSCNT (1 << 17)
38*11696c5eSBiju Das #define LDMT1R_DWCNT (1 << 16)
39*11696c5eSBiju Das #define LDMT1R_IFM (1 << 12)
40*11696c5eSBiju Das #define LDMT1R_MIFTYP_RGB8 (0x0 << 0)
41*11696c5eSBiju Das #define LDMT1R_MIFTYP_RGB9 (0x4 << 0)
42*11696c5eSBiju Das #define LDMT1R_MIFTYP_RGB12A (0x5 << 0)
43*11696c5eSBiju Das #define LDMT1R_MIFTYP_RGB12B (0x6 << 0)
44*11696c5eSBiju Das #define LDMT1R_MIFTYP_RGB16 (0x7 << 0)
45*11696c5eSBiju Das #define LDMT1R_MIFTYP_RGB18 (0xa << 0)
46*11696c5eSBiju Das #define LDMT1R_MIFTYP_RGB24 (0xb << 0)
47*11696c5eSBiju Das #define LDMT1R_MIFTYP_YCBCR (0xf << 0)
48*11696c5eSBiju Das #define LDMT1R_MIFTYP_SYS8A (0x0 << 0)
49*11696c5eSBiju Das #define LDMT1R_MIFTYP_SYS8B (0x1 << 0)
50*11696c5eSBiju Das #define LDMT1R_MIFTYP_SYS8C (0x2 << 0)
51*11696c5eSBiju Das #define LDMT1R_MIFTYP_SYS8D (0x3 << 0)
52*11696c5eSBiju Das #define LDMT1R_MIFTYP_SYS9 (0x4 << 0)
53*11696c5eSBiju Das #define LDMT1R_MIFTYP_SYS12 (0x5 << 0)
54*11696c5eSBiju Das #define LDMT1R_MIFTYP_SYS16A (0x7 << 0)
55*11696c5eSBiju Das #define LDMT1R_MIFTYP_SYS16B (0x8 << 0)
56*11696c5eSBiju Das #define LDMT1R_MIFTYP_SYS16C (0x9 << 0)
57*11696c5eSBiju Das #define LDMT1R_MIFTYP_SYS18 (0xa << 0)
58*11696c5eSBiju Das #define LDMT1R_MIFTYP_SYS24 (0xb << 0)
59*11696c5eSBiju Das #define LDMT1R_MIFTYP_MASK (0xf << 0)
60*11696c5eSBiju Das #define LDMT2R 0x41c
61*11696c5eSBiju Das #define LDMT2R_CSUP_MASK (7 << 26)
62*11696c5eSBiju Das #define LDMT2R_CSUP_SHIFT 26
63*11696c5eSBiju Das #define LDMT2R_RSV (1 << 25)
64*11696c5eSBiju Das #define LDMT2R_VSEL (1 << 24)
65*11696c5eSBiju Das #define LDMT2R_WCSC_MASK (0xff << 16)
66*11696c5eSBiju Das #define LDMT2R_WCSC_SHIFT 16
67*11696c5eSBiju Das #define LDMT2R_WCEC_MASK (0xff << 8)
68*11696c5eSBiju Das #define LDMT2R_WCEC_SHIFT 8
69*11696c5eSBiju Das #define LDMT2R_WCLW_MASK (0xff << 0)
70*11696c5eSBiju Das #define LDMT2R_WCLW_SHIFT 0
71*11696c5eSBiju Das #define LDMT3R 0x420
72*11696c5eSBiju Das #define LDMT3R_RDLC_MASK (0x3f << 24)
73*11696c5eSBiju Das #define LDMT3R_RDLC_SHIFT 24
74*11696c5eSBiju Das #define LDMT3R_RCSC_MASK (0xff << 16)
75*11696c5eSBiju Das #define LDMT3R_RCSC_SHIFT 16
76*11696c5eSBiju Das #define LDMT3R_RCEC_MASK (0xff << 8)
77*11696c5eSBiju Das #define LDMT3R_RCEC_SHIFT 8
78*11696c5eSBiju Das #define LDMT3R_RCLW_MASK (0xff << 0)
79*11696c5eSBiju Das #define LDMT3R_RCLW_SHIFT 0
80*11696c5eSBiju Das #define LDDFR 0x424
81*11696c5eSBiju Das #define LDDFR_CF1 (1 << 18)
82*11696c5eSBiju Das #define LDDFR_CF0 (1 << 17)
83*11696c5eSBiju Das #define LDDFR_CC (1 << 16)
84*11696c5eSBiju Das #define LDDFR_YF_420 (0 << 8)
85*11696c5eSBiju Das #define LDDFR_YF_422 (1 << 8)
86*11696c5eSBiju Das #define LDDFR_YF_444 (2 << 8)
87*11696c5eSBiju Das #define LDDFR_YF_MASK (3 << 8)
88*11696c5eSBiju Das #define LDDFR_PKF_ARGB32 (0x00 << 0)
89*11696c5eSBiju Das #define LDDFR_PKF_RGB16 (0x03 << 0)
90*11696c5eSBiju Das #define LDDFR_PKF_RGB24 (0x0b << 0)
91*11696c5eSBiju Das #define LDDFR_PKF_MASK (0x1f << 0)
92*11696c5eSBiju Das #define LDSM1R 0x428
93*11696c5eSBiju Das #define LDSM1R_OS (1 << 0)
94*11696c5eSBiju Das #define LDSM2R 0x42c
95*11696c5eSBiju Das #define LDSM2R_OSTRG (1 << 0)
96*11696c5eSBiju Das #define LDSA1R 0x430
97*11696c5eSBiju Das #define LDSA2R 0x434
98*11696c5eSBiju Das #define LDMLSR 0x438
99*11696c5eSBiju Das #define LDWBFR 0x43c
100*11696c5eSBiju Das #define LDWBCNTR 0x440
101*11696c5eSBiju Das #define LDWBAR 0x444
102*11696c5eSBiju Das #define LDHCNR 0x448
103*11696c5eSBiju Das #define LDHSYNR 0x44c
104*11696c5eSBiju Das #define LDVLNR 0x450
105*11696c5eSBiju Das #define LDVSYNR 0x454
106*11696c5eSBiju Das #define LDHPDR 0x458
107*11696c5eSBiju Das #define LDVPDR 0x45c
108*11696c5eSBiju Das #define LDPMR 0x460
109*11696c5eSBiju Das #define LDPMR_LPS (3 << 0)
110*11696c5eSBiju Das #define LDINTR 0x468
111*11696c5eSBiju Das #define LDINTR_FE (1 << 10)
112*11696c5eSBiju Das #define LDINTR_VSE (1 << 9)
113*11696c5eSBiju Das #define LDINTR_VEE (1 << 8)
114*11696c5eSBiju Das #define LDINTR_FS (1 << 2)
115*11696c5eSBiju Das #define LDINTR_VSS (1 << 1)
116*11696c5eSBiju Das #define LDINTR_VES (1 << 0)
117*11696c5eSBiju Das #define LDINTR_STATUS_MASK (0xff << 0)
118*11696c5eSBiju Das #define LDSR 0x46c
119*11696c5eSBiju Das #define LDSR_MSS (1 << 10)
120*11696c5eSBiju Das #define LDSR_MRS (1 << 8)
121*11696c5eSBiju Das #define LDSR_AS (1 << 1)
122*11696c5eSBiju Das #define LDCNT1R 0x470
123*11696c5eSBiju Das #define LDCNT1R_DE (1 << 0)
124*11696c5eSBiju Das #define LDCNT2R 0x474
125*11696c5eSBiju Das #define LDCNT2R_BR (1 << 8)
126*11696c5eSBiju Das #define LDCNT2R_MD (1 << 3)
127*11696c5eSBiju Das #define LDCNT2R_SE (1 << 2)
128*11696c5eSBiju Das #define LDCNT2R_ME (1 << 1)
129*11696c5eSBiju Das #define LDCNT2R_DO (1 << 0)
130*11696c5eSBiju Das #define LDRCNTR 0x478
131*11696c5eSBiju Das #define LDRCNTR_SRS (1 << 17)
132*11696c5eSBiju Das #define LDRCNTR_SRC (1 << 16)
133*11696c5eSBiju Das #define LDRCNTR_MRS (1 << 1)
134*11696c5eSBiju Das #define LDRCNTR_MRC (1 << 0)
135*11696c5eSBiju Das #define LDDDSR 0x47c
136*11696c5eSBiju Das #define LDDDSR_LS (1 << 2)
137*11696c5eSBiju Das #define LDDDSR_WS (1 << 1)
138*11696c5eSBiju Das #define LDDDSR_BS (1 << 0)
139*11696c5eSBiju Das #define LDHAJR 0x4a0
140*11696c5eSBiju Das
141*11696c5eSBiju Das #define LDDWD0R 0x800
142*11696c5eSBiju Das #define LDDWDxR_WDACT (1 << 28)
143*11696c5eSBiju Das #define LDDWDxR_RSW (1 << 24)
144*11696c5eSBiju Das #define LDDRDR 0x840
145*11696c5eSBiju Das #define LDDRDR_RSR (1 << 24)
146*11696c5eSBiju Das #define LDDRDR_DRD_MASK (0x3ffff << 0)
147*11696c5eSBiju Das #define LDDWAR 0x900
148*11696c5eSBiju Das #define LDDWAR_WA (1 << 0)
149*11696c5eSBiju Das #define LDDRAR 0x904
150*11696c5eSBiju Das #define LDDRAR_RA (1 << 0)
151*11696c5eSBiju Das
152*11696c5eSBiju Das #define LDBCR 0xb00
153*11696c5eSBiju Das #define LDBCR_UPC(n) (1 << ((n) + 16))
154*11696c5eSBiju Das #define LDBCR_UPF(n) (1 << ((n) + 8))
155*11696c5eSBiju Das #define LDBCR_UPD(n) (1 << ((n) + 0))
156*11696c5eSBiju Das #define LDBnBSIFR(n) (0xb20 + (n) * 0x20 + 0x00)
157*11696c5eSBiju Das #define LDBBSIFR_EN (1 << 31)
158*11696c5eSBiju Das #define LDBBSIFR_VS (1 << 29)
159*11696c5eSBiju Das #define LDBBSIFR_BRSEL (1 << 28)
160*11696c5eSBiju Das #define LDBBSIFR_MX (1 << 27)
161*11696c5eSBiju Das #define LDBBSIFR_MY (1 << 26)
162*11696c5eSBiju Das #define LDBBSIFR_CV3 (3 << 24)
163*11696c5eSBiju Das #define LDBBSIFR_CV2 (2 << 24)
164*11696c5eSBiju Das #define LDBBSIFR_CV1 (1 << 24)
165*11696c5eSBiju Das #define LDBBSIFR_CV0 (0 << 24)
166*11696c5eSBiju Das #define LDBBSIFR_CV_MASK (3 << 24)
167*11696c5eSBiju Das #define LDBBSIFR_LAY_MASK (0xff << 16)
168*11696c5eSBiju Das #define LDBBSIFR_LAY_SHIFT 16
169*11696c5eSBiju Das #define LDBBSIFR_ROP3_MASK (0xff << 16)
170*11696c5eSBiju Das #define LDBBSIFR_ROP3_SHIFT 16
171*11696c5eSBiju Das #define LDBBSIFR_AL_PL8 (3 << 14)
172*11696c5eSBiju Das #define LDBBSIFR_AL_PL1 (2 << 14)
173*11696c5eSBiju Das #define LDBBSIFR_AL_PK (1 << 14)
174*11696c5eSBiju Das #define LDBBSIFR_AL_1 (0 << 14)
175*11696c5eSBiju Das #define LDBBSIFR_AL_MASK (3 << 14)
176*11696c5eSBiju Das #define LDBBSIFR_SWPL (1 << 10)
177*11696c5eSBiju Das #define LDBBSIFR_SWPW (1 << 9)
178*11696c5eSBiju Das #define LDBBSIFR_SWPB (1 << 8)
179*11696c5eSBiju Das #define LDBBSIFR_RY (1 << 7)
180*11696c5eSBiju Das #define LDBBSIFR_CHRR_420 (2 << 0)
181*11696c5eSBiju Das #define LDBBSIFR_CHRR_422 (1 << 0)
182*11696c5eSBiju Das #define LDBBSIFR_CHRR_444 (0 << 0)
183*11696c5eSBiju Das #define LDBBSIFR_RPKF_ARGB32 (0x00 << 0)
184*11696c5eSBiju Das #define LDBBSIFR_RPKF_RGB16 (0x03 << 0)
185*11696c5eSBiju Das #define LDBBSIFR_RPKF_RGB24 (0x0b << 0)
186*11696c5eSBiju Das #define LDBBSIFR_RPKF_MASK (0x1f << 0)
187*11696c5eSBiju Das #define LDBnBSSZR(n) (0xb20 + (n) * 0x20 + 0x04)
188*11696c5eSBiju Das #define LDBBSSZR_BVSS_MASK (0xfff << 16)
189*11696c5eSBiju Das #define LDBBSSZR_BVSS_SHIFT 16
190*11696c5eSBiju Das #define LDBBSSZR_BHSS_MASK (0xfff << 0)
191*11696c5eSBiju Das #define LDBBSSZR_BHSS_SHIFT 0
192*11696c5eSBiju Das #define LDBnBLOCR(n) (0xb20 + (n) * 0x20 + 0x08)
193*11696c5eSBiju Das #define LDBBLOCR_CVLC_MASK (0xfff << 16)
194*11696c5eSBiju Das #define LDBBLOCR_CVLC_SHIFT 16
195*11696c5eSBiju Das #define LDBBLOCR_CHLC_MASK (0xfff << 0)
196*11696c5eSBiju Das #define LDBBLOCR_CHLC_SHIFT 0
197*11696c5eSBiju Das #define LDBnBSMWR(n) (0xb20 + (n) * 0x20 + 0x0c)
198*11696c5eSBiju Das #define LDBBSMWR_BSMWA_MASK (0xffff << 16)
199*11696c5eSBiju Das #define LDBBSMWR_BSMWA_SHIFT 16
200*11696c5eSBiju Das #define LDBBSMWR_BSMW_MASK (0xffff << 0)
201*11696c5eSBiju Das #define LDBBSMWR_BSMW_SHIFT 0
202*11696c5eSBiju Das #define LDBnBSAYR(n) (0xb20 + (n) * 0x20 + 0x10)
203*11696c5eSBiju Das #define LDBBSAYR_FG1A_MASK (0xff << 24)
204*11696c5eSBiju Das #define LDBBSAYR_FG1A_SHIFT 24
205*11696c5eSBiju Das #define LDBBSAYR_FG1R_MASK (0xff << 16)
206*11696c5eSBiju Das #define LDBBSAYR_FG1R_SHIFT 16
207*11696c5eSBiju Das #define LDBBSAYR_FG1G_MASK (0xff << 8)
208*11696c5eSBiju Das #define LDBBSAYR_FG1G_SHIFT 8
209*11696c5eSBiju Das #define LDBBSAYR_FG1B_MASK (0xff << 0)
210*11696c5eSBiju Das #define LDBBSAYR_FG1B_SHIFT 0
211*11696c5eSBiju Das #define LDBnBSACR(n) (0xb20 + (n) * 0x20 + 0x14)
212*11696c5eSBiju Das #define LDBBSACR_FG2A_MASK (0xff << 24)
213*11696c5eSBiju Das #define LDBBSACR_FG2A_SHIFT 24
214*11696c5eSBiju Das #define LDBBSACR_FG2R_MASK (0xff << 16)
215*11696c5eSBiju Das #define LDBBSACR_FG2R_SHIFT 16
216*11696c5eSBiju Das #define LDBBSACR_FG2G_MASK (0xff << 8)
217*11696c5eSBiju Das #define LDBBSACR_FG2G_SHIFT 8
218*11696c5eSBiju Das #define LDBBSACR_FG2B_MASK (0xff << 0)
219*11696c5eSBiju Das #define LDBBSACR_FG2B_SHIFT 0
220*11696c5eSBiju Das #define LDBnBSAAR(n) (0xb20 + (n) * 0x20 + 0x18)
221*11696c5eSBiju Das #define LDBBSAAR_AP_MASK (0xff << 24)
222*11696c5eSBiju Das #define LDBBSAAR_AP_SHIFT 24
223*11696c5eSBiju Das #define LDBBSAAR_R_MASK (0xff << 16)
224*11696c5eSBiju Das #define LDBBSAAR_R_SHIFT 16
225*11696c5eSBiju Das #define LDBBSAAR_GY_MASK (0xff << 8)
226*11696c5eSBiju Das #define LDBBSAAR_GY_SHIFT 8
227*11696c5eSBiju Das #define LDBBSAAR_B_MASK (0xff << 0)
228*11696c5eSBiju Das #define LDBBSAAR_B_SHIFT 0
229*11696c5eSBiju Das #define LDBnBPPCR(n) (0xb20 + (n) * 0x20 + 0x1c)
230*11696c5eSBiju Das #define LDBBPPCR_AP_MASK (0xff << 24)
231*11696c5eSBiju Das #define LDBBPPCR_AP_SHIFT 24
232*11696c5eSBiju Das #define LDBBPPCR_R_MASK (0xff << 16)
233*11696c5eSBiju Das #define LDBBPPCR_R_SHIFT 16
234*11696c5eSBiju Das #define LDBBPPCR_GY_MASK (0xff << 8)
235*11696c5eSBiju Das #define LDBBPPCR_GY_SHIFT 8
236*11696c5eSBiju Das #define LDBBPPCR_B_MASK (0xff << 0)
237*11696c5eSBiju Das #define LDBBPPCR_B_SHIFT 0
238*11696c5eSBiju Das #define LDBnBBGCL(n) (0xb10 + (n) * 0x04)
239*11696c5eSBiju Das #define LDBBBGCL_BGA_MASK (0xff << 24)
240*11696c5eSBiju Das #define LDBBBGCL_BGA_SHIFT 24
241*11696c5eSBiju Das #define LDBBBGCL_BGR_MASK (0xff << 16)
242*11696c5eSBiju Das #define LDBBBGCL_BGR_SHIFT 16
243*11696c5eSBiju Das #define LDBBBGCL_BGG_MASK (0xff << 8)
244*11696c5eSBiju Das #define LDBBBGCL_BGG_SHIFT 8
245*11696c5eSBiju Das #define LDBBBGCL_BGB_MASK (0xff << 0)
246*11696c5eSBiju Das #define LDBBBGCL_BGB_SHIFT 0
247*11696c5eSBiju Das
248*11696c5eSBiju Das #define LCDC_SIDE_B_OFFSET 0x1000
249*11696c5eSBiju Das #define LCDC_MIRROR_OFFSET 0x2000
250*11696c5eSBiju Das
lcdc_is_banked(u32 reg)251*11696c5eSBiju Das static inline bool lcdc_is_banked(u32 reg)
252*11696c5eSBiju Das {
253*11696c5eSBiju Das switch (reg) {
254*11696c5eSBiju Das case LDMT1R:
255*11696c5eSBiju Das case LDMT2R:
256*11696c5eSBiju Das case LDMT3R:
257*11696c5eSBiju Das case LDDFR:
258*11696c5eSBiju Das case LDSM1R:
259*11696c5eSBiju Das case LDSA1R:
260*11696c5eSBiju Das case LDSA2R:
261*11696c5eSBiju Das case LDMLSR:
262*11696c5eSBiju Das case LDWBFR:
263*11696c5eSBiju Das case LDWBCNTR:
264*11696c5eSBiju Das case LDWBAR:
265*11696c5eSBiju Das case LDHCNR:
266*11696c5eSBiju Das case LDHSYNR:
267*11696c5eSBiju Das case LDVLNR:
268*11696c5eSBiju Das case LDVSYNR:
269*11696c5eSBiju Das case LDHPDR:
270*11696c5eSBiju Das case LDVPDR:
271*11696c5eSBiju Das case LDHAJR:
272*11696c5eSBiju Das return true;
273*11696c5eSBiju Das default:
274*11696c5eSBiju Das return reg >= LDBnBBGCL(0) && reg <= LDBnBPPCR(3);
275*11696c5eSBiju Das }
276*11696c5eSBiju Das }
277*11696c5eSBiju Das
lcdc_write_mirror(struct shmob_drm_device * sdev,u32 reg,u32 data)278*11696c5eSBiju Das static inline void lcdc_write_mirror(struct shmob_drm_device *sdev, u32 reg,
279*11696c5eSBiju Das u32 data)
280*11696c5eSBiju Das {
281*11696c5eSBiju Das iowrite32(data, sdev->mmio + reg + LCDC_MIRROR_OFFSET);
282*11696c5eSBiju Das }
283*11696c5eSBiju Das
lcdc_write(struct shmob_drm_device * sdev,u32 reg,u32 data)284*11696c5eSBiju Das static inline void lcdc_write(struct shmob_drm_device *sdev, u32 reg, u32 data)
285*11696c5eSBiju Das {
286*11696c5eSBiju Das iowrite32(data, sdev->mmio + reg);
287*11696c5eSBiju Das if (lcdc_is_banked(reg))
288*11696c5eSBiju Das iowrite32(data, sdev->mmio + reg + LCDC_SIDE_B_OFFSET);
289*11696c5eSBiju Das }
290*11696c5eSBiju Das
lcdc_read(struct shmob_drm_device * sdev,u32 reg)291*11696c5eSBiju Das static inline u32 lcdc_read(struct shmob_drm_device *sdev, u32 reg)
292*11696c5eSBiju Das {
293*11696c5eSBiju Das return ioread32(sdev->mmio + reg);
294*11696c5eSBiju Das }
295*11696c5eSBiju Das
lcdc_wait_bit(struct shmob_drm_device * sdev,u32 reg,u32 mask,u32 until)296*11696c5eSBiju Das static inline int lcdc_wait_bit(struct shmob_drm_device *sdev, u32 reg,
297*11696c5eSBiju Das u32 mask, u32 until)
298*11696c5eSBiju Das {
299*11696c5eSBiju Das unsigned long timeout = jiffies + msecs_to_jiffies(5);
300*11696c5eSBiju Das
301*11696c5eSBiju Das while ((lcdc_read(sdev, reg) & mask) != until) {
302*11696c5eSBiju Das if (time_after(jiffies, timeout))
303*11696c5eSBiju Das return -ETIMEDOUT;
304*11696c5eSBiju Das cpu_relax();
305*11696c5eSBiju Das }
306*11696c5eSBiju Das
307*11696c5eSBiju Das return 0;
308*11696c5eSBiju Das }
309*11696c5eSBiju Das
310*11696c5eSBiju Das #endif /* __SHMOB_DRM_REGS_H__ */
311