|
@@ -19,7 +19,7 @@
|
|
|
#include <mach/map.h>
|
|
|
|
|
|
#include <plat/devs.h>
|
|
|
-
|
|
|
+#include <plat/usb-control.h>
|
|
|
|
|
|
static struct resource s3c_usb_resource[] = {
|
|
|
[0] = {
|
|
@@ -48,3 +48,22 @@ struct platform_device s3c_device_ohci = {
|
|
|
};
|
|
|
|
|
|
EXPORT_SYMBOL(s3c_device_ohci);
|
|
|
+
|
|
|
+/**
|
|
|
+ * 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)
|
|
|
+{
|
|
|
+ struct s3c2410_hcd_info *npd;
|
|
|
+
|
|
|
+ npd = kmemdup(info, sizeof(struct s3c2410_hcd_info), GFP_KERNEL);
|
|
|
+ if (!npd)
|
|
|
+ printk(KERN_ERR "%s: no memory for platform data\n", __func__);
|
|
|
+
|
|
|
+ s3c_device_ohci.dev.platform_data = npd;
|
|
|
+}
|