summaryrefslogtreecommitdiff
path: root/drivers/media/sprd_dcam/common/parse_hwinfo_tshark2.h
blob: e9aa093967b12fefb4569d34f099e755b4f7080a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 * Copyright (C) 2012 Spreadtrum Communications Inc.
 *
 * This software is licensed under the terms of the GNU General Public
 * License version 2, as published by the Free Software Foundation, and
 * may be copied, distributed, and modified under those terms.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */
#include <linux/types.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/of_address.h>
#include <linux/of_irq.h>
#include <linux/sprd_mm.h>

#ifdef CONFIG_64BIT
#include <soc/sprd/sci_glb_regs.h>
#endif

#ifndef CONFIG_SC_FPGA
#ifndef CONFIG_OF
extern unsigned long  dcam_regbase;
extern unsigned long  isp_regbase;
extern unsigned long  csi_regbase;
#define DCAM_BASE       SPRD_DEV_P2V(dcam_regbase)
#define ISP_BASE        SPRD_DEV_P2V(isp_regbase)
#define CSI2_BASE       SPRD_DEV_P2V(csi_regbase)
#else
extern unsigned long  dcam_regbase;
extern unsigned long  isp_regbase;
extern unsigned long  csi_regbase;
#define DCAM_BASE       (dcam_regbase)
#define ISP_BASE        (isp_regbase)
#define CSI2_BASE       (csi_regbase)
#endif
#else
extern unsigned long  dcam_regbase;
extern unsigned long  isp_regbase;
extern unsigned long  csi_regbase;
#define DCAM_BASE       (dcam_regbase)
#define ISP_BASE        (isp_regbase)
#define CSI2_BASE       (csi_regbase)
#endif