Advertisement
Guest User

Untitled

a guest
Feb 5th, 2013
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.51 KB | None | 0 0
  1. #include <linux/pwm/pwm.h>
  2. .
  3. .
  4. .
  5. .
  6.  
  7.  
  8. struct gpio_pwm_platform_data blue5g_pwm_gpio = {
  9.     .gpio = 3,
  10. };
  11. static struct platform_device blue5g_pwm_gpio_device = {
  12.     .name           = "gpio_pwm",
  13.     .id         = 0,
  14.     .dev.platform_data  = &blue5g_pwm_gpio,
  15. };
  16.  
  17. static struct platform_device * __initdata blue5g9_devices[] = {
  18.     &blue5g_pwm_gpio_device,
  19. };
  20.  
  21. static struct board_info __initdata board_blue5g9 = {
  22.     .name               = "blue5g9",
  23.     .expected_cpu_id        = 0x6348,
  24.  
  25.     .has_uart0          = 1,
  26.     .has_enet0          = 1,
  27.     .has_enet1          = 1,
  28.     .has_pci            = 1,
  29.  
  30.     .enet0 = {
  31.         .has_phy        = 1,
  32.         .use_internal_phy   = 1,
  33.     },
  34.  
  35.     .enet1 = {
  36.           .has_phy      = 1,
  37.           .phy_id       = 31,
  38.     },
  39.  
  40.     .has_ohci0          = 1,
  41.     .has_pccard         = 1,
  42.  
  43.     .leds = {
  44.         {
  45.             .name       = "blue5g9:red:adsl-fail",
  46.             .gpio       = 0,
  47.             .active_low = 0,
  48.             .default_trigger = "default-on",
  49.         },
  50.         {
  51.             .name       = "blue5g9:red:adsl",
  52.             .gpio       = 1,
  53.         },
  54.         {
  55.             .name       = "blue5g9:red:traffic",
  56.             .gpio       = 2,
  57.         },
  58.         /*{
  59.             .name       = "blue5g9:red:phone",
  60.             .gpio       = 3,
  61.         },*/
  62.         {
  63.             .name       = "blue5g9:red:wifi",
  64.             .gpio       = 4,
  65.         },
  66.     },
  67.  
  68.     .buttons = {
  69.         {
  70.             .desc       = "BTN_1",
  71.             .gpio       = 36,
  72.             .active_low = 1,
  73.             .type       = EV_KEY,
  74.             .code       = BTN_1,
  75.             .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
  76.         },
  77.         {
  78.             .desc       = "BTN_2",
  79.             .gpio       = 7,
  80.             .active_low = 1,
  81.             .type       = EV_KEY,
  82.             .code       = BTN_2,
  83.             .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
  84.         },
  85.     },
  86.     .devs = blue5g9_devices,
  87.     .num_devs = ARRAY_SIZE(blue5g9_devices),
  88. };
  89. .
  90. .
  91. .
  92. .
  93. .
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement