Changes between Version 3 and Version 4 of Android/OSDevelopment


Ignore:
Timestamp:
08/26/2020 08:19:59 PM (4 years ago)
Author:
Tim Harvey
Comment:

remove dead links

Legend:

Unmodified
Added
Removed
Modified
  • Android/OSDevelopment

    v3 v4  
    4444[=#gsc-pushbutton]
    4545==== GSC User Pushbutton ====
    46 The [wiki:gsc Gateworks System Controller] functions as a pushbutton controller for the front-panel user pushbutton available on most Ventana boards. This particular button is available as gpio-240 on Ventana boards however there is a [wiki:gsc#inputdriver gsc-input driver] that converts GSC related interrupts, such as push-button press-and-release to Linux Input events.
     46The [wiki:gsc Gateworks System Controller] functions as a pushbutton controller for the front-panel user pushbutton available on most Ventana boards. This particular button is available as gpio-240 on Ventana boards however there is a gsc-input driver that converts GSC related interrupts, such as push-button press-and-release to Linux Input events.
    4747
    4848By default note that the GSC is configured such that the user pushbutton is a hard reset. To configure it instead to be software controlled you need to set GSC CTRL_0 accordingly depending on the actions you wish to catch. For example:
     
    5353}}}
    5454
    55 The [wiki:gsc#inputdriver gsc-input driver] will catch all enabled GSC interrupts and emit a Linux Input event with a key-code cooresponding to a button (defined in Linux input.h). For example the GSC_IRQ_PB (pushbutton press-and-release) interrupt is mapped to BTN_0 which is defined as 0x100 (decimal 256) in [https://lxr.missinglinkelectronics.com/linux/include/uapi/linux/input.h#L481 input.h].
     55The gsc-input driver will catch all enabled GSC interrupts and emit a Linux Input event with a key-code cooresponding to a button (defined in Linux input.h). For example the GSC_IRQ_PB (pushbutton press-and-release) interrupt is mapped to BTN_0 which is defined as 0x100 (decimal 256) in [https://lxr.missinglinkelectronics.com/linux/include/uapi/linux/input.h#L481 input.h].
    5656
    5757There exists a key layout file that maps the Linux input event keycodes to Android key events in /system/usr/keylayout/gsc_input.kl:
     
    7676For more information see:
    7777 * [wiki:gsc#pushbutton GSC pushbutton]
    78  * [wiki:gsc#inputdriver gsc-input kernel driver]
    7978 * [wiki:gsc#gsc_ctrl_0 GSC_CTRL_0 register]
    8079 * [wiki:gsc#gsc_interrupt_status GSC_INTERRUPT_STATUS register]