Page | 53
.owner = THIS_MODULE,
#ifdef CONFIG_PM
.pm = &gpio_keys_pm_ops,
#endif
}
};
static int __init gpio_keys_init(void)
{
return
platform_driver_register(&gpio_keys_device_driver);
}
static void __exit gpio_keys_exit(void)
{
platform_driver_unregister(&gpio_keys_device_driver);
}
module_init(gpio_keys_init);
module_exit(gpio_keys_exit);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Phil Blundell <[email protected]>");
MODULE_DESCRIPTION("Keyboard driver for CPU GPIOs");
MODULE_ALIAS("platform:gpio-keys");
Call input_register_device to register input driver;
static int __devinit gpio_keys_probe(struct platform_device
*pdev)
{
…
input = input_allocate_device();
…
for (i = 0; i < pdata->nbuttons; i++) {
struct
gpio_keys_button
*button
=
&pdata->buttons[i];
struct
gpio_button_data
*bdata
=
&ddata->data[i];
unsigned int type = button->type ?: EV_KEY;
bdata->input = input;
Содержание SBC8140
Страница 1: ...SBC8140 Single Board Computer User Manual Version 1 1 22nd Jan 2014...
Страница 12: ...Page 6 1 4 Interfaces on the SBC8140 Figure 4 SBC8140 Interfaces...
Страница 13: ...Page 7 1 5 System Block Diagram Figure 5 SBC8140 system block diagram...
Страница 15: ...Page 9 1 6 2 Expansion Board Figure 8 Expansion board dimensions...
Страница 128: ...Page 122...
Страница 130: ...Page 124 3 When the following appears select Continue 4 Please wait until the installation is completed...
Страница 131: ...Page 125...
Страница 139: ...Page 133 Appendix 5 FAQ Please visit http www elinux org SBC8600_FAQ...