aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukasz Majewski <l.majewski@samsung.com>2012-05-04 08:16:59 -0400
committerFelipe Balbi <balbi@ti.com>2012-05-04 08:53:09 -0400
commit127d42ae47703fe7b7bc59c0fb687a05e22a92a4 (patch)
treeff6df34d708ccef908c5f1430a7b41091cdc6b89
parent4f06539ffa1948f1d2623f549136c87e33dc1d75 (diff)
usb:hsotg:samsung: Remove platform dependency from s3c-hsotg
This code removes platform dependency from s3c-hsotg driver. Signed-off-by: Lukasz Majewski <l.majewski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Cc: Kukjin Kim <kgene.kim@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r--arch/arm/mach-exynos/mach-nuri.c1
-rw-r--r--arch/arm/mach-exynos/mach-universal_c210.c1
-rw-r--r--arch/arm/mach-s3c64xx/mach-crag6410.c2
-rw-r--r--arch/arm/mach-s3c64xx/mach-smartq.c2
-rw-r--r--arch/arm/mach-s3c64xx/mach-smdk6410.c2
-rw-r--r--arch/arm/mach-s5pv210/mach-goni.c1
-rw-r--r--arch/arm/plat-samsung/devs.c2
-rw-r--r--drivers/usb/gadget/s3c-hsotg.c4
-rw-r--r--drivers/usb/gadget/s3c-hsotg.h (renamed from arch/arm/plat-samsung/include/plat/regs-usb-hsotg.h)22
-rw-r--r--include/linux/platform_data/s3c-hsotg.h (renamed from arch/arm/plat-samsung/include/plat/udc-hs.h)5
10 files changed, 23 insertions, 19 deletions
diff --git a/arch/arm/mach-exynos/mach-nuri.c b/arch/arm/mach-exynos/mach-nuri.c
index b4f1f902ce6d..e284b0e4ca2e 100644
--- a/arch/arm/mach-exynos/mach-nuri.c
+++ b/arch/arm/mach-exynos/mach-nuri.c
@@ -44,6 +44,7 @@
44#include <plat/fb.h> 44#include <plat/fb.h>
45#include <plat/sdhci.h> 45#include <plat/sdhci.h>
46#include <plat/ehci.h> 46#include <plat/ehci.h>
47#include <linux/platform_data/s3c-hsotg.h>
47#include <plat/clock.h> 48#include <plat/clock.h>
48#include <plat/gpio-cfg.h> 49#include <plat/gpio-cfg.h>
49#include <plat/iic.h> 50#include <plat/iic.h>
diff --git a/arch/arm/mach-exynos/mach-universal_c210.c b/arch/arm/mach-exynos/mach-universal_c210.c
index 7ebf79c2ab34..ad15d0fda3c1 100644
--- a/arch/arm/mach-exynos/mach-universal_c210.c
+++ b/arch/arm/mach-exynos/mach-universal_c210.c
@@ -42,6 +42,7 @@
42#include <plat/fimc-core.h> 42#include <plat/fimc-core.h>
43#include <plat/camport.h> 43#include <plat/camport.h>
44#include <plat/mipi_csis.h> 44#include <plat/mipi_csis.h>
45#include <linux/platform_data/s3c-hsotg.h>
45 46
46#include <mach/map.h> 47#include <mach/map.h>
47 48
diff --git a/arch/arm/mach-s3c64xx/mach-crag6410.c b/arch/arm/mach-s3c64xx/mach-crag6410.c
index e20bf5835365..a02f204d99ed 100644
--- a/arch/arm/mach-s3c64xx/mach-crag6410.c
+++ b/arch/arm/mach-s3c64xx/mach-crag6410.c
@@ -61,7 +61,7 @@
61#include <plat/sdhci.h> 61#include <plat/sdhci.h>
62#include <plat/gpio-cfg.h> 62#include <plat/gpio-cfg.h>
63#include <plat/s3c64xx-spi.h> 63#include <plat/s3c64xx-spi.h>
64#include <plat/udc-hs.h> 64#include <linux/platform_data/s3c-hsotg.h>
65 65
66#include <plat/keypad.h> 66#include <plat/keypad.h>
67#include <plat/clock.h> 67#include <plat/clock.h>
diff --git a/arch/arm/mach-s3c64xx/mach-smartq.c b/arch/arm/mach-s3c64xx/mach-smartq.c
index ce745e19aa27..ee0d13c98378 100644
--- a/arch/arm/mach-s3c64xx/mach-smartq.c
+++ b/arch/arm/mach-s3c64xx/mach-smartq.c
@@ -33,7 +33,7 @@
33#include <plat/gpio-cfg.h> 33#include <plat/gpio-cfg.h>
34#include <plat/hwmon.h> 34#include <plat/hwmon.h>
35#include <plat/regs-serial.h> 35#include <plat/regs-serial.h>
36#include <plat/udc-hs.h> 36#include <linux/platform_data/s3c-hsotg.h>
37#include <plat/usb-control.h> 37#include <plat/usb-control.h>
38#include <plat/sdhci.h> 38#include <plat/sdhci.h>
39#include <plat/ts.h> 39#include <plat/ts.h>
diff --git a/arch/arm/mach-s3c64xx/mach-smdk6410.c b/arch/arm/mach-s3c64xx/mach-smdk6410.c
index d55bc96d9582..bf477e33f0ee 100644
--- a/arch/arm/mach-s3c64xx/mach-smdk6410.c
+++ b/arch/arm/mach-s3c64xx/mach-smdk6410.c
@@ -72,7 +72,7 @@
72#include <plat/keypad.h> 72#include <plat/keypad.h>
73#include <plat/backlight.h> 73#include <plat/backlight.h>
74#include <plat/regs-fb-v4.h> 74#include <plat/regs-fb-v4.h>
75#include <plat/udc-hs.h> 75#include <linux/platform_data/s3c-hsotg.h>
76 76
77#include "common.h" 77#include "common.h"
78 78
diff --git a/arch/arm/mach-s5pv210/mach-goni.c b/arch/arm/mach-s5pv210/mach-goni.c
index a8933de3d627..921da285ff20 100644
--- a/arch/arm/mach-s5pv210/mach-goni.c
+++ b/arch/arm/mach-s5pv210/mach-goni.c
@@ -49,6 +49,7 @@
49#include <plat/mfc.h> 49#include <plat/mfc.h>
50#include <plat/regs-fb-v4.h> 50#include <plat/regs-fb-v4.h>
51#include <plat/camport.h> 51#include <plat/camport.h>
52#include <linux/platform_data/s3c-hsotg.h>
52 53
53#include <media/v4l2-mediabus.h> 54#include <media/v4l2-mediabus.h>
54#include <media/s5p_fimc.h> 55#include <media/s5p_fimc.h>
diff --git a/arch/arm/plat-samsung/devs.c b/arch/arm/plat-samsung/devs.c
index 8b928f9bc1c3..a41c808847c0 100644
--- a/arch/arm/plat-samsung/devs.c
+++ b/arch/arm/plat-samsung/devs.c
@@ -57,7 +57,7 @@
57#include <plat/sdhci.h> 57#include <plat/sdhci.h>
58#include <plat/ts.h> 58#include <plat/ts.h>
59#include <plat/udc.h> 59#include <plat/udc.h>
60#include <plat/udc-hs.h> 60#include <linux/platform_data/s3c-hsotg.h>
61#include <plat/usb-control.h> 61#include <plat/usb-control.h>
62#include <plat/usb-phy.h> 62#include <plat/usb-phy.h>
63#include <plat/regs-iic.h> 63#include <plat/regs-iic.h>
diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c
index 105b206cd844..70c6f3b45cf2 100644
--- a/drivers/usb/gadget/s3c-hsotg.c
+++ b/drivers/usb/gadget/s3c-hsotg.c
@@ -34,9 +34,9 @@
34#include <mach/map.h> 34#include <mach/map.h>
35 35
36#include <plat/regs-usb-hsotg-phy.h> 36#include <plat/regs-usb-hsotg-phy.h>
37#include <plat/regs-usb-hsotg.h> 37#include "s3c-hsotg.h"
38#include <linux/platform_data/s3c-hsotg.h>
38#include <mach/regs-sys.h> 39#include <mach/regs-sys.h>
39#include <plat/udc-hs.h>
40#include <plat/cpu.h> 40#include <plat/cpu.h>
41 41
42#define DMA_ADDR_INVALID (~((dma_addr_t)0)) 42#define DMA_ADDR_INVALID (~((dma_addr_t)0))
diff --git a/arch/arm/plat-samsung/include/plat/regs-usb-hsotg.h b/drivers/usb/gadget/s3c-hsotg.h
index dc90f5ede88f..4c4ccc44b577 100644
--- a/arch/arm/plat-samsung/include/plat/regs-usb-hsotg.h
+++ b/drivers/usb/gadget/s3c-hsotg.h
@@ -156,7 +156,7 @@
156 156
157#define S3C_HPTXFSIZ S3C_HSOTG_REG(0x100) 157#define S3C_HPTXFSIZ S3C_HSOTG_REG(0x100)
158 158
159#define S3C_DPTXFSIZn(_a) S3C_HSOTG_REG(0x104 + (((_a) - 1) * 4)) 159#define S3C_DPTXFSIZn(_a) S3C_HSOTG_REG(0x104 + (((_a) - 1) * 4))
160 160
161#define S3C_DPTXFSIZn_DPTxFSize_MASK (0xffff << 16) 161#define S3C_DPTXFSIZn_DPTxFSize_MASK (0xffff << 16)
162#define S3C_DPTXFSIZn_DPTxFSize_SHIFT (16) 162#define S3C_DPTXFSIZn_DPTxFSize_SHIFT (16)
@@ -261,8 +261,8 @@
261 261
262#define S3C_DIEPCTL0 S3C_HSOTG_REG(0x900) 262#define S3C_DIEPCTL0 S3C_HSOTG_REG(0x900)
263#define S3C_DOEPCTL0 S3C_HSOTG_REG(0xB00) 263#define S3C_DOEPCTL0 S3C_HSOTG_REG(0xB00)
264#define S3C_DIEPCTL(_a) S3C_HSOTG_REG(0x900 + ((_a) * 0x20)) 264#define S3C_DIEPCTL(_a) S3C_HSOTG_REG(0x900 + ((_a) * 0x20))
265#define S3C_DOEPCTL(_a) S3C_HSOTG_REG(0xB00 + ((_a) * 0x20)) 265#define S3C_DOEPCTL(_a) S3C_HSOTG_REG(0xB00 + ((_a) * 0x20))
266 266
267/* EP0 specialness: 267/* EP0 specialness:
268 * bits[29..28] - reserved (no SetD0PID, SetD1PID) 268 * bits[29..28] - reserved (no SetD0PID, SetD1PID)
@@ -312,8 +312,8 @@
312#define S3C_DxEPCTL_MPS_LIMIT (0x7ff) 312#define S3C_DxEPCTL_MPS_LIMIT (0x7ff)
313#define S3C_DxEPCTL_MPS(_x) ((_x) << 0) 313#define S3C_DxEPCTL_MPS(_x) ((_x) << 0)
314 314
315#define S3C_DIEPINT(_a) S3C_HSOTG_REG(0x908 + ((_a) * 0x20)) 315#define S3C_DIEPINT(_a) S3C_HSOTG_REG(0x908 + ((_a) * 0x20))
316#define S3C_DOEPINT(_a) S3C_HSOTG_REG(0xB08 + ((_a) * 0x20)) 316#define S3C_DOEPINT(_a) S3C_HSOTG_REG(0xB08 + ((_a) * 0x20))
317 317
318#define S3C_DxEPINT_INEPNakEff (1 << 6) 318#define S3C_DxEPINT_INEPNakEff (1 << 6)
319#define S3C_DxEPINT_Back2BackSetup (1 << 6) 319#define S3C_DxEPINT_Back2BackSetup (1 << 6)
@@ -349,8 +349,8 @@
349#define S3C_DOEPTSIZ0_XferSize_MASK (0x7f << 0) 349#define S3C_DOEPTSIZ0_XferSize_MASK (0x7f << 0)
350#define S3C_DOEPTSIZ0_XferSize_SHIFT (0) 350#define S3C_DOEPTSIZ0_XferSize_SHIFT (0)
351 351
352#define S3C_DIEPTSIZ(_a) S3C_HSOTG_REG(0x910 + ((_a) * 0x20)) 352#define S3C_DIEPTSIZ(_a) S3C_HSOTG_REG(0x910 + ((_a) * 0x20))
353#define S3C_DOEPTSIZ(_a) S3C_HSOTG_REG(0xB10 + ((_a) * 0x20)) 353#define S3C_DOEPTSIZ(_a) S3C_HSOTG_REG(0xB10 + ((_a) * 0x20))
354 354
355#define S3C_DxEPTSIZ_MC_MASK (0x3 << 29) 355#define S3C_DxEPTSIZ_MC_MASK (0x3 << 29)
356#define S3C_DxEPTSIZ_MC_SHIFT (29) 356#define S3C_DxEPTSIZ_MC_SHIFT (29)
@@ -370,10 +370,10 @@
370#define S3C_DxEPTSIZ_XferSize(_x) ((_x) << 0) 370#define S3C_DxEPTSIZ_XferSize(_x) ((_x) << 0)
371 371
372 372
373#define S3C_DIEPDMA(_a) S3C_HSOTG_REG(0x914 + ((_a) * 0x20)) 373#define S3C_DIEPDMA(_a) S3C_HSOTG_REG(0x914 + ((_a) * 0x20))
374#define S3C_DOEPDMA(_a) S3C_HSOTG_REG(0xB14 + ((_a) * 0x20)) 374#define S3C_DOEPDMA(_a) S3C_HSOTG_REG(0xB14 + ((_a) * 0x20))
375#define S3C_DTXFSTS(_a) S3C_HSOTG_REG(0x918 + ((_a) * 0x20)) 375#define S3C_DTXFSTS(_a) S3C_HSOTG_REG(0x918 + ((_a) * 0x20))
376 376
377#define S3C_EPFIFO(_a) S3C_HSOTG_REG(0x1000 + ((_a) * 0x1000)) 377#define S3C_EPFIFO(_a) S3C_HSOTG_REG(0x1000 + ((_a) * 0x1000))
378 378
379#endif /* __PLAT_S3C64XX_REGS_USB_HSOTG_H */ 379#endif /* __PLAT_S3C64XX_REGS_USB_HSOTG_H */
diff --git a/arch/arm/plat-samsung/include/plat/udc-hs.h b/include/linux/platform_data/s3c-hsotg.h
index c9e3667cb2b1..97ec12c2ded4 100644
--- a/arch/arm/plat-samsung/include/plat/udc-hs.h
+++ b/include/linux/platform_data/s3c-hsotg.h
@@ -1,4 +1,4 @@
1/* arch/arm/plat-s3c/include/plat/udc-hs.h 1/* include/linux/platform_data/s3c-hsotg.h
2 * 2 *
3 * Copyright 2008 Openmoko, Inc. 3 * Copyright 2008 Openmoko, Inc.
4 * Copyright 2008 Simtec Electronics 4 * Copyright 2008 Simtec Electronics
@@ -25,7 +25,8 @@ enum s3c_hsotg_dmamode {
25 */ 25 */
26struct s3c_hsotg_plat { 26struct s3c_hsotg_plat {
27 enum s3c_hsotg_dmamode dma; 27 enum s3c_hsotg_dmamode dma;
28 unsigned int is_osc : 1; 28 unsigned int is_osc:1;
29 int phy_type;
29 30
30 int (*phy_init)(struct platform_device *pdev, int type); 31 int (*phy_init)(struct platform_device *pdev, int type);
31 int (*phy_exit)(struct platform_device *pdev, int type); 32 int (*phy_exit)(struct platform_device *pdev, int type);