WIP FPC-III support
[linux/fpc-iii.git] / sound / soc / samsung / s3c24xx-i2s.h
blobe073e31855d09cd7a28775181863014e098cecdb
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3 * s3c24xx-i2s.c -- ALSA Soc Audio Layer
5 * Copyright 2005 Wolfson Microelectronics PLC.
6 * Author: Graeme Gregory
7 * graeme.gregory@wolfsonmicro.com or linux@wolfsonmicro.com
9 * Revision history
10 * 10th Nov 2006 Initial version.
13 #ifndef S3C24XXI2S_H_
14 #define S3C24XXI2S_H_
16 /* clock sources */
17 #define S3C24XX_CLKSRC_PCLK 0
18 #define S3C24XX_CLKSRC_MPLL 1
20 /* Clock dividers */
21 #define S3C24XX_DIV_MCLK 0
22 #define S3C24XX_DIV_BCLK 1
23 #define S3C24XX_DIV_PRESCALER 2
25 /* prescaler */
26 #define S3C24XX_PRESCALE(a,b) \
27 (((a - 1) << S3C2410_IISPSR_INTSHIFT) | ((b - 1) << S3C2410_IISPSR_EXTSHFIT))
29 u32 s3c24xx_i2s_get_clockrate(void);
31 #endif /*S3C24XXI2S_H_*/