This is a re-write of the Motorola mdm6600_modem driver.
The usb_serial_generic_* handlers actually cover the USB bulk to serial data
path. So that code disappears.
The USB interrupt data to TIOCMGET ioctl path does not appear to be used by
pppd in userspace, using a temporary BUG_ON() to confirm.
So we end up with very little but a hook to register generic usb-serial
handlers for the MDM6600 vendor id.
I have not spent time testing behavior in low-power-modes, it is likely I will
need to over-ride some of the generic handlers at that point.
Change-Id: I65fdd06c2764416f365995761aa653878c0e393b
Signed-off-by: Nick Pelly <npelly@google.com>
Instead just allow userspace to turn on and off the backlight when
entering suspend. Otherwise we get a race condition on some hardware
where the backlight does not go off.
Change-Id: I81303125ebc0cfa8ef1d135a3681d6dd4d4137d9
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Disable cpcap interrupts at suspend and re-enable at resume, to avoid
processing interrupts while the SPI controller is suspended.
Change-Id: I26676b8ce8983bf5477f169a15d811c474c6f5a4
Signed-off-by: Todd Poynor <toddpoynor@google.com>
moto_flashmdm_attach should also override bulk_out_buffers as
usb-serial expects they have the same size as bulk_out_buffer
Change-Id: I97487fa833ed3dee40a15c485ba8565944d0f9e4
Signed-off-by: Benoit Goby <benoit@android.com>
reset commented out in resume.
reset address pointer to message object.
adjusted wait time after reset upon recommendation from Atmel.
Change-Id: I0dd983ce0545c6ca2e48d4ed06b90d8c1ac1a390
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
This allow's Motorola's mdm6600_modem driver to work with suspend.
Patch provided by Motorola.
mdm6600_modem will shortly be replaced by a re-write, but its useful to commit
this update for easier A/B testing.
Change-Id: I0489f139e59e42ba1b6fb1979cf8b3ea8196a126
Signed-off-by: Nick Pelly <npelly@google.com>
Configure GPIO_PZ5 to control the charge LED. For now, charge LEDs
are enabled when device is powered up. GPIO is also exported to
enable factory testing.
Change-Id: I6bf7345cc795d57c1312c2c14ab1c74863a421ce
Signed-off-by: Greg Meiste <w30289@motorola.com>
If Stingray is powered up with a charger already attached, the battery
driver would not report charging to the system, even though the battery
was being charged. This charges the DS2781 battery driver to check
if a charger is already present when the driver is probed.
Change-Id: I786e34a4699a545f5a03995db5df457cd7f63773
Signed-off-by: Greg Meiste <w30289@motorola.com>
Changes to the Tegra w1 timings to meet the timing requirements
of the DS2780 and DS2781 ICs as recommended by the hardware team.
Change-Id: I5dca589d98d87c16fac82759d02d42cd4afbc659
Signed-off-by: Greg Meiste <w30289@motorola.com>
The device expects the irq to be disabled on resume, enable
it from suspend so enable/disables are balanced.
Change-Id: I62cf633819d8fdb3c5f7c6227f2625cfdecdc6a8
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
Stingray will initially ship with the DS2780 instead of the DS2781
gas gauge. The same DS2781 driver will work, but need to look for
the DS2780 family code.
Change-Id: I6b47f31d6362895839af4922210dba2aee41db42
Signed-off-by: Greg Meiste <w30289@motorola.com>
The current being reported by the DS2781 battery driver was off
due to the incorrect value being used for Rsnsp. The DS2781 has
a register with the correct value, so use it instead of a hard
coded value.
Change-Id: I6fbd32a2a890232a805a2d4f1e595b0b3daf30e8
Signed-off-by: Greg Meiste <w30289@motorola.com>
duplicate register input called, when boot work function is triggered
via firmware update process.
This broke reboot command.
Change-Id: I78547127bfbde39f1f971806156d332883b8bf43
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
Some sensor ioctls are called on every frame. Remove log messages
to prevent the kernel log from getting too spammy.
Change-Id: I0eb88eb7e7da7c5eb3e158c17ae68cca195147fc
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
add support for enabling, disabling and configuring the ISP, VI and
CSI clocks from user-space through the RM APIs
Change-Id: I652af05d5406928721ac62371b85cb3e2cbb3f6b
Signed-off-by: Gary King <gking@nvidia.com>
AVP modules expect IRAM to be allocatable through nvmap, so the
IRAM heap needs to be created
Change-Id: Idd1bdccd5ff05ae655cb59780a89002a122055c9
Signed-off-by: Gary King <gking@nvidia.com>
The latest stingray P1s die during boot when the memory
controller frequency is changed.
Change-Id: Ia505343289d7f6066d7731d2297c585988ffa7ea
Signed-off-by: Colin Cross <ccross@android.com>
The ts27010 mux driver panics during suspend, disable it
temporarily.
Change-Id: I0c858bf01d1579d38048288d1e19a373307600c2
Signed-off-by: Colin Cross <ccross@android.com>
touch object elements updated as per firmware 09
protocol publication.
Change-Id: I1e3ce574859eaa25d8b46add055572ec4017855f
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
touch object elements updated as per firmware 09
protocol publication.
Change-Id: I8fceb69b42b3234953dfd7aa35f01ead3f300ff6
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
Added new objects grip, palm and Digitizer HID.
Ignoring info block checksum for now, issues seen
on some HW having incorrect info data.
Change-Id: I812d3099dd273e99a87ca3fe8dfce3bcdfbede7e
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>