Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <linux/pwm/pwm.h>
- .
- .
- .
- .
- struct gpio_pwm_platform_data blue5g_pwm_gpio = {
- .gpio = 3,
- };
- static struct platform_device blue5g_pwm_gpio_device = {
- .name = "gpio_pwm",
- .id = 0,
- .dev.platform_data = &blue5g_pwm_gpio,
- };
- static struct platform_device * __initdata blue5g9_devices[] = {
- &blue5g_pwm_gpio_device,
- };
- static struct board_info __initdata board_blue5g9 = {
- .name = "blue5g9",
- .expected_cpu_id = 0x6348,
- .has_uart0 = 1,
- .has_enet0 = 1,
- .has_enet1 = 1,
- .has_pci = 1,
- .enet0 = {
- .has_phy = 1,
- .use_internal_phy = 1,
- },
- .enet1 = {
- .has_phy = 1,
- .phy_id = 31,
- },
- .has_ohci0 = 1,
- .has_pccard = 1,
- .leds = {
- {
- .name = "blue5g9:red:adsl-fail",
- .gpio = 0,
- .active_low = 0,
- .default_trigger = "default-on",
- },
- {
- .name = "blue5g9:red:adsl",
- .gpio = 1,
- },
- {
- .name = "blue5g9:red:traffic",
- .gpio = 2,
- },
- /*{
- .name = "blue5g9:red:phone",
- .gpio = 3,
- },*/
- {
- .name = "blue5g9:red:wifi",
- .gpio = 4,
- },
- },
- .buttons = {
- {
- .desc = "BTN_1",
- .gpio = 36,
- .active_low = 1,
- .type = EV_KEY,
- .code = BTN_1,
- .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
- },
- {
- .desc = "BTN_2",
- .gpio = 7,
- .active_low = 1,
- .type = EV_KEY,
- .code = BTN_2,
- .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
- },
- },
- .devs = blue5g9_devices,
- .num_devs = ARRAY_SIZE(blue5g9_devices),
- };
- .
- .
- .
- .
- .
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement