Ticket #11200: 900-board_hw553-usbfix-cc.patch

File 900-board_hw553-usbfix-cc.patch, 822 bytes (added by marcin1j, 3 years ago)

900-board_hw553-usbfix.patch adapted for trunk

  • arch/mips/bcm63xx/boards/board_bcm963xx.c

    a b  
    1616#include <linux/platform_device.h> 
    1717#include <linux/platform_data/b53.h> 
    1818#include <linux/rtl8367.h> 
     19#include <linux/delay.h> 
    1920#include <linux/spi/spi.h> 
    2021#include <asm/addrspace.h> 
    2122#include <bcm63xx_board.h> 
    void __init board_bcm963xx_init(void) 
    25292530        u32 val; 
    25302531        struct bcm_hcs *hcs; 
    25312532        const struct of_device_id *board_match; 
     2533        unsigned int * reg = (unsigned int *) 0xfffe150c; 
     2534 
     2535        /* power cycle the USB PLL */ 
     2536        if (BCMCPU_IS_6358()) { 
     2537                printk(KERN_INFO PFX "Resetting USB PLL..."); 
     2538                *reg &= ~0x02000000; 
     2539                mdelay(1); 
     2540                *reg |= 0x02000000; 
     2541                printk(" done.\n"); 
     2542        } 
    25322543 
    25332544        /* read base address of boot chip select (0) 
    25342545         * 6328/6362 do not have MPI but boot from a fixed address