ARM: S5P: Add support for common MIPI CSIS/DSIM D-PHY control
[firefly-linux-kernel-4.4.55.git] / arch / arm / mach-exynos4 / include / mach / regs-pmu.h
1 /* linux/arch/arm/mach-exynos4/include/mach/regs-pmu.h
2  *
3  * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
4  *              http://www.samsung.com
5  *
6  * EXYNOS4 - Power management unit definition
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as
10  * published by the Free Software Foundation.
11 */
12
13 #ifndef __ASM_ARCH_REGS_PMU_H
14 #define __ASM_ARCH_REGS_PMU_H __FILE__
15
16 #include <mach/map.h>
17
18 #define S5P_PMUREG(x)                   (S5P_VA_PMU + (x))
19
20 #define S5P_MIPI_DPHY_CONTROL(n)        S5P_PMUREG(0x0710 + (n) * 4)
21 #define S5P_MIPI_DPHY_ENABLE            (1 << 0)
22 #define S5P_MIPI_DPHY_SRESETN           (1 << 1)
23 #define S5P_MIPI_DPHY_MRESETN           (1 << 2)
24
25 #define S5P_PMU_CAM_CONF                S5P_PMUREG(0x3C00)
26 #define S5P_PMU_TV_CONF                 S5P_PMUREG(0x3C20)
27 #define S5P_PMU_MFC_CONF                S5P_PMUREG(0x3C40)
28 #define S5P_PMU_G3D_CONF                S5P_PMUREG(0x3C60)
29 #define S5P_PMU_LCD0_CONF               S5P_PMUREG(0x3C80)
30 #define S5P_PMU_LCD1_CONF               S5P_PMUREG(0x3CA0)
31 #define S5P_PMU_GPS_CONF                S5P_PMUREG(0x3CE0)
32
33 #define S5P_INT_LOCAL_PWR_EN            0x7
34
35 #endif /* __ASM_ARCH_REGS_PMU_H */