linux/drivers/media/platform/marvell/mmp-driver.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Support for the camera device found on Marvell MMP processors; known
 * to work with the Armada 610 as used in the OLPC 1.75 system.
 *
 * Copyright 2011 Jonathan Corbet <[email protected]>
 * Copyright 2018 Lubomir Rintel <[email protected]>
 */

#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/spinlock.h>
#include <linux/slab.h>
#include <linux/videodev2.h>
#include <media/v4l2-device.h>
#include <linux/platform_data/media/mmp-camera.h>
#include <linux/device.h>
#include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <linux/io.h>
#include <linux/list.h>
#include <linux/pm.h>
#include <linux/clk.h>

#include "mcam-core.h"

MODULE_ALIAS();
MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();

static char *mcam_clks[] =;

struct mmp_camera {};

static inline struct mmp_camera *mcam_to_cam(struct mcam_camera *mcam)
{}

/*
 * calc the dphy register values
 * There are three dphy registers being used.
 * dphy[0] - CSI2_DPHY3
 * dphy[1] - CSI2_DPHY5
 * dphy[2] - CSI2_DPHY6
 * CSI2_DPHY3 and CSI2_DPHY6 can be set with a default value
 * or be calculated dynamically
 */
static void mmpcam_calc_dphy(struct mcam_camera *mcam)
{}

static irqreturn_t mmpcam_irq(int irq, void *data)
{}

static void mcam_init_clk(struct mcam_camera *mcam)
{}

static int mmpcam_probe(struct platform_device *pdev)
{}

static void mmpcam_remove(struct platform_device *pdev)
{}

/*
 * Suspend/resume support.
 */

static int __maybe_unused mmpcam_runtime_resume(struct device *dev)
{}

static int __maybe_unused mmpcam_runtime_suspend(struct device *dev)
{}

static int __maybe_unused mmpcam_suspend(struct device *dev)
{}

static int __maybe_unused mmpcam_resume(struct device *dev)
{}

static const struct dev_pm_ops mmpcam_pm_ops =;

static const struct of_device_id mmpcam_of_match[] =;
MODULE_DEVICE_TABLE(of, mmpcam_of_match);

static struct platform_driver mmpcam_driver =;

module_platform_driver();