linux/sound/soc/sh/rcar/gen.c

// SPDX-License-Identifier: GPL-2.0
//
// Renesas R-Car Gen1 SRU/SSI support
//
// Copyright (C) 2013 Renesas Solutions Corp.
// Kuninori Morimoto <[email protected]>

/*
 * #define DEBUG
 *
 * you can also add below in
 * ${LINUX}/drivers/base/regmap/regmap.c
 * for regmap debug
 *
 * #define LOG_DEVICE "xxxx.rcar_sound"
 */

#include "rsnd.h"

struct rsnd_gen {};

#define rsnd_priv_to_gen(p)
#define rsnd_reg_name(gen, id)

struct rsnd_regmap_field_conf {};

#define RSND_REG_SET(id, offset, _id_offset, n)
/* single address mapping */
#define RSND_GEN_S_REG(id, offset)

/* multi address mapping */
#define RSND_GEN_M_REG(id, offset, _id_offset)

/*
 *		basic function
 */
static int rsnd_is_accessible_reg(struct rsnd_priv *priv,
				  struct rsnd_gen *gen, enum rsnd_reg reg)
{}

static int rsnd_mod_id_cmd(struct rsnd_mod *mod)
{}

u32 rsnd_mod_read(struct rsnd_mod *mod, enum rsnd_reg reg)
{}

void rsnd_mod_write(struct rsnd_mod *mod,
		    enum rsnd_reg reg, u32 data)
{}

void rsnd_mod_bset(struct rsnd_mod *mod,
		   enum rsnd_reg reg, u32 mask, u32 data)
{}

phys_addr_t rsnd_gen_get_phy_addr(struct rsnd_priv *priv, int reg_id)
{}

#ifdef CONFIG_DEBUG_FS
void __iomem *rsnd_gen_get_base_addr(struct rsnd_priv *priv, int reg_id)
{}
#endif

#define rsnd_gen_regmap_init(priv, id_size, reg_id, name, conf)
static int _rsnd_gen_regmap_init(struct rsnd_priv *priv,
				 int id_size,
				 int reg_id,
				 const char *name,
				 const struct rsnd_regmap_field_conf *conf,
				 int conf_size)
{}

/*
 * (A) : Gen4 is 0xa0c, but it is not used.
 *	see
 *		rsnd_ssiu_init()
 */
static const struct rsnd_regmap_field_conf conf_common_ssiu[] =;

static const struct rsnd_regmap_field_conf conf_common_scu[] =;

static const struct rsnd_regmap_field_conf conf_common_adg[] =;

static const struct rsnd_regmap_field_conf conf_common_ssi[] =;

/*
 *		Gen4
 */
static int rsnd_gen4_probe(struct rsnd_priv *priv)
{}

/*
 *		Gen2
 */
static int rsnd_gen2_probe(struct rsnd_priv *priv)
{}

/*
 *		Gen1
 */

static int rsnd_gen1_probe(struct rsnd_priv *priv)
{}

/*
 *		Gen
 */
int rsnd_gen_probe(struct rsnd_priv *priv)
{}