Sylwester Nawrocki | 7d5b1b8 | 2019-04-19 12:21:40 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | /* |
Jassi Brar | 1c7ac01 | 2010-11-22 15:36:59 +0900 | [diff] [blame] | 3 | * ALSA SoC Audio Layer - Samsung I2S Controller driver |
| 4 | * |
| 5 | * Copyright (c) 2010 Samsung Electronics Co. Ltd. |
Jaswinder Singh | df8ad33 | 2012-02-25 16:24:36 +0530 | [diff] [blame] | 6 | * Jaswinder Singh <jassisinghbrar@gmail.com> |
Jassi Brar | 1c7ac01 | 2010-11-22 15:36:59 +0900 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef __SND_SOC_SAMSUNG_I2S_H |
| 10 | #define __SND_SOC_SAMSUNG_I2S_H |
| 11 | |
Jaechul Lee | 22289dd | 2017-09-06 10:04:13 +0900 | [diff] [blame] | 12 | #define SAMSUNG_I2S_DAI "samsung-i2s" |
| 13 | #define SAMSUNG_I2S_DAI_SEC "samsung-i2s-sec" |
| 14 | |
Sylwester Nawrocki | 45ae70e | 2018-02-12 17:15:35 +0100 | [diff] [blame] | 15 | #define SAMSUNG_I2S_DIV_BCLK 1 |
Jassi Brar | 1c7ac01 | 2010-11-22 15:36:59 +0900 | [diff] [blame] | 16 | |
Sylwester Nawrocki | 45ae70e | 2018-02-12 17:15:35 +0100 | [diff] [blame] | 17 | #define SAMSUNG_I2S_RCLKSRC_0 0 |
| 18 | #define SAMSUNG_I2S_RCLKSRC_1 1 |
Jassi Brar | 1c7ac01 | 2010-11-22 15:36:59 +0900 | [diff] [blame] | 19 | #define SAMSUNG_I2S_CDCLK 2 |
Sylwester Nawrocki | 45ae70e | 2018-02-12 17:15:35 +0100 | [diff] [blame] | 20 | /* Operation clock for IIS logic */ |
Sylwester Nawrocki | c86d50f | 2014-05-19 19:30:38 +0200 | [diff] [blame] | 21 | #define SAMSUNG_I2S_OPCLK 3 |
Sylwester Nawrocki | 45ae70e | 2018-02-12 17:15:35 +0100 | [diff] [blame] | 22 | #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 Brar | 1c7ac01 | 2010-11-22 15:36:59 +0900 | [diff] [blame] | 26 | |
| 27 | #endif /* __SND_SOC_SAMSUNG_I2S_H */ |