18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (c) 2003 Simtec Electronics <linux@simtec.co.uk>
48c2ecf20Sopenharmony_ci *		      http://www.simtec.co.uk/products/SWLINUX/
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci * S3C2410 IIS register definition
78c2ecf20Sopenharmony_ci */
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#ifndef __SAMSUNG_REGS_IIS_H__
108c2ecf20Sopenharmony_ci#define __SAMSUNG_REGS_IIS_H__
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#define S3C2410_IISCON			(0x00)
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci#define S3C2410_IISCON_LRINDEX		(1 << 8)
158c2ecf20Sopenharmony_ci#define S3C2410_IISCON_TXFIFORDY	(1 << 7)
168c2ecf20Sopenharmony_ci#define S3C2410_IISCON_RXFIFORDY	(1 << 6)
178c2ecf20Sopenharmony_ci#define S3C2410_IISCON_TXDMAEN		(1 << 5)
188c2ecf20Sopenharmony_ci#define S3C2410_IISCON_RXDMAEN		(1 << 4)
198c2ecf20Sopenharmony_ci#define S3C2410_IISCON_TXIDLE		(1 << 3)
208c2ecf20Sopenharmony_ci#define S3C2410_IISCON_RXIDLE		(1 << 2)
218c2ecf20Sopenharmony_ci#define S3C2410_IISCON_PSCEN		(1 << 1)
228c2ecf20Sopenharmony_ci#define S3C2410_IISCON_IISEN		(1 << 0)
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci#define S3C2410_IISMOD			(0x04)
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci#define S3C2440_IISMOD_MPLL		(1 << 9)
278c2ecf20Sopenharmony_ci#define S3C2410_IISMOD_SLAVE		(1 << 8)
288c2ecf20Sopenharmony_ci#define S3C2410_IISMOD_NOXFER		(0 << 6)
298c2ecf20Sopenharmony_ci#define S3C2410_IISMOD_RXMODE		(1 << 6)
308c2ecf20Sopenharmony_ci#define S3C2410_IISMOD_TXMODE		(2 << 6)
318c2ecf20Sopenharmony_ci#define S3C2410_IISMOD_TXRXMODE		(3 << 6)
328c2ecf20Sopenharmony_ci#define S3C2410_IISMOD_LR_LLOW		(0 << 5)
338c2ecf20Sopenharmony_ci#define S3C2410_IISMOD_LR_RLOW		(1 << 5)
348c2ecf20Sopenharmony_ci#define S3C2410_IISMOD_IIS		(0 << 4)
358c2ecf20Sopenharmony_ci#define S3C2410_IISMOD_MSB		(1 << 4)
368c2ecf20Sopenharmony_ci#define S3C2410_IISMOD_8BIT		(0 << 3)
378c2ecf20Sopenharmony_ci#define S3C2410_IISMOD_16BIT		(1 << 3)
388c2ecf20Sopenharmony_ci#define S3C2410_IISMOD_BITMASK		(1 << 3)
398c2ecf20Sopenharmony_ci#define S3C2410_IISMOD_256FS		(0 << 2)
408c2ecf20Sopenharmony_ci#define S3C2410_IISMOD_384FS		(1 << 2)
418c2ecf20Sopenharmony_ci#define S3C2410_IISMOD_16FS		(0 << 0)
428c2ecf20Sopenharmony_ci#define S3C2410_IISMOD_32FS		(1 << 0)
438c2ecf20Sopenharmony_ci#define S3C2410_IISMOD_48FS		(2 << 0)
448c2ecf20Sopenharmony_ci#define S3C2410_IISMOD_FS_MASK		(3 << 0)
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_ci#define S3C2410_IISPSR			(0x08)
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_ci#define S3C2410_IISPSR_INTMASK		(31 << 5)
498c2ecf20Sopenharmony_ci#define S3C2410_IISPSR_INTSHIFT		(5)
508c2ecf20Sopenharmony_ci#define S3C2410_IISPSR_EXTMASK		(31 << 0)
518c2ecf20Sopenharmony_ci#define S3C2410_IISPSR_EXTSHFIT		(0)
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_ci#define S3C2410_IISFCON			(0x0c)
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ci#define S3C2410_IISFCON_TXDMA		(1 << 15)
568c2ecf20Sopenharmony_ci#define S3C2410_IISFCON_RXDMA		(1 << 14)
578c2ecf20Sopenharmony_ci#define S3C2410_IISFCON_TXENABLE	(1 << 13)
588c2ecf20Sopenharmony_ci#define S3C2410_IISFCON_RXENABLE	(1 << 12)
598c2ecf20Sopenharmony_ci#define S3C2410_IISFCON_TXMASK		(0x3f << 6)
608c2ecf20Sopenharmony_ci#define S3C2410_IISFCON_TXSHIFT		(6)
618c2ecf20Sopenharmony_ci#define S3C2410_IISFCON_RXMASK		(0x3f)
628c2ecf20Sopenharmony_ci#define S3C2410_IISFCON_RXSHIFT		(0)
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_ci#define S3C2410_IISFIFO			(0x10)
658c2ecf20Sopenharmony_ci
668c2ecf20Sopenharmony_ci#endif /* __SAMSUNG_REGS_IIS_H__ */
67