18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * ALSA SoC Audio Layer - Samsung I2S Controller driver
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (c) 2010 Samsung Electronics Co. Ltd.
68c2ecf20Sopenharmony_ci *	Jaswinder Singh <jassisinghbrar@gmail.com>
78c2ecf20Sopenharmony_ci */
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#ifndef __SND_SOC_SAMSUNG_I2S_H
108c2ecf20Sopenharmony_ci#define __SND_SOC_SAMSUNG_I2S_H
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#define SAMSUNG_I2S_DAI        "samsung-i2s"
138c2ecf20Sopenharmony_ci#define SAMSUNG_I2S_DAI_SEC    "samsung-i2s-sec"
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#define SAMSUNG_I2S_DIV_BCLK		1
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#define SAMSUNG_I2S_RCLKSRC_0		0
188c2ecf20Sopenharmony_ci#define SAMSUNG_I2S_RCLKSRC_1		1
198c2ecf20Sopenharmony_ci#define SAMSUNG_I2S_CDCLK		2
208c2ecf20Sopenharmony_ci/* Operation clock for IIS logic */
218c2ecf20Sopenharmony_ci#define SAMSUNG_I2S_OPCLK		3
228c2ecf20Sopenharmony_ci#define  SAMSUNG_I2S_OPCLK_CDCLK_OUT	0	/* CODEC clock out */
238c2ecf20Sopenharmony_ci#define  SAMSUNG_I2S_OPCLK_CDCLK_IN	1	/* CODEC clock in */
248c2ecf20Sopenharmony_ci#define  SAMSUNG_I2S_OPCLK_BCLK_OUT	2	/* Bit clock out */
258c2ecf20Sopenharmony_ci#define  SAMSUNG_I2S_OPCLK_PCLK		3	/* Audio bus clock */
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci#endif /* __SND_SOC_SAMSUNG_I2S_H */
28