aboutsummaryrefslogtreecommitdiffstats
path: root/GTA04
Commit message (Collapse)AuthorAgeFilesLines
* usb: various hacks related to otgAndreas Kemnade2013-11-032-0/+40
| | | | | | | | | | | | | | - start switch to b_host role via sysfs - control vbus output power - can be used to start charging when a charger with ID grounded is first connected to the device and then to the wall outlet - enable/disable pulldown resistors via sysfs, can be used to emulate a connection to a usb host, useful for switching to b_host when using y-cables - script for entering b_host mode Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
* bootargs.txt : Add handling for cma kernel parameter.Marek Belisko2013-08-021-1/+1
| | | | | | We keep also vram parameter for backward compatibility with older kernels. Signed-off-by: Marek Belisko <marek@goldelico.com>
* made LCD panel initialization more universalH. Nikolaus Schaller2013-07-221-1/+1
| | | | | | | | | | | | | so that we can now use a single configuration file for all GTA04-custom variants. The trick is to evaluate the mux= command line argument and update the kernel data structures dynamically so that finally we load a different panel driver and have different platform data for the touch screen. The same mechanism can be used in the future to enable custom board specific features like RFID reader etc. Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
* added charging.rules and sensor.rulesH. Nikolaus Schaller2013-07-222-0/+9
|
* added/fixed ubi.mtd=4 parameterH. Nikolaus Schaller2013-07-221-3/+6
|
* moved bootargs to GTA04 subdirectoryH. Nikolaus Schaller2013-07-221-0/+54
|
* GTA04 audio headset jack detect.NeilBrown2013-07-221-1/+1
| | | | | | | Enhance jack detection to differentiate with and without a microphone, and to report a button-press when the microphone is shorted. Signed-off-by: NeilBrown <neilb@suse.de>
* GTA04: add simple headset-jack detection support.NeilBrown2013-07-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | As headset-insert doesn't generate an interrupt we need to poll the MICSENSE line to see if a headset is present. We do this every 500ms. It takes nearly that long to physically insert a jack, so much faster wouldn't help and would impact power drain more. As detection is done by polling, a jack-insert or removal event cannot wake the device from suspend. Events are only detected while device is awake. We keep the HSMIC bias enabled whenever the 'input' device is open, except during suspend so that we can poll reliably. Turning it off and on seems to interfere with reliable measurements. Currently a reading below 100 is 'nothing plugged in' while a reading above that is 'mic and headphone plugged in'. I measure between 19 and 26 when nothing is plugged in, and between 804 and 811 when a headset is plugged in. Input device will appear as /dev/input/jack if the udev rules file in GTA04/udev-rules/input.rules is installed. Signed-off-by: NeilBrown <neilb@suse.de>
* GTA04 audio headset jack detect.NeilBrown2013-07-221-1/+1
| | | | | | | Enhance jack detection to differentiate with and without a microphone, and to report a button-press when the microphone is shorted. Signed-off-by: NeilBrown <neilb@suse.de>
* GTA04: add simple headset-jack detection support.NeilBrown2013-07-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | As headset-insert doesn't generate an interrupt we need to poll the MICSENSE line to see if a headset is present. We do this every 500ms. It takes nearly that long to physically insert a jack, so much faster wouldn't help and would impact power drain more. As detection is done by polling, a jack-insert or removal event cannot wake the device from suspend. Events are only detected while device is awake. We keep the HSMIC bias enabled whenever the 'input' device is open, except during suspend so that we can poll reliably. Turning it off and on seems to interfere with reliable measurements. Currently a reading below 100 is 'nothing plugged in' while a reading above that is 'mic and headphone plugged in'. I measure between 19 and 26 when nothing is plugged in, and between 804 and 811 when a headset is plugged in. Input device will appear as /dev/input/jack if the udev rules file in GTA04/udev-rules/input.rules is installed. Signed-off-by: NeilBrown <neilb@suse.de>
* GTA04 udev rules for /dev/input/jackNeilBrown2013-05-171-0/+1
| | | | | | works with new jack driver support. Signed-off-by: NeilBrown <neilb@suse.de>
* Configure 3G interrupt as a key-pressNeilBrown2013-05-171-0/+1
| | | | | | | This ensures correct wakeup handling and make it easy to integrate with existing code. Signed-off-by: NeilBrown <neilb@suse.de>
* Improve vibra.py demo scriptNeilBrown2013-05-171-21/+62
| | | | | | | Add a 'multi_vibe' which rumbles several times in quick succession. Can the interface a bit. Signed-off-by: NeilBrown <neilb@suse.de>
* GTA04: Add demo script for running the vibratorNeilBrown2013-05-172-0/+74
| | | | Signed-off-by: NeilBrown <neilb@suse.de>
* GTA04: Add 'GTA04' directory for useful stuff.NeilBrown2013-05-173-0/+32
Currently: README: explaining other files and how to compile udev-rules/: config files to ensure stable device names. Signed-off-by: NeilBrown <neilb@suse.de>