Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ */
0002 /*
0003  * s3c24xx-i2s.c  --  ALSA Soc Audio Layer
0004  *
0005  * Copyright 2005 Wolfson Microelectronics PLC.
0006  * Author: Graeme Gregory
0007  *         graeme.gregory@wolfsonmicro.com or linux@wolfsonmicro.com
0008  *
0009  *  Revision history
0010  *    10th Nov 2006   Initial version.
0011  */
0012 
0013 #ifndef S3C24XXI2S_H_
0014 #define S3C24XXI2S_H_
0015 
0016 /* clock sources */
0017 #define S3C24XX_CLKSRC_PCLK 0
0018 #define S3C24XX_CLKSRC_MPLL 1
0019 
0020 /* Clock dividers */
0021 #define S3C24XX_DIV_MCLK    0
0022 #define S3C24XX_DIV_BCLK    1
0023 #define S3C24XX_DIV_PRESCALER   2
0024 
0025 /* prescaler */
0026 #define S3C24XX_PRESCALE(a,b) \
0027     (((a - 1) << S3C2410_IISPSR_INTSHIFT) | ((b - 1) << S3C2410_IISPSR_EXTSHFIT))
0028 
0029 u32 s3c24xx_i2s_get_clockrate(void);
0030 
0031 #endif /*S3C24XXI2S_H_*/