no-OS
Loading...
Searching...
No Matches
max96793_csi.h
Go to the documentation of this file.
1/*******************************************************************************
2 * @file max96793_csi.h
3 * @brief Header file of CSI Driver Implementation of MAX96793 Serializer.
4 * @author Automotive Software and Systems team, Bangalore, India
5********************************************************************************
6 * Copyright 2025(c) Analog Devices, Inc.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions are met:
10 *
11 * 1. Redistributions of source code must retain the above copyright notice,
12 * this list of conditions and the following disclaimer.
13 *
14 * 2. Redistributions in binary form must reproduce the above copyright notice,
15 * this list of conditions and the following disclaimer in the documentation
16 * and/or other materials provided with the distribution.
17 *
18 * 3. Neither the name of Analog Devices, Inc. nor the names of its
19 * contributors may be used to endorse or promote products derived from this
20 * software without specific prior written permission.
21 *
22 * THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. "AS IS" AND ANY EXPRESS OR
23 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
24 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
25 * EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT,
26 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
28 * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
29 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
30 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
31 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32*******************************************************************************/
33
34#ifndef MAX96793_CSI_H
35#define MAX96793_CSI_H
36
37#include "gmsl_common.h"
38#include "gmsl_cam_ser.h"
39#include "no_os_delay.h"
41 unsigned int new_addr);
42
43int32_t max96793_csi_set_pipe_enable(struct gmsl_dev *dev, bool enable);
44
46 struct gmsl_link_ser_phy_cfg *phy);
47
49 struct gmsl_link_ser_phy_cfg *phy);
50
51int32_t max96793_csi_init_port(struct gmsl_dev *dev,
52 struct gmsl_csi_ser_port_cfg *port);
53
54int32_t max96793_csi_init(struct gmsl_dev *dev, bool tunnel_mode);
55
56int32_t max96793_csi_init_pipe(struct gmsl_dev *dev,
57 struct gmsl_pipe_ser_pipe_cfg *pipe);
58
59extern int max96793_gpio_cam_cfg(struct gmsl_dev *dev);
60#endif
61
int32_t max96793_csi_config_sensor_to_ser_lane_map(struct gmsl_dev *dev, struct gmsl_link_ser_phy_cfg *phy)
Configure the sensor to serializer lane mapping for the MAX96793 device.
Definition max96793_csi.c:94
int32_t max96793_csi_change_ser_address(struct gmsl_dev *dev, unsigned int new_addr)
Change the serializer address of the MAX96793 device.
Definition max96793_csi.c:58
int32_t max96793_csi_set_pipe_enable(struct gmsl_dev *dev, bool enable)
Enable or disable the pipe of the MAX96793 device.
Definition max96793_csi.c:76
int max96793_gpio_cam_cfg(struct gmsl_dev *dev)
Configure the GPIO settings for the camera on the MAX96792 serializer.
Definition max96793_csi.c:345
int32_t max96793_csi_init_pipe(struct gmsl_dev *dev, struct gmsl_pipe_ser_pipe_cfg *pipe)
Initialize the pipe for the MAX96793 device.
Definition max96793_csi.c:283
int32_t max96793_csi_config_sensor_lane_pol(struct gmsl_dev *dev, struct gmsl_link_ser_phy_cfg *phy)
Configure the lane polarities for the MAX96793 device.
Definition max96793_csi.c:135
int32_t max96793_csi_init_port(struct gmsl_dev *dev, struct gmsl_csi_ser_port_cfg *port)
Initialize the CSI port for the MAX96793 device.
Definition max96793_csi.c:177
int32_t max96793_csi_init(struct gmsl_dev *dev, bool tunnel_mode)
Initialize the MAX96793 device.
Definition max96793_csi.c:241
Header file of Delay functions.
A structure that contains configuration parameters for a GMSL camera serializer MIPI port.
Definition gmsl_cam_ser.h:105
Structure representing a GMSL device handle, containing configuration parameters and diagnostic opera...
Definition gmsl_common.h:159
A structure that contains configuration parameters for a GMSL camera serializer pipe.
Definition gmsl_cam_ser.h:66