linux/drivers/gpu/drm/sun4i/sun8i_tcon_top.h

/* SPDX-License-Identifier: GPL-2.0+ */
/* Copyright (c) 2018 Jernej Skrabec <[email protected]> */

#ifndef _SUN8I_TCON_TOP_H_
#define _SUN8I_TCON_TOP_H_

#include <linux/clk.h>
#include <linux/clk-provider.h>
#include <linux/reset.h>
#include <linux/spinlock.h>

#define TCON_TOP_TCON_TV_SETUP_REG

#define TCON_TOP_PORT_SEL_REG
#define TCON_TOP_PORT_DE0_MSK
#define TCON_TOP_PORT_DE1_MSK

#define TCON_TOP_GATE_SRC_REG
#define TCON_TOP_HDMI_SRC_MSK
#define TCON_TOP_TCON_TV1_GATE
#define TCON_TOP_TCON_TV0_GATE
#define TCON_TOP_TCON_DSI_GATE

#define CLK_NUM

struct sun8i_tcon_top {};

extern const struct of_device_id sun8i_tcon_top_of_table[];

int sun8i_tcon_top_set_hdmi_src(struct device *dev, int tcon);
int sun8i_tcon_top_de_config(struct device *dev, int mixer, int tcon);

#endif /* _SUN8I_TCON_TOP_H_ */