603ef1d2c5ef352aef6f7304cb0e14fdd1e10108
[linux.git] /
1 /*
2  * Support for Intel Camera Imaging ISP subsystem.
3  * Copyright (c) 2010-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 #ifndef _hive_isp_css_hrt_h
16 #define _hive_isp_css_hrt_h
17
18 #include "system_types.h"
19
20 #include "hive_isp_css_host_ids_hrt.h"
21 #include "hive_isp_css_defs.h"
22
23 #ifdef HRT_ISP_CSS_CUSTOM_HOST
24 #ifndef HRT_USE_VIR_ADDRS
25 #define HRT_USE_VIR_ADDRS
26 #endif
27 /*#include "hive_isp_css_custom_host_hrt.h"*/
28 #endif
29
30 #include <gpio_block.h>
31 #include <gp_regs.h>
32 #include <gp_timer_hrt.h>
33 #ifdef _HIVE_ISP_CSS_FPGA_SYSTEM
34   #include <i2c_api.h>
35   #include <dis_sensor.h>
36   #include <display_driver.h>
37   #include <display.h>
38   #include <display_driver.h>
39   #include <shi_sensor_api.h>
40 #define hrt_gdc_slave_port(gdc_id)    HRTCAT(gdc_id,_sl_in)
41   #include <isp2400_mamoiada_demo_params.h>
42   #include <isp2400_support.h>
43   #include "isp_css_dev_flash_hrt.h"
44   #include "isp_css_dev_display_hrt.h"
45   #include "isp_css_dev_i2c_hrt.h"
46   #include "isp_css_dev_tb.h"
47 #else /* CSS ASIC system */
48   #include <css_receiver_2400_hrt.h>
49 //  #include <isp2400_mamoiada_params.h>
50 //  #include <isp2400_support.h>
51   /* insert idle signal clearing and setting around hrt_main */
52   #if !defined(HRT_HW) || defined(HRT_ISP_CSS_INSERT_IDLE_SIGNAL)
53     #define hrt_main _hrt_isp_css_main
54   #endif
55   #ifdef _HIVE_ISP_CSS_SPECMAN_SYSTEM
56     #include "hive_isp_css_2400_specman_system.h"
57   #else
58 #if defined(IS_ISP_2400_MAMOIADA_SYSTEM)
59     #include "hive_isp_css_2400_system.h"
60 #elif defined(IS_ISP_2401_MAMOIADA_SYSTEM)
61     #include "hive_isp_css_2401_system.h"
62 #else
63 #error "hive_isp_css_hrt_modified.h: SYSTEM must be one of {2400_MAMOIADA_SYSTEM, 2401_MAMOIADA_SYSTEM}"
64 #endif
65   #endif
66 #endif /* _HIVE_ISP_CSS_FPGA_SYSTEM */
67 #include <sp_hrt.h>
68 #include <input_system_hrt.h>
69 #include <input_selector_hrt.h>
70 #include <sig_monitor_hrt.h>
71
72 #include "hive_isp_css_sdram_wakeup_hrt.h"
73 #include "hive_isp_css_idle_signal_hrt.h"
74 #include "hive_isp_css_sp_hrt.h"
75 #include "hive_isp_css_isp_hrt.h"
76 #include "hive_isp_css_streaming_to_mipi_hrt.h"
77 #include "hive_isp_css_testbench_hrt.h"
78 #include "hive_isp_css_streaming_monitors_hrt.h"
79 #include "hive_isp_css_gp_regs_hrt.h"
80 #if defined(IS_ISP_2400_MAMOIADA_SYSTEM)
81 #include "hive_isp_css_irq_hrt.h"
82 #elif defined(IS_ISP_2401_MAMOIADA_SYSTEM)
83 #include "hive_isp_css_2401_irq_hrt.h"
84 #else
85 #error "hive_isp_css_hrt_modified.h: SYSTEM must be one of {2400_MAMOIADA_SYSTEM, 2401_MAMOIADA_SYSTEM}"
86 #endif
87
88 #include "hive_isp_css_stream_switch_hrt.h"
89
90 #include "hive_isp_css_ddr_hrt_modified.h"
91 #include "hive_isp_css_dma_set_hrt.h"
92
93 #define HIVE_ISP_CSS_NO_STREAM_SWITCH 1
94
95 #endif /* _hive_isp_css_hrt_h */