|
@@ -1349,3 +1349,87 @@ struct platform_device s5p_device_mixer = {
|
|
|
.id = -1,
|
|
|
.num_resources = ARRAY_SIZE(s5p_mixer_resources),
|
|
|
.resource = s5p_mixer_resources,
|
|
|
+ .dev = {
|
|
|
+ .dma_mask = &samsung_device_dma_mask,
|
|
|
+ .coherent_dma_mask = DMA_BIT_MASK(32),
|
|
|
+ }
|
|
|
+};
|
|
|
+#endif /* CONFIG_S5P_DEV_TV */
|
|
|
+
|
|
|
+/* USB */
|
|
|
+
|
|
|
+#ifdef CONFIG_S3C_DEV_USB_HOST
|
|
|
+static struct resource s3c_usb_resource[] = {
|
|
|
+ [0] = DEFINE_RES_MEM(S3C_PA_USBHOST, SZ_256),
|
|
|
+ [1] = DEFINE_RES_IRQ(IRQ_USBH),
|
|
|
+};
|
|
|
+
|
|
|
+struct platform_device s3c_device_ohci = {
|
|
|
+ .name = "s3c2410-ohci",
|
|
|
+ .id = -1,
|
|
|
+ .num_resources = ARRAY_SIZE(s3c_usb_resource),
|
|
|
+ .resource = s3c_usb_resource,
|
|
|
+ .dev = {
|
|
|
+ .dma_mask = &samsung_device_dma_mask,
|
|
|
+ .coherent_dma_mask = DMA_BIT_MASK(32),
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
+/*
|
|
|
+ * s3c_ohci_set_platdata - initialise OHCI device platform data
|
|
|
+ * @info: The platform data.
|
|
|
+ *
|
|
|
+ * This call copies the @info passed in and sets the device .platform_data
|
|
|
+ * field to that copy. The @info is copied so that the original can be marked
|
|
|
+ * __initdata.
|
|
|
+ */
|
|
|
+
|
|
|
+void __init s3c_ohci_set_platdata(struct s3c2410_hcd_info *info)
|
|
|
+{
|
|
|
+ s3c_set_platdata(info, sizeof(struct s3c2410_hcd_info),
|
|
|
+ &s3c_device_ohci);
|
|
|
+}
|
|
|
+#endif /* CONFIG_S3C_DEV_USB_HOST */
|
|
|
+
|
|
|
+/* USB Device (Gadget) */
|
|
|
+
|
|
|
+#ifdef CONFIG_PLAT_S3C24XX
|
|
|
+static struct resource s3c_usbgadget_resource[] = {
|
|
|
+ [0] = DEFINE_RES_MEM(S3C24XX_PA_USBDEV, S3C24XX_SZ_USBDEV),
|
|
|
+ [1] = DEFINE_RES_IRQ(IRQ_USBD),
|
|
|
+};
|
|
|
+
|
|
|
+struct platform_device s3c_device_usbgadget = {
|
|
|
+ .name = "s3c2410-usbgadget",
|
|
|
+ .id = -1,
|
|
|
+ .num_resources = ARRAY_SIZE(s3c_usbgadget_resource),
|
|
|
+ .resource = s3c_usbgadget_resource,
|
|
|
+};
|
|
|
+
|
|
|
+void __init s3c24xx_udc_set_platdata(struct s3c2410_udc_mach_info *pd)
|
|
|
+{
|
|
|
+ s3c_set_platdata(pd, sizeof(*pd), &s3c_device_usbgadget);
|
|
|
+}
|
|
|
+#endif /* CONFIG_PLAT_S3C24XX */
|
|
|
+
|
|
|
+/* USB EHCI Host Controller */
|
|
|
+
|
|
|
+#ifdef CONFIG_S5P_DEV_USB_EHCI
|
|
|
+static struct resource s5p_ehci_resource[] = {
|
|
|
+ [0] = DEFINE_RES_MEM(S5P_PA_EHCI, SZ_256),
|
|
|
+ [1] = DEFINE_RES_IRQ(IRQ_USB_HOST),
|
|
|
+};
|
|
|
+
|
|
|
+struct platform_device s5p_device_ehci = {
|
|
|
+ .name = "s5p-ehci",
|
|
|
+ .id = -1,
|
|
|
+ .num_resources = ARRAY_SIZE(s5p_ehci_resource),
|
|
|
+ .resource = s5p_ehci_resource,
|
|
|
+ .dev = {
|
|
|
+ .dma_mask = &samsung_device_dma_mask,
|
|
|
+ .coherent_dma_mask = DMA_BIT_MASK(32),
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
+void __init s5p_ehci_set_platdata(struct s5p_ehci_platdata *pd)
|
|
|
+{
|