linux/drivers/media/platform/qcom/camss/camss-csiphy-2ph-1-0.c

// SPDX-License-Identifier: GPL-2.0
/*
 * camss-csiphy-2ph-1-0.c
 *
 * Qualcomm MSM Camera Subsystem - CSIPHY Module 2phase v1.0
 *
 * Copyright (c) 2011-2015, The Linux Foundation. All rights reserved.
 * Copyright (C) 2016-2018 Linaro Ltd.
 */

#include "camss-csiphy.h"

#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/io.h>

#define CAMSS_CSI_PHY_LNn_CFG2(n)
#define CAMSS_CSI_PHY_LNn_CFG3(n)
#define CAMSS_CSI_PHY_LN_CLK
#define CAMSS_CSI_PHY_GLBL_RESET
#define CAMSS_CSI_PHY_GLBL_PWR_CFG
#define CAMSS_CSI_PHY_GLBL_IRQ_CMD
#define CAMSS_CSI_PHY_HW_VERSION
#define CAMSS_CSI_PHY_INTERRUPT_STATUSn(n)
#define CAMSS_CSI_PHY_INTERRUPT_MASKn(n)
#define CAMSS_CSI_PHY_INTERRUPT_CLEARn(n)
#define CAMSS_CSI_PHY_GLBL_T_INIT_CFG0
#define CAMSS_CSI_PHY_T_WAKEUP_CFG0

static u8 csiphy_get_lane_mask(struct csiphy_lanes_cfg *lane_cfg)
{}

static void csiphy_hw_version_read(struct csiphy_device *csiphy,
				   struct device *dev)
{}

/*
 * csiphy_reset - Perform software reset on CSIPHY module
 * @csiphy: CSIPHY device
 */
static void csiphy_reset(struct csiphy_device *csiphy)
{}

/*
 * csiphy_settle_cnt_calc - Calculate settle count value
 *
 * Helper function to calculate settle count value. This is
 * based on the CSI2 T_hs_settle parameter which in turn
 * is calculated based on the CSI2 transmitter link frequency.
 *
 * Return settle count value or 0 if the CSI2 link frequency
 * is not available
 */
static u8 csiphy_settle_cnt_calc(s64 link_freq, u32 timer_clk_rate)
{}

static void csiphy_lanes_enable(struct csiphy_device *csiphy,
				struct csiphy_config *cfg,
				s64 link_freq, u8 lane_mask)
{}

static void csiphy_lanes_disable(struct csiphy_device *csiphy,
				 struct csiphy_config *cfg)
{}

/*
 * csiphy_isr - CSIPHY module interrupt handler
 * @irq: Interrupt line
 * @dev: CSIPHY device
 *
 * Return IRQ_HANDLED on success
 */
static irqreturn_t csiphy_isr(int irq, void *dev)
{}

const struct csiphy_hw_ops csiphy_ops_2ph_1_0 =;