#include <linux/clk.h>
#include <linux/host1x.h>
#include <linux/io.h>
#include <linux/iopoll.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include "dev.h"
#define MIPI_CAL_CTRL …
#define MIPI_CAL_CTRL_NOISE_FILTER(x) …
#define MIPI_CAL_CTRL_PRESCALE(x) …
#define MIPI_CAL_CTRL_CLKEN_OVR …
#define MIPI_CAL_CTRL_START …
#define MIPI_CAL_AUTOCAL_CTRL …
#define MIPI_CAL_STATUS …
#define MIPI_CAL_STATUS_DONE …
#define MIPI_CAL_STATUS_ACTIVE …
#define MIPI_CAL_CONFIG_CSIA …
#define MIPI_CAL_CONFIG_CSIB …
#define MIPI_CAL_CONFIG_CSIC …
#define MIPI_CAL_CONFIG_CSID …
#define MIPI_CAL_CONFIG_CSIE …
#define MIPI_CAL_CONFIG_CSIF …
#define MIPI_CAL_CONFIG_DSIA …
#define MIPI_CAL_CONFIG_DSIB …
#define MIPI_CAL_CONFIG_DSIC …
#define MIPI_CAL_CONFIG_DSID …
#define MIPI_CAL_CONFIG_DSIA_CLK …
#define MIPI_CAL_CONFIG_DSIB_CLK …
#define MIPI_CAL_CONFIG_CSIAB_CLK …
#define MIPI_CAL_CONFIG_DSIC_CLK …
#define MIPI_CAL_CONFIG_CSICD_CLK …
#define MIPI_CAL_CONFIG_DSID_CLK …
#define MIPI_CAL_CONFIG_CSIE_CLK …
#define MIPI_CAL_CONFIG_SELECT …
#define MIPI_CAL_CONFIG_HSPDOS(x) …
#define MIPI_CAL_CONFIG_HSPUOS(x) …
#define MIPI_CAL_CONFIG_TERMOS(x) …
#define MIPI_CAL_CONFIG_HSCLKPDOSD(x) …
#define MIPI_CAL_CONFIG_HSCLKPUOSD(x) …
#define MIPI_CAL_BIAS_PAD_CFG0 …
#define MIPI_CAL_BIAS_PAD_PDVCLAMP …
#define MIPI_CAL_BIAS_PAD_E_VCLAMP_REF …
#define MIPI_CAL_BIAS_PAD_CFG1 …
#define MIPI_CAL_BIAS_PAD_DRV_DN_REF(x) …
#define MIPI_CAL_BIAS_PAD_DRV_UP_REF(x) …
#define MIPI_CAL_BIAS_PAD_CFG2 …
#define MIPI_CAL_BIAS_PAD_VCLAMP(x) …
#define MIPI_CAL_BIAS_PAD_VAUXP(x) …
#define MIPI_CAL_BIAS_PAD_PDVREG …
struct tegra_mipi_pad { … };
struct tegra_mipi_soc { … };
struct tegra_mipi { … };
struct tegra_mipi_device { … };
static inline u32 tegra_mipi_readl(struct tegra_mipi *mipi,
unsigned long offset)
{ … }
static inline void tegra_mipi_writel(struct tegra_mipi *mipi, u32 value,
unsigned long offset)
{ … }
static int tegra_mipi_power_up(struct tegra_mipi *mipi)
{ … }
static int tegra_mipi_power_down(struct tegra_mipi *mipi)
{ … }
struct tegra_mipi_device *tegra_mipi_request(struct device *device,
struct device_node *np)
{ … }
EXPORT_SYMBOL(…);
void tegra_mipi_free(struct tegra_mipi_device *device)
{ … }
EXPORT_SYMBOL(…);
int tegra_mipi_enable(struct tegra_mipi_device *dev)
{ … }
EXPORT_SYMBOL(…);
int tegra_mipi_disable(struct tegra_mipi_device *dev)
{ … }
EXPORT_SYMBOL(…);
int tegra_mipi_finish_calibration(struct tegra_mipi_device *device)
{ … }
EXPORT_SYMBOL(…);
int tegra_mipi_start_calibration(struct tegra_mipi_device *device)
{ … }
EXPORT_SYMBOL(…);
static const struct tegra_mipi_pad tegra114_mipi_pads[] = …;
static const struct tegra_mipi_soc tegra114_mipi_soc = …;
static const struct tegra_mipi_pad tegra124_mipi_pads[] = …;
static const struct tegra_mipi_soc tegra124_mipi_soc = …;
static const struct tegra_mipi_soc tegra132_mipi_soc = …;
static const struct tegra_mipi_pad tegra210_mipi_pads[] = …;
static const struct tegra_mipi_soc tegra210_mipi_soc = …;
static const struct of_device_id tegra_mipi_of_match[] = …;
static int tegra_mipi_probe(struct platform_device *pdev)
{ … }
struct platform_driver tegra_mipi_driver = …;