aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/include/mach/csi.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-tegra/include/mach/csi.h')
-rw-r--r--arch/arm/mach-tegra/include/mach/csi.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/csi.h b/arch/arm/mach-tegra/include/mach/csi.h
new file mode 100644
index 00000000000..575de6fb497
--- /dev/null
+++ b/arch/arm/mach-tegra/include/mach/csi.h
@@ -0,0 +1,40 @@
1/*
2 * arch/arm/mach-tegra/include/mach/csi.h
3 *
4 * Copyright (C) 2010-2011 NVIDIA Corporation.
5 *
6 * This software is licensed under the terms of the GNU General Public
7 * License version 2, as published by the Free Software Foundation, and
8 * may be copied, distributed, and modified under those terms.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 */
16
17#ifndef __MACH_TEGRA_CSI_H
18#define __MACH_TEGRA_CSI_H
19
20#define CSI_CILA_MIPI_CAL_CONFIG_0 0x22a
21#define MIPI_CAL_TERMOSA(x) (((x) & 0x1f) << 0)
22
23#define CSI_CILB_MIPI_CAL_CONFIG_0 0x22b
24#define MIPI_CAL_TERMOSB(x) (((x) & 0x1f) << 0)
25
26#define CSI_CIL_PAD_CONFIG 0x229
27#define PAD_CIL_PDVREG(x) (((x) & 0x01) << 1)
28
29#define CSI_DSI_MIPI_CAL_CONFIG 0x234
30#define MIPI_CAL_HSPDOSD(x) (((x) & 0x1f) << 16)
31#define MIPI_CAL_HSPUOSD(x) (((x) & 0x1f) << 8)
32
33#define CSI_MIPIBIAS_PAD_CONFIG 0x235
34#define PAD_DRIV_DN_REF(x) (((x) & 0x7) << 16)
35#define PAD_DRIV_UP_REF(x) (((x) & 0x7) << 8)
36
37int tegra_vi_csi_readl(u32 offset, u32 *val);
38int tegra_vi_csi_writel(u32 value, u32 offset);
39
40#endif