aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* ARM: configs: gta04_defconfig: Remove useless framebuffer consolefor-cmairDenis 'GNUtoo' Carikli2013-04-031-18/+4
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
* Add more android configurations.Denis 'GNUtoo' Carikli2013-04-031-0/+5
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
* MERGE: Fix earlysuspend build.Denis 'GNUtoo' Carikli2013-04-031-0/+3
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
* MERGE WITH: PM: earlysuspend: Add console switch when user requested sleep ↵Denis 'GNUtoo' Carikli2013-04-031-5/+6
| | | | | | state changes. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
* PM: Add early suspend api.Arve Hjønnevåg2013-04-031-0/+56
|
* MERGE with: PM: Implement early suspend apiDenis 'GNUtoo' Carikli2013-04-031-2/+0
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
* earlysuspend: add verbose debug flagErik Gilling2013-04-031-3/+12
| | | | | | | when enabled, prints out the function of each handler as they are called Change-Id: I5ed251867e0e3aa3cd05f030ff3579808cedd0c2 Signed-off-by: Erik Gilling <konkers@android.com>
* PM: earlysuspend: Add console switch when user requested sleep state changes.Arve Hjønnevåg2013-04-033-0/+95
| | | | | | | | Signed-off-by: Arve Hjønnevåg <arve@android.com> Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org> Conflicts: kernel/power/Makefile
* PM: Implement early suspend apiArve Hjønnevåg2013-04-034-0/+202
| | | | | | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org> Conflicts: kernel/power/Makefile kernel/power/power.h
* Input: Use monotonic time for event time stamps.Arve Hjønnevåg2013-03-181-2/+4
| | | | | | | | | Since wall time can jump backwards, it cannot be used to determine if one event occured before another or for how long a key was pressed. Signed-off-by: Arve Hjønnevåg <arve@android.com> Signed-off-by: Pankaj <pankaj.bharadiya@ti.com> Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
* usb: gadget: restore f_adb functionDenis 'GNUtoo' Carikli2013-03-104-15/+722
| | | | This partially reverts commit 2b9b0b6a95cb7adbdd4fa03bff2c7dec86852aa0.
* gta04_defconfig: fix java.io.FileNotFoundException: /proc/net/xt_qtaguid/statsDenis 'GNUtoo' Carikli2013-03-101-1/+96
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
* gta04_defconfig: Move all =m options to =yDenis 'GNUtoo' Carikli2013-03-101-320/+326
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
* gta04_defconfig: fix compilation.Denis 'GNUtoo' Carikli2013-03-091-1/+1
| | | | | | | | Without that fix we have: [...]/fs/binfmt_aout.c: In function 'load_aout_binary': [...]/fs/binfmt_aout.c:255: error: 'SEGMENT_SIZE' undeclared (first use in this function) Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
* gta04_defconfig: add ipv6 as =y(not as =m) to fix compilation.Denis 'GNUtoo' Carikli2013-03-091-1/+1
| | | | | | | | Without that fix we have: activity_stats.c:(.text+0x46078): undefined reference to `rt6_lookup' activity_stats.c:(.text+0x461b4): undefined reference to `in6addr_any' Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
* panel-tpo-td028ttec1.c updates fror 3.8Denis 'GNUtoo' Carikli2013-03-091-1/+5
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
* leds/tca6507: add support for 3.8Denis 'GNUtoo' Carikli2013-03-091-0/+1
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
* GPIO: virtual gpio driver for w2sg0004 GPS: Update for 3.8Denis 'GNUtoo' Carikli2013-03-091-3/+3
| | | | | | fix compilation. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
* GPIO: gpio-reg driver: update for 3.8Denis 'GNUtoo' Carikli2013-03-091-3/+3
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
* Update codecs for 3.8Denis 'GNUtoo' Carikli2013-03-093-7/+7
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
* GTA04: fix undeclared 'omap_prcm_restart'Denis 'GNUtoo' Carikli2013-03-091-1/+1
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
* GTA04: fix implicit declaration of function 'omap_nand_flash_init'Denis 'GNUtoo' Carikli2013-03-091-2/+6
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
* GTA04: fix implicit declaration of function 'cpu_is_omap3630'Denis 'GNUtoo' Carikli2013-03-091-1/+1
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
* ARM: OMAP: usb.h: fix redefinitions.Denis 'GNUtoo' Carikli2013-03-091-1/+3
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
* GTA04: fix board includes.Denis 'GNUtoo' Carikli2013-03-091-6/+6
| | | | | | | Without that fix we have errors like: error: plat/gpmc.h: No such file or directory Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
* gta04_defconfig: Update defconfig for newer kernel version.Denis 'GNUtoo' Carikli2013-03-091-57/+151
| | | | | | I also enabled the wakelock for USB. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
* tsc2007: Inverted Y axis to have min Y matching screen topPaulK2013-03-091-0/+3
|
* Added calibrated values for GTA04 tsc2007 touchscreenPaulK2013-03-093-7/+57
| | | | Signed-off-by: PaulK <contact@paulk.fr>
* Change tsc2007 name to match the android idc file.Denis 'GNUtoo' Carikli2013-03-091-1/+1
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
* gta04_defconfig: Added initramfs locationPaulK2013-03-091-4/+5
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
* gta04_defconfig: remove hardcoded cmdline for now.Denis 'GNUtoo' Carikli2013-03-091-2/+2
| | | | | | | That permits us to experiment with different cmdline in the bootloader: before there was CMDLINE_FORCE. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
* gta04_defconfig: Add all staging android-specific drivers.Denis 'GNUtoo' Carikli2013-03-091-2/+9
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
* tsc2007 fixes.NeilBrown2013-03-091-1/+5
| | | | | | pressures is being reported inverted - fix that Signed-off-by: NeilBrown <neilb@suse.de>
* bq27000: report missing device better.NeilBrown2013-03-091-1/+4
| | | | | | | One an hdq buss, a missing device reads as 0xff, not -1. So do a translation to allow detecting of a missing bus. Signed-off-by: NeilBrown <neilb@suse.de>
* added meaningful names to the gpio-keysH. Nikolaus Schaller2013-03-091-0/+2
|
* GTA04 enable off modeNeilBrown2013-03-091-1/+9
| | | | | | Seems to work at all Signed-off-by: NeilBrown <neilb@suse.de>
* OMAP:HACK - don't let CORE go to off-mode the first time.NeilBrown2013-03-091-0/+8
| | | | | | | | | | | | If CORE and USBHOST both go the off-mode the first time USBHOST does, then my device will not resume. However if we let USBHOST go to off-mode and back will CORE is in RETENSION at most, then subsequent off-mode transitions are not a problem. So for RETENTION for the first transition, and OFF for the next. Signed-off-by: NeilBrown <neilb@suse.de>
* musb: fix context save over suspend.NeilBrown2013-03-091-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | It is possible that the musb device will be runtime-active (not suspended) when system suspend happens. In particular, usb_suspend() will have called choose_wakeup() which might have called pm_runtime_resume(). In that case, after system-resume, the state of the device will be 'active', but the state of the registers will have been lost (if off_mode is enabled). So we need to save_context in musb_suspend (if runtime state is active), and restore_context on resume. This effectively reverts 5d193ce8 (usb: musb: PM: fix context save/restore in suspend/resume path) and adds a rest to avoid saving/restoring context if device is already runtime suspended. Tested-by: Kevin Hilman <khilman@deeprootsystems.com> Cc: "Bilovol, Ruslan" <ruslan.bilovol@ti.com> Cc: Igor Grinberg <grinberg@compulab.co.il> Signed-off-by: NeilBrown <neilb@suse.de>
* GTA04 - turnoff HFCLK in suspend.NeilBrown2013-03-091-2/+4
| | | | | | | I'm sure sure that this does anything useful, but let's have the code there and see. Signed-off-by: NeilBrown <neilb@suse.de>
* GTA04 - enable wakeup on 3G event.NeilBrown2013-03-091-0/+1
| | | | | | | Before we enable off-mode, we really need the wakeup to work, and I broke it recently. Signed-off-by: NeilBrown <neilb@suse.de>
* Enable SaveAndRestore for USB power domainNeilBrown2013-03-091-1/+1
| | | | Maybe this will cause problems, maybe it will help...
* GTA04 - mux output GPIOs as output.NeilBrown2013-03-091-1/+8
| | | | | | | This primarily removes the pull up/down, which shouldn't be much of a problem, but is best avoided. Signed-off-by: NeilBrown <neilb@suse.de>
* BMP085 - use mutex to avoid races.NeilBrown2013-03-091-1/+5
| | | | Signed-off-by: NeilBrown <neilb@suse.de>
* Jack bouncing: bugfix.NeilBrown2013-03-091-0/+3
| | | | | | | If get_madc_conversion returns an error, we should ignore the value. Reported-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org> Signed-off-by: NeilBrown <neilb@suse.de>
* pwm-omap: remove suspend handling code.NeilBrown2013-03-091-22/+0
| | | | | | It provides no value Signed-off-by: NeilBrown <neilb@suse.de>
* OMAP dmtimer - simplify context-loss handling.NeilBrown2013-03-091-20/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The context loss handling in dmtimer appears to assume that omap_dm_timer_set_load_start() or omap_dm_timer_start() and omap_dm_timer_stop() bracket all interactions. Only the first two restore the context and the last updates the context loss counter. However omap_dm_timer_set_load() or omap_dm_timer_set_match() can reasonably be call outside this bracketing, and the fact that they call omap_dm_timer_enable() / omap_dm_timer_disable() suggest that is expected. So if, after a transition into and out of off-mode, which would cause the dm timer to loose all state, omap_dm_timer_set_match() is called before omap_dm_timer_start(), the value read from OMAP_TIMER_CTRL_REG will be 'wrong' and this wrong value will be stored context.tclr so a subsequent omap_dm_timer_start() can fail (As the control register is wrong). Simplify this be doing the restore-from-context in omap_dm_timer_enable() so that whenever the timer is enabled, the context is correct. Also update the ctx_loss_count at the same time as we notice it is wrong - these is no value in delaying this until the omap_dm_timer_disable() as it cannot change while the timer is enabled. Signed-off-by: NeilBrown <neilb@suse.de>
* arm/dts: Add basic support for gta04 (Openmoko next generation) board.Marek Belisko2013-03-091-0/+65
| | | | Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
* GTA04 audio headset jack detect.NeilBrown2013-03-091-7/+51
| | | | | | | 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-03-091-0/+74
| | | | | | | | | | | | | | | | | | | | | | | 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. Signed-off-by: NeilBrown <neilb@suse.de>
* GTA04 udev rules for /dev/input/jackNeilBrown2013-03-091-0/+1
| | | | | | works with new jack driver support. Signed-off-by: NeilBrown <neilb@suse.de>