blob: 78b475ef98d9fb88ff639309d583c95a8ab4c5df [file] [log] [blame]
Sylwester Nawrocki7d5b1b82019-04-19 12:21:40 +02001/* SPDX-License-Identifier: GPL-2.0 */
2/*
Jassi Brar1c7ac012010-11-22 15:36:59 +09003 * ALSA SoC Audio Layer - Samsung I2S Controller driver
4 *
5 * Copyright (c) 2010 Samsung Electronics Co. Ltd.
Jaswinder Singhdf8ad332012-02-25 16:24:36 +05306 * Jaswinder Singh <jassisinghbrar@gmail.com>
Jassi Brar1c7ac012010-11-22 15:36:59 +09007 */
8
9#ifndef __SND_SOC_SAMSUNG_I2S_H
10#define __SND_SOC_SAMSUNG_I2S_H
11
Jaechul Lee22289dd2017-09-06 10:04:13 +090012#define SAMSUNG_I2S_DAI "samsung-i2s"
13#define SAMSUNG_I2S_DAI_SEC "samsung-i2s-sec"
14
Sylwester Nawrocki45ae70e2018-02-12 17:15:35 +010015#define SAMSUNG_I2S_DIV_BCLK 1
Jassi Brar1c7ac012010-11-22 15:36:59 +090016
Sylwester Nawrocki45ae70e2018-02-12 17:15:35 +010017#define SAMSUNG_I2S_RCLKSRC_0 0
18#define SAMSUNG_I2S_RCLKSRC_1 1
Jassi Brar1c7ac012010-11-22 15:36:59 +090019#define SAMSUNG_I2S_CDCLK 2
Sylwester Nawrocki45ae70e2018-02-12 17:15:35 +010020/* Operation clock for IIS logic */
Sylwester Nawrockic86d50f2014-05-19 19:30:38 +020021#define SAMSUNG_I2S_OPCLK 3
Sylwester Nawrocki45ae70e2018-02-12 17:15:35 +010022#define SAMSUNG_I2S_OPCLK_CDCLK_OUT 0 /* CODEC clock out */
23#define SAMSUNG_I2S_OPCLK_CDCLK_IN 1 /* CODEC clock in */
24#define SAMSUNG_I2S_OPCLK_BCLK_OUT 2 /* Bit clock out */
25#define SAMSUNG_I2S_OPCLK_PCLK 3 /* Audio bus clock */
Jassi Brar1c7ac012010-11-22 15:36:59 +090026
27#endif /* __SND_SOC_SAMSUNG_I2S_H */