register udc and spi devices at the correct init level
authorFlorian Fainelli <florian@openwrt.org>
Sun, 12 Sep 2010 21:23:35 +0000 (21:23 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sun, 12 Sep 2010 21:23:35 +0000 (21:23 +0000)
SVN-Revision: 23035

target/linux/brcm63xx/patches-2.6.35/180-udc_preliminary_support.patch
target/linux/brcm63xx/patches-2.6.35/240-spi.patch

index 57016d510cc373fdc9f69cc82c5d7a8c300fdb8b..195185d799c5e893ff98dd78337f7f7e3837a2ec 100644 (file)
  };
  
  static struct board_info __initdata board_rta1025w_16 = {
-@@ -913,6 +916,9 @@ void __init board_prom_init(void)
-       bcm_gpio_writel(val, GPIO_MODE_REG);
+@@ -1011,6 +1014,9 @@ int __init board_register_devices(void)
+       if (board.has_dsp)
+               bcm63xx_dsp_register(&board.dsp);
  
 +      if (board.has_udc0)
 +              bcm63xx_udc_register();
 +
-       /* Generate MAC address for WLAN and
-        * register our SPROM */
- #ifdef CONFIG_SSB_PCIHOST
+       /* read base address of boot chip select (0) */
+       if (BCMCPU_IS_6345())
+               val = 0x1fc00000;
 --- /dev/null
 +++ b/arch/mips/bcm63xx/dev-usb-udc.c
 @@ -0,0 +1,58 @@
   * SPI clock
   */
  static void spi_set(struct clk *clk, int enable)
-@@ -208,6 +232,8 @@ struct clk *clk_get(struct device *dev, 
+@@ -208,6 +232,8 @@ struct clk *clk_get(struct device *dev,
                return &clk_ephy;
        if (!strcmp(id, "usbh"))
                return &clk_usbh;
index 79e7ac630585151e9c4b7d6237fa0e6f13c4f788..800b228116cb82189aad2b41c4f9f3988ae9a4db 100644 (file)
  #include <board_bcm963xx.h>
  
  #define PFX   "board_bcm963xx: "
-@@ -1459,6 +1460,9 @@ void __init board_prom_init(void)
+@@ -1557,6 +1558,9 @@ int __init board_register_devices(void)
        if (board.has_udc0)
                bcm63xx_udc_register();
  
 +      if (!BCMCPU_IS_6345())
 +              bcm63xx_spi_register();
 +
-       /* Generate MAC address for WLAN and
-        * register our SPROM */
- #ifdef CONFIG_SSB_PCIHOST
+       /* read base address of boot chip select (0) */
+       if (BCMCPU_IS_6345())
+               val = 0x1fc00000;