Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - //fΓΌr gpio_keys
 - static struct gpio_keys_button gpio_buttons[] = {
 - {
 - .code = BTN_EXTRA,
 - .gpio = GPIO_GPIO11,
 - .desc = "usergpio",
 - .wakeup = 1,
 - },
 - };
 - static struct gpio_keys_platform_data gpio_key_info = {
 - .buttons = gpio_buttons,
 - .nbuttons = ARRAY_SIZE(gpio_buttons),
 - };
 - static struct platform_device keys_gpio = {
 - .name = "gpio-keys",
 - .id = -1,
 - .dev = {
 - .platform_data = &gpio_key_info,
 - },
 - };
 - .
 - .
 - .
 - static struct platform_device *devices[] __initdata = {
 - &lpc313x_mci_device,
 - &keys_gpio, //Daten an Treiber ΓΌbergeben
 - #if defined (CONFIG_MTD_NAND_LPC313X)
 - &lpc313x_nand_device,
 - #endif
 - #if defined(CONFIG_SPI_LPC313X)
 - &lpc313x_spi_device,
 - #endif
 - };
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment