]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: SAMSUNG: Add DMA masks to hsotg device
authorBen Dooks <ben-linux@fluff.org>
Wed, 27 Jan 2010 09:13:59 +0000 (18:13 +0900)
committerBen Dooks <ben-linux@fluff.org>
Wed, 3 Feb 2010 01:54:54 +0000 (01:54 +0000)
Add the required DMA masks to the hs-otg device definition to allow DMA
to work with it.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/plat-samsung/dev-usb-hsotg.c

index e2f604b51c866c72b28f3d51e3059673c192cf68..33a844ab6917077c6bb6b8728372c00f57d73cbe 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/kernel.h>
 #include <linux/string.h>
 #include <linux/platform_device.h>
+#include <linux/dma-mapping.h>
 
 #include <mach/irqs.h>
 #include <mach/map.h>
@@ -33,9 +34,15 @@ static struct resource s3c_usb_hsotg_resources[] = {
        },
 };
 
+static u64 s3c_hsotg_dmamask = DMA_BIT_MASK(32);
+
 struct platform_device s3c_device_usb_hsotg = {
        .name           = "s3c-hsotg",
        .id             = -1,
        .num_resources  = ARRAY_SIZE(s3c_usb_hsotg_resources),
        .resource       = s3c_usb_hsotg_resources,
+       .dev            = {
+               .dma_mask               = &s3c_hsotg_dmamask,
+               .coherent_dma_mask      = DMA_BIT_MASK(32),
+       },
 };