linux/drivers/interconnect/imx/imx.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Interconnect framework driver for i.MX SoC
 *
 * Copyright (c) 2019, BayLibre
 * Copyright (c) 2019-2020, NXP
 * Author: Alexandre Bailon <[email protected]>
 * Author: Leonard Crestez <[email protected]>
 */
#ifndef __DRIVERS_INTERCONNECT_IMX_H
#define __DRIVERS_INTERCONNECT_IMX_H

#include <linux/args.h>
#include <linux/bits.h>
#include <linux/types.h>

#include <linux/interconnect-provider.h>

struct platform_device;

#define IMX_ICC_MAX_LINKS

/*
 * High throughput priority level in Regulator mode
 * Read Priority in Fixed/Limiter mode
 */
#define PRIORITY0_SHIFT
/*
 * Low throughput priority level in Regulator mode
 * Write Priority in Fixed/Limiter mode
 */
#define PRIORITY1_SHIFT
#define PRIORITY_MASK

#define PRIORITY_COMP_MARK

#define IMX_NOC_MODE_FIXED
#define IMX_NOC_MODE_LIMITER
#define IMX_NOC_MODE_BYPASS
#define IMX_NOC_MODE_REGULATOR
#define IMX_NOC_MODE_UNCONFIGURED

#define IMX_NOC_PRIO_REG
#define IMX_NOC_MODE_REG
#define IMX_NOC_BANDWIDTH_REG
#define IMX_NOC_SATURATION
#define IMX_NOC_EXT_CTL_REG

struct imx_icc_provider {};

/*
 * struct imx_icc_node_adj - Describe a dynamic adjustable node
 */
struct imx_icc_node_adj_desc {};

/*
 * struct imx_icc_node - Describe an interconnect node
 * @name: name of the node
 * @id: an unique id to identify the node
 * @links: an array of slaves' node id
 * @num_links: number of id defined in links
 */
struct imx_icc_node_desc {};

/*
 * struct imx_icc_noc_setting - Describe an interconnect node setting
 * @reg: register offset inside the NoC
 * @prio_level: priority level
 * @mode: functional mode
 * @ext_control: external input control
 */
struct imx_icc_noc_setting {};

#define DEFINE_BUS_INTERCONNECT(_name, _id, _adj, ...)

#define DEFINE_BUS_MASTER(_name, _id, _dest_id)

#define DEFINE_BUS_SLAVE(_name, _id, _adj)

int imx_icc_register(struct platform_device *pdev,
		     struct imx_icc_node_desc *nodes,
		     int nodes_count,
		     struct imx_icc_noc_setting *noc_settings);
void imx_icc_unregister(struct platform_device *pdev);

#endif /* __DRIVERS_INTERCONNECT_IMX_H */