GNU Linux-libre 4.14.254-gnu1
[releases.git] / drivers / staging / media / atomisp / pci / atomisp2 / css2400 / css_2401_csi2p_system / host / csi_rx.c
1 /*
2  * Support for Intel Camera Imaging ISP subsystem.
3  * Copyright (c) 2015, Intel Corporation.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms and conditions of the GNU General Public License,
7  * version 2, as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
12  * more details.
13  */
14
15
16 #include "system_global.h"
17
18 const uint32_t N_SHORT_PACKET_LUT_ENTRIES[N_CSI_RX_BACKEND_ID] = {
19         4,      /* 4 entries at CSI_RX_BACKEND0_ID*/
20         4,      /* 4 entries at CSI_RX_BACKEND1_ID*/
21         4       /* 4 entries at CSI_RX_BACKEND2_ID*/
22 };
23
24 const uint32_t N_LONG_PACKET_LUT_ENTRIES[N_CSI_RX_BACKEND_ID] = {
25         8,      /* 8 entries at CSI_RX_BACKEND0_ID*/
26         4,      /* 4 entries at CSI_RX_BACKEND1_ID*/
27         4       /* 4 entries at CSI_RX_BACKEND2_ID*/
28 };
29
30 const uint32_t N_CSI_RX_FE_CTRL_DLANES[N_CSI_RX_FRONTEND_ID] = {
31         N_CSI_RX_DLANE_ID,      /* 4 dlanes for CSI_RX_FR0NTEND0_ID */
32         N_CSI_RX_DLANE_ID,      /* 4 dlanes for CSI_RX_FR0NTEND1_ID */
33         N_CSI_RX_DLANE_ID       /* 4 dlanes for CSI_RX_FR0NTEND2_ID */
34 };
35
36 /* sid_width for CSI_RX_BACKEND<N>_ID */
37 const uint32_t N_CSI_RX_BE_SID_WIDTH[N_CSI_RX_BACKEND_ID] = {
38         3,
39         2,
40         2
41 };