source: trunk/target/linux/brcm63xx/patches-2.6.39/200-extended-platform-devices.patch @ 27232

Last change on this file since 27232 was 27232, checked in by florian, 5 years ago

[brcm63xx] switch to 2.6.39

File size: 749 bytes
  • arch/mips/bcm63xx/boards/board_bcm963xx.c

    a b int __init board_register_devices(void) 
    909909        if (board.has_udc0) 
    910910                bcm63xx_udc_register(); 
    911911 
     912        if (board.num_devs) 
     913                platform_add_devices(board.devs, board.num_devs); 
     914 
    912915        /* read base address of boot chip select (0) */ 
    913916        val = bcm_mpi_readl(MPI_CSBASE_REG(0)); 
    914917        val &= MPI_CSBASE_BASE_MASK; 
  • arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h

    a b struct board_info { 
    6161 
    6262        /* Buttons */ 
    6363        struct gpio_button buttons[2]; 
     64 
     65        /* Additional platform devices */ 
     66        struct platform_device **devs; 
     67        unsigned int    num_devs; 
    6468}; 
    6569 
    6670#endif /* ! BOARD_BCM963XX_H_ */ 
Note: See TracBrowser for help on using the repository browser.