Initialize BP boot command GPIOs in the platform data.
Change-Id: Ia1f41e4d3d2fa718b156c065e0661fe1ac1a9ad2
Signed-off-by: Benoit Goby <benoit@android.com>
Added commands to control mdm6600 status from the userspace.
This change will add the capabilities of 1) shutdown, 2) switch
bootmode and 3) powerup of the modem processor.
Change-Id: Ic93c4d87af73e4b78f1aa70a35f1b4b1145ea462
Signed-off-by: Benoit Goby <benoit@android.com>
buffer_sz is multiple of MaxPacketSize because the USB host controller
can split the buffer in packets.
All buffers received or sent are <2k, so MaxPacketSize * 4 (2k) should
be a better buffer size.
Change-Id: I1e0e2fd4e9a4e78d33e6b4de57ee420630298de2
Signed-off-by: Benoit Goby <benoit@android.com>
On systems with high memory pressure, allocating an order 4 contiguous region
for decompression can fail at run time. Instead use virtually contigous memory
allocated via vmalloc.
Change-Id: I7821882bd183a1de0d73ab2932f6e6978e4f0970
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
A failed write in the lm3559 driver takes an error path
that incorrectly attempted to free statically allocated
memory, resulting in a kernel crash. This bug prevents
the kernel from booting successfully on development
hardware systems that doesn't have the torch LED.
Change-Id: I96d252c5d5b6939f5d47e27aece81e1f61ba1cd1
Signed-off-by: John Poplett <john.poplett@motorola.com>
On suspend, while we are killing read urbs, some of the urbs
might succeed. Don't re-submit them and wait for the workqueue
to process them.
Fixed urbs ref count
Change-Id: I3c69926b0bec8d5425ed8bc403b8c040db5ab435
Signed-off-by: Benoit Goby <benoit@android.com>
xy swap/flip and erroneous touch event suppression
is handled in touch IC firmware.
Change-Id: I73df7eb06c39144ba68c9a5897daa6b3625b3ba3
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
Includes support for factor test and latest tuning settings
Signed-off-by: John Kramer <john.kramer@motorola.com>
Change-Id: Icc0e17317c4209cd58d0981b34cd8b60c80be09e
The Motorola HID driver needs an interface to call when an audio cable
is inserted/removed from a Smart Dock. The interface should update
the audio switch so the audio driver can properly route audio.
Change-Id: Ifad06400c5895f7545f702cdb09be02fe716412a
Signed-off-by: Greg Meiste <w30289@motorola.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
- create cpcap_audio debugfs with access to the audio_state
- add cpcap_audio_state_dump call to parallel the register
dump call.
Change-Id: Ia7331b9218ea93602833b2a99097109031035280
Signed-off-by: James Wylder <james.wylder@motorola.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
-- add CPCAP_AUDIO_OUT_STANDBY definition, extended ioctl interface to support
for selecting new CPCAP_AUDIO_OUT_STANDBY output id;
-- manage VAUDIO through balanced calls to regulator_set_mode() initialize
audio speaker to off.
Signed-off-by: Iliyan Malchev <malchev@google.com>
- Initialize VAUDIO to low power mode
- Add standby_config changes to allow audio to go into low
power state.
- remove direct references to register 512, because access
should be through the Linux regulator framework.
Change-Id: I3ea23e2aabd183a3ecae0d30fce15a7365b168d8
Signed-off-by: James Wylder <james.wylder@motorola.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
Need to save the temperature in a signed variable. Otherwise, when the
temperature is below zero, an extremely hot temperature is reported to
the system, causing the device to power down.
Change-Id: I243bfc0fd1e1d76b2986e9def624de2b7782d731
Signed-off-by: Greg Meiste <w30289@motorola.com>
Exposes more parameters and settings to focuser HAL,
putting all specifics in the driver, queryable from the HAL.
Change-Id: Id3d8764b7f9f1853982ca9c0d403fb0e455c7185
Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
fsl_build_dtd may be called from atomic context. Don't hardcode the gfp
flag to GFP_KERNEL. Pass down to dma_pool_alloc the flag used by the
function driver to enqueue the request.
Change-Id: Iba1ccf73bbcd648b8c13228157431d2ce52979ef
Signed-off-by: Benoit Goby <benoit@android.com>
The uC can now be used to write the secondary SPI standby bits.
Change-Id: I0f6a69d78b941fdf7b65d893c0ae8b29cc8bd740
Signed-off-by: Greg Meiste <w30289@motorola.com>
Other ports may need the wakeup irq even if the modem main port is not
opened. Enable the wakeup irq when the first opened port is suspended,
instead of enabling it when the main port is opened.
Change-Id: I15f32bb885673765cf5c7a574896e1c427d24977
Signed-off-by: Benoit Goby <benoit@android.com>
The accessory team has requested that detection wait 200ms before
taking the ADC read to give the ID line time to settle to the
correct state. This fixes audio cable detection on real docks.
Change-Id: I7744bb3927a07c299e7efa27eee24d3267aa6856
Signed-off-by: Greg Meiste <w30289@motorola.com>
Set default trigger as timer.
Seperate blink function from brightness.
Change-Id: I1dd789ae8b5df88ea26c40ed544807ec0f3bb52a
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
Allow auto-suspend and suspend when there are no pending writes and
no data have been received for 2s.
While the modem is suspended, enqueue write urbs and submit them once
the modem is resumed.
Request the wakeup gpio irq so that the modem can wakeup from lp0.
Change-Id: If2a47756e9a2138d6c1a7c2e7bf235dfc396cec5
Signed-off-by: Benoit Goby <benoit@android.com>