[kernel] brcm63xx: fix cardbus support with BCM6358 (closes: #5918)
[openwrt.git] / target / linux / brcm63xx / files / arch / mips / bcm63xx / prom.c
index db0ef55..fb284fb 100644 (file)
@@ -13,6 +13,7 @@
 #include <bcm63xx_cpu.h>
 #include <bcm63xx_io.h>
 #include <bcm63xx_regs.h>
+#include <bcm63xx_gpio.h>
 
 void __init prom_init(void)
 {
@@ -28,7 +29,7 @@ void __init prom_init(void)
        if (BCMCPU_IS_6338())
                mask = CKCTL_6338_ALL_SAFE_EN;
        else if (BCMCPU_IS_6345())
-               mask = CKCTL_6345_UART_EN;
+               mask = CKCTL_6345_ALL_SAFE_EN;
        else if (BCMCPU_IS_6348())
                mask = CKCTL_6348_ALL_SAFE_EN;
        else
@@ -42,6 +43,9 @@ void __init prom_init(void)
        /* assign command line from kernel config */
        strcpy(arcs_cmdline, CONFIG_CMDLINE);
 
+       /* register gpiochip */
+       bcm63xx_gpio_init();
+
        /* do low level board init */
        board_prom_init();
 }
This page took 0.036989 seconds and 4 git commands to generate.