1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Support for Intel Camera Imaging ISP subsystem.
4 * Copyright (c) 2015, Intel Corporation.
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.
10 * This program is distributed in the hope it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 #ifndef __CSI_RX_GLOBAL_H_INCLUDED__
17 #define __CSI_RX_GLOBAL_H_INCLUDED__
19 #include <type_support.h>
22 CSI_MIPI_PACKET_TYPE_UNDEFINED = 0,
23 CSI_MIPI_PACKET_TYPE_LONG,
24 CSI_MIPI_PACKET_TYPE_SHORT,
25 CSI_MIPI_PACKET_TYPE_RESERVED,
26 N_CSI_MIPI_PACKET_TYPE
27 } csi_mipi_packet_type_t;
29 typedef struct csi_rx_backend_lut_entry_s csi_rx_backend_lut_entry_t;
30 struct csi_rx_backend_lut_entry_s {
31 u32 long_packet_entry;
32 u32 short_packet_entry;
35 typedef struct csi_rx_backend_cfg_s csi_rx_backend_cfg_t;
36 struct csi_rx_backend_cfg_s {
37 /* LUT entry for the packet */
38 csi_rx_backend_lut_entry_t lut_entry;
40 /* can be derived from the Data Type */
41 csi_mipi_packet_type_t csi_mipi_packet_type;
53 typedef struct csi_rx_frontend_cfg_s csi_rx_frontend_cfg_t;
54 struct csi_rx_frontend_cfg_s {
58 extern const u32 N_SHORT_PACKET_LUT_ENTRIES[N_CSI_RX_BACKEND_ID];
59 extern const u32 N_LONG_PACKET_LUT_ENTRIES[N_CSI_RX_BACKEND_ID];
60 extern const u32 N_CSI_RX_FE_CTRL_DLANES[N_CSI_RX_FRONTEND_ID];
61 /* sid_width for CSI_RX_BACKEND<N>_ID */
62 extern const u32 N_CSI_RX_BE_SID_WIDTH[N_CSI_RX_BACKEND_ID];
64 #endif /* __CSI_RX_GLOBAL_H_INCLUDED__ */