Simon Glass | 6d823d0 | 2019-04-01 13:38:40 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright 2018 Google LLC |
| 4 | * Written by Simon Glass <sjg@chromium.org> |
| 5 | */ |
| 6 | |
| 7 | #ifndef __TEGRA_I2S_PRIV_H |
| 8 | #define __TEGRA_I2S_PRIV_H |
| 9 | |
| 10 | enum { |
| 11 | /* Set i2s device (in buf) */ |
| 12 | AHUB_MISCOP_SET_I2S, |
| 13 | }; |
| 14 | |
| 15 | /* |
| 16 | * tegra_i2s_set_cif_tx_ctrl() - Set the I2C port to send to |
| 17 | * |
| 18 | * The CIF is not really part of I2S -- it's for Audio Hub to control |
| 19 | * the interface between I2S and Audio Hub. However since it's put in |
| 20 | * the I2S registers domain instead of the Audio Hub, we need to export |
| 21 | * this as a function. |
| 22 | * |
| 23 | * @dev: I2S device |
| 24 | * @value: Value to write to CIF_TX_CTRL register |
Heinrich Schuchardt | 47b4c02 | 2022-01-19 18:05:50 +0100 | [diff] [blame] | 25 | * Return: 0 |
Simon Glass | 6d823d0 | 2019-04-01 13:38:40 -0700 | [diff] [blame] | 26 | */ |
| 27 | int tegra_i2s_set_cif_tx_ctrl(struct udevice *dev, u32 value); |
| 28 | |
| 29 | #endif |