diff options
author | Simon Glass <sjg@chromium.org> | 2019-04-01 23:38:40 +0300 |
---|---|---|
committer | Tom Warren <twarren@nvidia.com> | 2019-05-24 20:14:03 +0300 |
commit | c5a120b3f09c03e87b2cbc116af8250afb2dd500 (patch) | |
tree | 4ed5c685635f765558b7086f2c2824253161ac7a /drivers/sound/tegra_i2s_priv.h | |
parent | 112f2e1443428f3fa6dda91058557eb5cbfc3d43 (diff) | |
download | u-boot-c5a120b3f09c03e87b2cbc116af8250afb2dd500.tar.xz |
tegra: sound: Add an I2S driver
Add a driver which supports transmitting digital sound to an audio codec.
This uses fixed parameters as a device-tree binding is not currently
defined.
Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'drivers/sound/tegra_i2s_priv.h')
-rw-r--r-- | drivers/sound/tegra_i2s_priv.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/drivers/sound/tegra_i2s_priv.h b/drivers/sound/tegra_i2s_priv.h new file mode 100644 index 0000000000..7cd3fc808c --- /dev/null +++ b/drivers/sound/tegra_i2s_priv.h @@ -0,0 +1,29 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright 2018 Google LLC + * Written by Simon Glass <sjg@chromium.org> + */ + +#ifndef __TEGRA_I2S_PRIV_H +#define __TEGRA_I2S_PRIV_H + +enum { + /* Set i2s device (in buf) */ + AHUB_MISCOP_SET_I2S, +}; + +/* + * tegra_i2s_set_cif_tx_ctrl() - Set the I2C port to send to + * + * The CIF is not really part of I2S -- it's for Audio Hub to control + * the interface between I2S and Audio Hub. However since it's put in + * the I2S registers domain instead of the Audio Hub, we need to export + * this as a function. + * + * @dev: I2S device + * @value: Value to write to CIF_TX_CTRL register + * @return 0 + */ +int tegra_i2s_set_cif_tx_ctrl(struct udevice *dev, u32 value); + +#endif |