Page | 43
2.
GPIO pinmux Configuration
Define the GPIO0.20 and GPIO2.1 as MODE7 (GPIO mode) and
AM33XX_PIN_INPUT (configuration input).
Linux-3.2.0-psp04.06.00.08.sdk/arch/arm/mach-omap2/board-am335xev
m.c
static struct pinmux_config gpio_keys_pin_mux[] = {
{"xdma_event_intr1.gpio0_20",OMAP_MUX_MODE7 | AM33XX_PIN_INPUT},
{"gpmc_clk.gpio2_1",OMAP_MUX_MODE7|AM33XX_PIN_INPUT},
{NULL, 0},
};
3.
Driver Design
Linux-3.2.0-psp04.06.00.08.sdk/drivers/input/keyboard/gpio_keys.c
Call platform_driver_register to register gpio_keys driver
static struct platform_driver gpio_keys_device_driver = {
.probe = gpio_keys_probe,
.remove = __devexit_p(gpio_keys_remove),
.driver = {
.name = "gpio-keys",
.owner = THIS_MODULE,
.pm = &gpio_keys_pm_ops,
.of_match_table = gpio_keys_of_match,
}
};
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);
}
late_initcall(gpio_keys_init);
module_exit(gpio_keys_exit);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Phil Blundell <[email protected]>");
Summary of Contents for SBC8600B
Page 1: ...SBC8600B Single Board Computer Quick Start Guide Version 1 1 23rd Jan 2014...
Page 9: ...Page 2 1 3 Board Interfaces Figure 1 SBC8600B Interfaces...
Page 10: ...Page 3 1 4 System Block Diagram Figure 2 SBC8600B System Block Diagram...
Page 11: ...Page 4 1 5 Physical Dimensions Figure 3 MINI8600B Physical Dimensions...
Page 12: ...Page 5 Figure 4 SBC8600B Physical Dimensions...
Page 114: ...Page 107...