[pkg-fso-commits] [SCM] linux-2.6-openmoko, the Linux 2.6 kernel tree from Openmoko branch, andy-tracking, updated. upstream/20090303.gitb9de904e-140-g23b564c

Andy Green agreen at octopus.localdomain
Mon Jun 8 17:29:16 UTC 2009


The following commit has been merged in the andy-tracking branch:
commit 0f6f58ca20028825df5e57f09670313f23ce5a9a
Author: Balaji Rao <balajirrao at openmoko.org>
Date:   Mon Mar 9 21:01:21 2009 +0000

    Subject: om3d7k: Add support for s3c_ohci device.
    X-Git-Url: http://git.openmoko.org/?p=kernel.git;a=commitdiff_plain;h=d9235e3a8bdcef02865eed27c0d6012d253f11e7
    
    om3d7k: Add support for s3c_ohci device.
    
    Adds s3c_ohci support to om3d7k.
    
    Signed-off-by: Balaji Rao <balajirrao at openmoko.org>

diff --git a/arch/arm/mach-s3c6410/Kconfig b/arch/arm/mach-s3c6410/Kconfig
index 373ce9c..34d9b65 100644
--- a/arch/arm/mach-s3c6410/Kconfig
+++ b/arch/arm/mach-s3c6410/Kconfig
@@ -67,6 +67,7 @@ config MACH_OM_3D7K
 	select S3C_DEV_HSMMC
 	select S3C_DEV_HSMMC1
 	select S3C_DEV_I2C1
+	select S3C_DEV_USBHOST
 	select S3C6410_SETUP_SDHCI
 	select S3C64XX_SETUP_I2C1
 	select S3C_DEV_FB
diff --git a/arch/arm/mach-s3c6410/mach-om-3d7k.c b/arch/arm/mach-s3c6410/mach-om-3d7k.c
index 1f684fe..6ec3892 100644
--- a/arch/arm/mach-s3c6410/mach-om-3d7k.c
+++ b/arch/arm/mach-s3c6410/mach-om-3d7k.c
@@ -68,6 +68,7 @@
 #include <plat/devs.h>
 #include <plat/cpu.h>
 #include <plat/tzic-sp890.h>
+#include <plat/usb-control.h>
 
 /* #include <plat/udc.h> */
 #include <linux/i2c.h>
@@ -1008,6 +1009,7 @@ static void om_3d7k_pmu_regulator_registered(struct pcf50633 *pcf, int id)
 static struct platform_device *om_3d7k_devices_pmu_children[] = {
 	&om_3d7k_button_dev,
 //	&s3c_device_spi_acc1, /* relies on PMU reg for power */
+	&s3c_device_usb,
 };
 
 /* this is called when pc50633 is probed, unfortunately quite late in the
@@ -1140,6 +1142,15 @@ struct s3c_plat_otg_data s3c_hs_otg_plat_data = {
 	.phyclk = 0
 };
 
+/* USB */
+static struct s3c2410_hcd_info om3d7k_usb_info = {
+	.port[0]	= {
+		.flags	= S3C_HCDFLG_USED,
+	},
+	.port[1]	= {
+		.flags	= 0,
+	},
+};
 
 static void __init om_3d7k_map_io(void)
 {
@@ -1152,6 +1163,7 @@ static void __init om_3d7k_machine_init(void)
 {
 	s3c_pm_init();
 
+	s3c_device_usb.dev.platform_data = &om3d7k_usb_info;
 	s3c_device_usbgadget.dev.platform_data = &s3c_hs_otg_plat_data;
 
 	s3c_i2c0_set_platdata(NULL);
diff --git a/arch/arm/plat-s3c64xx/include/plat/irqs.h b/arch/arm/plat-s3c64xx/include/plat/irqs.h
index d5290d8..4af2c78 100644
--- a/arch/arm/plat-s3c64xx/include/plat/irqs.h
+++ b/arch/arm/plat-s3c64xx/include/plat/irqs.h
@@ -148,6 +148,7 @@
 /* compatibility for device defines */
 
 #define IRQ_IIC1		IRQ_S3C6410_IIC1
+#define IRQ_USBH		IRQ_UHOST
 
 /* Since the IRQ_EINT(x) are a linear mapping on current s3c64xx series
  * we just defined them as an IRQ_EINT(x) macro from S3C_IRQ_EINT_BASE

-- 
linux-2.6-openmoko, the Linux 2.6 kernel tree from Openmoko



More information about the pkg-fso-commits mailing list