mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
gpio/mockup: add virtual gpio device
This patch add basic structure of a virtual gpio device(gpio-mockup) for testing gpio subsystem. The tester could manipulate such device through userspace(sysfs or char device) and check the result from debugfs. Currently, it support one or more gpiochip(determined by module parameters with base,ngpio pair). One could test the overlap of different gpiochip and test the direction and/or output values of these chips. Signed-off-by: Kamlakant Patel <[email protected]> Signed-off-by: Bamvor Jian Zhang <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
e3296f19c8
commit
0f98dd1b27
4 changed files with 231 additions and 0 deletions
|
|
@ -1364,6 +1364,10 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
|
|||
Format: <unsigned int> such that (rxsize & ~0x1fffc0) == 0.
|
||||
Default: 1024
|
||||
|
||||
gpio-mockup.gpio_mockup_ranges
|
||||
[HW] Sets the ranges of gpiochip of for this device.
|
||||
Format: <start1>,<end1>,<start2>,<end2>...
|
||||
|
||||
hardlockup_all_cpu_backtrace=
|
||||
[KNL] Should the hard-lockup detector generate
|
||||
backtraces on all cpus.
|
||||
|
|
|
|||
Loading…
Reference in a new issue