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

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

[brcm63xx] remove gpiodev, prefer sysfs gpio

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

    a b int __init board_register_devices(void) 
    923923        if (board.has_udc0) 
    924924                bcm63xx_udc_register(); 
    925925 
     926        if (board.num_devs) 
     927                platform_add_devices(board.devs, board.num_devs); 
     928 
    926929        /* read base address of boot chip select (0) */ 
    927930        if (BCMCPU_IS_6345()) 
    928931                val = 0x1fc00000; 
  • 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.