linux/sound/soc/tegra/tegra210_ope.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * tegra210_ope.h - Definitions for Tegra210 OPE driver
 *
 * Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
 *
 */

#ifndef __TEGRA210_OPE_H__
#define __TEGRA210_OPE_H__

#include <linux/regmap.h>
#include <sound/soc.h>

#include "tegra210_peq.h"

/*
 * OPE_RX registers are with respect to XBAR.
 * The data comes from XBAR to OPE
 */
#define TEGRA210_OPE_RX_STATUS
#define TEGRA210_OPE_RX_INT_STATUS
#define TEGRA210_OPE_RX_INT_MASK
#define TEGRA210_OPE_RX_INT_SET
#define TEGRA210_OPE_RX_INT_CLEAR
#define TEGRA210_OPE_RX_CIF_CTRL

/*
 * OPE_TX registers are with respect to XBAR.
 * The data goes out from OPE to XBAR
 */
#define TEGRA210_OPE_TX_STATUS
#define TEGRA210_OPE_TX_INT_STATUS
#define TEGRA210_OPE_TX_INT_MASK
#define TEGRA210_OPE_TX_INT_SET
#define TEGRA210_OPE_TX_INT_CLEAR
#define TEGRA210_OPE_TX_CIF_CTRL

/* OPE Gloabal registers */
#define TEGRA210_OPE_ENABLE
#define TEGRA210_OPE_SOFT_RESET
#define TEGRA210_OPE_CG
#define TEGRA210_OPE_STATUS
#define TEGRA210_OPE_INT_STATUS
#define TEGRA210_OPE_DIR

/* Fields for TEGRA210_OPE_ENABLE */
#define TEGRA210_OPE_EN_SHIFT
#define TEGRA210_OPE_EN

/* Fields for TEGRA210_OPE_SOFT_RESET */
#define TEGRA210_OPE_SOFT_RESET_SHIFT
#define TEGRA210_OPE_SOFT_RESET_EN

#define TEGRA210_OPE_DIR_SHIFT

struct tegra210_ope {};

/* Extension of soc_bytes structure defined in sound/soc.h */
struct tegra_soc_bytes {};

/* Utility structures for using mixer control of type snd_soc_bytes */
#define TEGRA_SOC_BYTES_EXT(xname, xbase, xregs, xshift, xmask,		\
			    xhandler_get, xhandler_put, xinfo)

#endif