linux/drivers/gpu/host1x/mipi.c

/*
 * Copyright (C) 2013 NVIDIA Corporation
 *
 * Permission to use, copy, modify, distribute, and sell this software and its
 * documentation for any purpose is hereby granted without fee, provided that
 * the above copyright notice appear in all copies and that both that copyright
 * notice and this permission notice appear in supporting documentation, and
 * that the name of the copyright holders not be used in advertising or
 * publicity pertaining to distribution of the software without specific,
 * written prior permission.  The copyright holders make no representations
 * about the suitability of this software for any purpose.  It is provided "as
 * is" without express or implied warranty.
 *
 * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
 * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
 * OF THIS SOFTWARE.
 */

#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

/* for data and clock lanes */
#define MIPI_CAL_CONFIG_SELECT

/* for data lanes */
#define MIPI_CAL_CONFIG_HSPDOS(x)
#define MIPI_CAL_CONFIG_HSPUOS(x)
#define MIPI_CAL_CONFIG_TERMOS(x)

/* for clock lanes */
#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 =;