aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBhuvana Kakunoori <bhuvana.kakunoori@linaro.org>2011-12-15 15:13:38 +0800
committerAndy Green <andy.green@linaro.org>2011-12-26 22:33:54 +0800
commita194aaeb6676d5ac348091453e6b4f359930334b (patch)
tree028799ba5ad7547a12aa9c179ac2423de91ea8d4
parentd006aff23ca7c79fcc53cb03f2d83c411e4d7c84 (diff)
ARM: EXYNOS: Add support for USB Gadget Device
Signed-off-by: Bhuvana Kakunoori <bhuvana.kakunoori@linaro.org> Signed-off-by: Pankaj Dubey <pankaj.dubey@samung.com> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
-rw-r--r--arch/arm/mach-exynos/Kconfig1
-rw-r--r--arch/arm/mach-exynos/cpu.c5
-rw-r--r--arch/arm/mach-exynos/include/mach/map.h3
-rw-r--r--arch/arm/mach-exynos/include/mach/regs-pmu.h3
4 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig
index 373b5e6aba8..8fc3d7f6575 100644
--- a/arch/arm/mach-exynos/Kconfig
+++ b/arch/arm/mach-exynos/Kconfig
@@ -295,6 +295,7 @@ config MACH_ORIGEN
select S5P_DEV_TV
select S5P_DEV_USB_EHCI
select S5P_DEV_USB_OHCI
+ select S5P_DEV_USB_HSDEVICE
select SAMSUNG_DEV_BACKLIGHT
select SAMSUNG_DEV_PWM
select EXYNOS4_DEV_DMA
diff --git a/arch/arm/mach-exynos/cpu.c b/arch/arm/mach-exynos/cpu.c
index 8006041fd97..ede40ed5f26 100644
--- a/arch/arm/mach-exynos/cpu.c
+++ b/arch/arm/mach-exynos/cpu.c
@@ -131,6 +131,11 @@ static struct map_desc exynos4_iodesc[] __initdata = {
.pfn = __phys_to_pfn(EXYNOS4_PA_HSPHY),
.length = SZ_4K,
.type = MT_DEVICE,
+ }, {
+ .virtual = (unsigned long)S3C_VA_HSDEVICE,
+ .pfn = __phys_to_pfn(EXYNOS4_PA_HSDEVICE),
+ .length = SZ_64K,
+ .type = MT_DEVICE,
},
};
diff --git a/arch/arm/mach-exynos/include/mach/map.h b/arch/arm/mach-exynos/include/mach/map.h
index b026c6a5a6b..28baeda2654 100644
--- a/arch/arm/mach-exynos/include/mach/map.h
+++ b/arch/arm/mach-exynos/include/mach/map.h
@@ -97,6 +97,8 @@
#define EXYNOS4_PA_FIMD0 0x11C00000
+#define EXYNOS4_PA_HSDEVICE 0x12480000
+
#define EXYNOS4_PA_HSMMC(x) (0x12510000 + ((x) * 0x10000))
#define EXYNOS4_PA_DWMCI 0x12550000
@@ -158,6 +160,7 @@
#define S5P_PA_FIMC3 EXYNOS4_PA_FIMC3
#define S5P_PA_FIMD0 EXYNOS4_PA_FIMD0
#define S5P_PA_HDMI EXYNOS4_PA_HDMI
+#define S5P_PA_HSDEVICE EXYNOS4_PA_HSDEVICE
#define S5P_PA_IIC_HDMIPHY EXYNOS4_PA_IIC_HDMIPHY
#define S5P_PA_MFC EXYNOS4_PA_MFC
#define S5P_PA_MIPI_CSIS0 EXYNOS4_PA_MIPI_CSIS0
diff --git a/arch/arm/mach-exynos/include/mach/regs-pmu.h b/arch/arm/mach-exynos/include/mach/regs-pmu.h
index 4fff8e938fe..00f8145e961 100644
--- a/arch/arm/mach-exynos/include/mach/regs-pmu.h
+++ b/arch/arm/mach-exynos/include/mach/regs-pmu.h
@@ -39,6 +39,7 @@
#define S5P_HDMI_PHY_CONTROL S5P_PMUREG(0x0700)
#define S5P_HDMI_PHY_ENABLE (1 << 0)
+
#define S5P_DAC_PHY_CONTROL S5P_PMUREG(0x070C)
#define S5P_DAC_PHY_ENABLE (1 << 0)
@@ -162,6 +163,8 @@
#define S5P_CHECK_SLEEP 0x00000BAD
/* Only for EXYNOS4210 */
+#define S5P_USBDEVICE_PHY_CONTROL S5P_PMUREG(0x0704)
+
#define S5P_USBHOST_PHY_CONTROL S5P_PMUREG(0x0708)
#define S5P_USBHOST_PHY_ENABLE (1 << 0)