source: trunk/target/linux/lantiq/patches-3.0/550-register_ebu.patch @ 28308

Last change on this file since 28308 was 28308, checked in by blogic, 5 years ago

[lantiq]

  • rebase 3.0 patches
  • fold some fixes into existing patches
File size: 1.2 KB
  • arch/mips/lantiq/xway/devices.c

    a b ltq_register_gpio_buttons(struct gpio_bu 
    151151        platform_device_register(&ltq_gpio_buttons_platform_device); 
    152152} 
    153153 
     154/* ebu */ 
     155static struct resource ltq_ebu_resource = 
     156{ 
     157        .name   = "gpio_ebu", 
     158        .start  = LTQ_EBU_GPIO_START, 
     159        .end    = LTQ_EBU_GPIO_START + LTQ_EBU_GPIO_SIZE - 1, 
     160        .flags  = IORESOURCE_MEM, 
     161}; 
     162 
     163static struct platform_device ltq_ebu = 
     164{ 
     165        .name           = "ltq_ebu", 
     166        .resource       = &ltq_ebu_resource, 
     167        .num_resources  = 1, 
     168}; 
     169 
     170void __init 
     171ltq_register_gpio_ebu(unsigned int value) 
     172{ 
     173        ltq_ebu.dev.platform_data = (void*) value; 
     174        platform_device_register(&ltq_ebu); 
     175} 
     176 
    154177static struct resource ltq_spi_resources[] = { 
    155178        { 
    156179                .start  = LTQ_SSC_BASE_ADDR, 
  • arch/mips/lantiq/xway/devices.h

    a b  
    1616 
    1717extern void ltq_register_gpio(void); 
    1818extern void ltq_register_gpio_stp(void); 
     19extern void ltq_register_gpio_ebu(unsigned int value); 
    1920extern void ltq_register_ase_asc(void); 
    2021extern void ltq_register_etop(struct ltq_eth_data *eth); 
    2122extern void ltq_register_spi(struct ltq_spi_platform_data *pdata, 
Note: See TracBrowser for help on using the repository browser.