linux/include/soc/fsl/qe/qe_tdm.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Internal header file for QE TDM mode routines.
 *
 * Copyright (C) 2016 Freescale Semiconductor, Inc. All rights reserved.
 *
 * Authors:	Zhao Qiang <[email protected]>
 */

#ifndef _QE_TDM_H_
#define _QE_TDM_H_

#include <linux/list.h>
#include <linux/types.h>

#include <soc/fsl/qe/immap_qe.h>
#include <soc/fsl/qe/qe.h>

#include <soc/fsl/qe/ucc.h>
#include <soc/fsl/qe/ucc_fast.h>

struct device_node;

/* SI RAM entries */
#define SIR_LAST
#define SIR_BYTE
#define SIR_CNT(x)
#define SIR_CSEL(x)
#define SIR_SGS
#define SIR_SWTR
#define SIR_MCC
#define SIR_IDLE

/* SIxMR fields */
#define SIMR_SAD(x)
#define SIMR_SDM_NORMAL
#define SIMR_SDM_INTERNAL_LOOPBACK
#define SIMR_SDM_MASK
#define SIMR_CRT
#define SIMR_SL
#define SIMR_CE
#define SIMR_FE
#define SIMR_GM
#define SIMR_TFSD(n)
#define SIMR_RFSD(n)

enum tdm_ts_t {};

enum tdm_framer_t {};

enum tdm_mode_t {};

struct si_mode_info {};

struct ucc_tdm_info {};

struct ucc_tdm {};

int ucc_of_parse_tdm(struct device_node *np, struct ucc_tdm *utdm,
		     struct ucc_tdm_info *ut_info);
void ucc_tdm_init(struct ucc_tdm *utdm, struct ucc_tdm_info *ut_info);
#endif