linux/drivers/media/i2c/max9271.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * Copyright (C) 2017-2020 Jacopo Mondi
 * Copyright (C) 2017-2020 Kieran Bingham
 * Copyright (C) 2017-2020 Laurent Pinchart
 * Copyright (C) 2017-2020 Niklas Söderlund
 * Copyright (C) 2016 Renesas Electronics Corporation
 * Copyright (C) 2015 Cogent Embedded, Inc.
 *
 * This file exports functions to control the Maxim MAX9271 GMSL serializer
 * chip. This is not a self-contained driver, as MAX9271 is usually embedded in
 * camera modules with at least one image sensor and optional additional
 * components, such as uController units or ISPs/DSPs.
 *
 * Drivers for the camera modules (i.e. rdacm20/21) are expected to use
 * functions exported from this library driver to maximize code re-use.
 */

#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/module.h>

#include "max9271.h"

static int max9271_read(struct max9271_device *dev, u8 reg)
{}

static int max9271_write(struct max9271_device *dev, u8 reg, u8 val)
{}

/*
 * max9271_pclk_detect() - Detect valid pixel clock from image sensor
 *
 * Wait up to 10ms for a valid pixel clock.
 *
 * Returns 0 for success, < 0 for pixel clock not properly detected
 */
static int max9271_pclk_detect(struct max9271_device *dev)
{}

void max9271_wake_up(struct max9271_device *dev)
{}
EXPORT_SYMBOL_GPL();

int max9271_set_serial_link(struct max9271_device *dev, bool enable)
{}
EXPORT_SYMBOL_GPL();

int max9271_configure_i2c(struct max9271_device *dev, u8 i2c_config)
{}
EXPORT_SYMBOL_GPL();

int max9271_set_high_threshold(struct max9271_device *dev, bool enable)
{}
EXPORT_SYMBOL_GPL();

int max9271_configure_gmsl_link(struct max9271_device *dev)
{}
EXPORT_SYMBOL_GPL();

int max9271_set_gpios(struct max9271_device *dev, u8 gpio_mask)
{}
EXPORT_SYMBOL_GPL();

int max9271_clear_gpios(struct max9271_device *dev, u8 gpio_mask)
{}
EXPORT_SYMBOL_GPL();

int max9271_enable_gpios(struct max9271_device *dev, u8 gpio_mask)
{}
EXPORT_SYMBOL_GPL();

int max9271_disable_gpios(struct max9271_device *dev, u8 gpio_mask)
{}
EXPORT_SYMBOL_GPL();

int max9271_verify_id(struct max9271_device *dev)
{}
EXPORT_SYMBOL_GPL();

int max9271_set_address(struct max9271_device *dev, u8 addr)
{}
EXPORT_SYMBOL_GPL();

int max9271_set_deserializer_address(struct max9271_device *dev, u8 addr)
{}
EXPORT_SYMBOL_GPL();

int max9271_set_translation(struct max9271_device *dev, u8 source, u8 dest)
{}
EXPORT_SYMBOL_GPL();

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