Commit Graph

211997 Commits

Author SHA1 Message Date
Iliyan Malchev
2ebdfc7eff [ARM] cpcap-audio-core: adjust cpcap register CPCAP_REG_CC (513) values
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-06 16:51:36 -07:00
Iliyan Malchev
ddde999f20 [ARM] cpcap-audio-core: set gains through cpcap_audio_set_audio_state()
Remove functions cpcap_set_volume() and cpcap_set_mic_volume() and instead set
the gains through cpcap_audio_set_audio_state(), which is the correct way to do
so.

Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-06 16:51:35 -07:00
Iliyan Malchev
96491d9767 [ARM] tegra: stingray: fix board_boot_mode_init() return value
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-06 16:51:34 -07:00
Erik Gilling
b72ee3bd9f video: tegra: add channel command fifo debugging support
Change-Id: Iaab4b04aec8feb61000e5423ea32811cca007444
Signed-off-by: Erik Gilling <konkers@dirtysouth.mtv.corp.google.com>
2010-10-06 16:51:33 -07:00
Benoit Goby
50e6eff5fb [ARM] tegra: board-stingray: Platform data for ehci devices
Change-Id: I8a0120d016ed5cf5b0080a86af6b324b1f3e9d1c
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:51:32 -07:00
Benoit Goby
41fe752bdb usb: otg: Copy usb1 platform data
Change-Id: I878339ab53cad1687c1022137f00ecc494b60b9e
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:51:31 -07:00
James Wylder
6a20fbc570 regulator: max8649: add support for max8649s and max8952
From a driver standpoint the max8649s and 8952 variants
for the max8649 differ only in the minimum and maximum
voltages.

Change-Id: Icc90af48a6c2d99577aa479218564d2ebee71e56
Signed-off-by: James Wylder <james.wylder@motorola.com>
2010-10-06 16:51:30 -07:00
makarand.karvekar
e6c0059b6f [ARM]: tegra: Enable noise suppression for touch in stingray board file
Firmware settings for noise suppression object.

Change-Id: I6da91da6b4d17d93cfb5b26f38bae76039a8c8f4
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2010-10-06 16:51:29 -07:00
Kazuhiro Ondo
6d02b486b3 misc: mdm6600_ctrl: Add query and control of BP status via sysfs.
The following sysfs nodes will be exposed.
/sys/class/radio/mdm6600/status (query BP status)
/sys/class/radio/mdm6600/power_status (query BP power status)
/sys/class/radio/mdm6600/command (To control BP status)

Change-Id: I4ed4b6d0d9df010713732e79f3a0598e09ad5dec
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:51:28 -07:00
Chien-Yu Chen
c3b9e22802 media: video: tegra: ov5650: fixing exposure blip
When changing mode, also program frame length, coarse time,
and gain so it can keep the same exposure value. Without this
API change, exposure time and gain will be reset to the default
values in the mode table and the image brightness may change
suddenly.

Change-Id: I82fe8a7d838a041b27af7dd6b9b3d27030318456
2010-10-06 16:51:27 -07:00
makarand.karvekar
acf1248b63 [ARM] tegra: stingray: defconfig: Disable CONFIG_INPUT_KEYRESET
Change-Id: I268b6c6e5f9e0cce55bdfb27111e72f7e5a3433f
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2010-10-06 16:51:26 -07:00
makarand.karvekar
61c28e0091 [ARM] tegra: stingray: remove legacy keys
removed all keys except vol-up and vol-down.
remove reset_keys_device

Change-Id: I16bf3c8f663373eb0fa225bb8904655e9ccc7632
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2010-10-06 16:51:25 -07:00
Sergey Kudakov
9ba6a6a0cb [ARM] tegra: stingray: enable usblan based on kernel command line
Change-Id: I819f2fc67fb76f618b6e3c25703d3a57c9f25043
Signed-off-by: Sergey Kudakov <sergey.kudakov@motorola.com>
2010-10-06 16:51:24 -07:00
John Michelau
a8f56f8e0d Enabled LTE DataCard driver
CONFIG_USB_USBNET
    CONFIG_USB_NET_CDCETHER

Change-Id: I474a309cba80115093ba86ecf414b2b31527430e
2010-10-06 16:51:23 -07:00
Greg Meiste
58dee8e83f mfd: cpcap-whisper: Fix defect introduced by I2c374a98
Fix issue where the ID Float interrupt may occur during the 200ms
where state is set to USB_POWER, causing the state machine to get
into a bad state.

Change-Id: I99e7b5de84f4b091c5b6e4f3e522876561603b61
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:51:22 -07:00
Antti Hatala
d1f8605b09 video: tegra: add multiple windows support to flip ioctl
Change-Id: I8521d1f6737e0972d8385e0ceecfc3a1bcae8550
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:51:21 -07:00
Erik Gilling
f55cfc3834 Revert "video: tegra: add multiple windows support to flip ioctl"
This reverts commit 09d367bee9da1b5ecd931dc1d26317707a8c4085.
2010-10-06 16:51:20 -07:00
Antti Hatala
e4dc6f8eda video: tegra: add multiple windows support to flip ioctl
Change-Id: I8521d1f6737e0972d8385e0ceecfc3a1bcae8550
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:51:19 -07:00
James Wylder
bfe2405cbe [ARM] tegra: stingray: boardfiles changes for mdm6600_ctrl
- give more meaningful names to ap-bp gpios,

Change-Id: I1a7eea918c15271b90fb09ce882eff1691a28c21
Signed-off-by: James Wylder <james.wylder@motorola.com>
2010-10-06 16:51:18 -07:00
James Wylder
d7eb4745b7 misc: mdm6600_ctrl: update shutdown to reset unresponsive modem.
- fix initialization of BP_PWRON (PS6), and BP_RESIN (PZ1) gpios,
    - cleanup kernel log messages,
    - assert BP_RESIN gpio to reset unresponsive modem.

Change-Id: Iaf6b7d553fec1a6e9254b7183c1beacf7ad4d555
Signed-off-by: James Wylder <james.wylder@motorola.com>
2010-10-06 16:51:17 -07:00
Greg Meiste
2e760aa5ab [ARM] tegra: stingray: Fix CPU DVFS
P0 and later models were changed to put the cpu_vdd regulator
in MODE 1, rather than the previous MODE 3 value. This caused
DVFS to appear to work but actually have no impact on the
cpu voltage.

In addition, when resuming from LP0, the CPU voltage must be
1.0v.  To guarantee this, the voltage needs to be set upon
entering suspend, so when the regulator is re-enabled, it is
the correct voltage before code begins executing.

Change-Id: I3580c832dbb4b5ce9ce7bd0089352a72b3b3869c
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:51:16 -07:00
Greg Meiste
12f6584327 regulator: max8649: Add support for suspend
With this change, the regulator framework can configure the regulator
for suspend if necessary.

Change-Id: Idf1fc085d7182368ae1bfdcc54cf3c8de0f93005
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:51:15 -07:00
Greg Meiste
4f544db43e [ARM] tegra: Setup regulators for suspend
The regulator framework may need to change certain regulators when
entering suspend.

Change-Id: I584e92b3c32cbd1a63325831822e2704a3dd2774
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:51:14 -07:00
Antti Hatala
edd4c87e4d [ARM] tegra: stingray: remove clock and powergate hacks
Remove unpowergating of 3d on board init to let the host1x driver
handle it.

Remove enabling hw module clocks on board init for modules behind
host1x.

Keep pll_m clock force-enabled for now as the pll clk disable code
path is not fully functional.

Change-Id: I4721d117b736a591b3cf3ee9f8967b88212f88b8
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:51:13 -07:00
Benoit Goby
cf853d9c88 usb: mdm6600: Remove urbs from in_flight list on completion
This fixes an issue where uncompleted urbs get added to the pending
anchor.

Change-Id: I9504fea0ca42e9d18dfe255744ba8f6638e1f324
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:51:12 -07:00
Antti Hatala
c30aa47b8e video: tegra: automatic powergating for 3d and mpe
Change-Id: I50784dec578c4c20b790ce25e53e849412c1443a
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:51:11 -07:00
Greg Meiste
d6f7c9b3c7 [ARM] tegra: stingray: CHG_DISABLE is connected to PS7 on P2
On P2 hardware, PS7 is now connected to CHG_DISABLE.  HS_DET_EN has not
been connected (or needed) since M1, so audio should not be controlling
PS7.

Change-Id: I19b96295cb956bffdd1f4b0e7ba48b1a0bec3242
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:51:09 -07:00
Greg Meiste
c4f99cbeb9 power: ds2781: Report charging correctly
Previously, charging was being reporting whenever a charger was present.
While true most of the time, there are cases where that won't be the
case.  This patch updates the driver to only report charging if charging
is actually occurring.

Change-Id: Ibc5881fed5d11f89d87d0c7adcd7ac1c2b273688
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:51:08 -07:00
Greg Meiste
ed28235171 power: bq24617: Add support to report charging separately
Just because the charger is present, doesn't mean that the battery is
being charged.  For example, the battery can be overheating, which
will prevent charging.

Change-Id: If5d8dc325fc6dc507808216f1e45a180d74b5d73
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:51:07 -07:00
makarand.karvekar
17ab6bba46 input: touchscreep :qtouch: report the finger tracking id
USE ABS_MT_TRACKING_ID to report the finger tracking id

Change-Id: I8198eea12c5a90607a6dab48d96c6872a1c5e783
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2010-10-06 16:51:06 -07:00
Rebecca Schultz Zavin
16b553082f [ARM] configs: Add config options to enable oprofile in stingray_defconfig
Change-Id: I1ea33a44ec3c963338e3dc09dee575139d801227
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:51:05 -07:00
Benoit Goby
86493f9afa [ARM] tegra: board-stingray: Add USB2 (LTE DataCard connector)
Change-Id: I59c09898394ac72966fa2057eb69130f7439c2f6
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:51:04 -07:00
Benoit Goby
d30bd86c2a [ARM] tegra: pinmux: Disable pull-ups on ULPI pins
Pull-ups on ULPI pins must be disabled to select the Link ULPI
PHY interface (TRM 25.3.3.2).

Change-Id: Ic9a4a798954c97c10360a5968ad4184a07cc6ee4
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:51:03 -07:00
Benoit Goby
79c16b80a2 mfd: cpcap-whisper: Workaround for the enumeration issue
The Tegra root hub sometines does not enumarate the device when the OTG
cable is first inserted. Delaying the activation of vbus, to leave time
for the controller to initialize seems to fix the problem.

Change-Id: I2c374a98b2931bc724efb1678fad4fbb873b2a3b
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:51:02 -07:00
Benoit Goby
6aa29592b2 usb: otg: Remove the force_irq hack
Dynamically add/remove the ehci platform device and use
vbus_connect/vbus_disconnect to notify the gadget driver of
OTG state changes.
Only enable the clock when needed, as we rarely need to access
the registers.

Change-Id: Id198822c58f50252361333c3a99c416a3baaace2
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:51:01 -07:00
Benoit Goby
c55aca163a [ARM] tegra: board-stingray: Don't register usb1 ehci platform device
The cpcap-otg driver will register the device when ID pin is grounded

Change-Id: Ibe95dcd00d7e1dfe0103ca94b59afe8769d91759
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:51:00 -07:00
Greg Meiste
b92b93a514 mfd: cpcap-whisper: Detect invalid chargers
Change-Id: Iaea0ebc594ac8b050f241ff5eef3d2ed7441a19a
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:50:59 -07:00
Greg Meiste
3fee717f42 input: qtouch: Change suspend level
Touch should be disabled after the display is suspended and enabled
before the display is resumed.  Resuming after the display can cause
touch to stop functioning.

Change-Id: Ib9861b325994ebfbf3e93554aaa86747f7bde469
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:50:58 -07:00
makarand.karvekar
efc63a9d6d [ARM] tegra: Stingray: pull down on TEGRA_PINGROUP_SDIO1 (UARTE)
UARTE used by GPS is a 3-wire connect between
Broadcom chip and Tegra.
uart5_cts_n is not connected, pull down on the
pin group keeps cts line low.

Change-Id: I8c9fa70058e92fce3c09e036051cb89b4c808434
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2010-10-06 16:50:56 -07:00
Praveen Bharathi
d6196a6f5e [ARM] tegra: stingray: remove unwanted ALS platform variables from board file
Removed threshold boundaries as they are no longer needed.

Change-Id: Ie395f9042fbf3e61ca0c6ff448441f52fc5929f9
Signed-off-by: Praveen Bharathi <pbharathi@motorola.com>
2010-10-06 16:50:56 -07:00
Praveen Bharathi
5fa7790654 misc: max9635: Fix issues with LUX register read
Modified driver to report lux every 2 secs.
Also rearranged data/removed unused variables in header file.

Change-Id: I3261a51497b2a55be735fbc73a6f15f7838b0b27
Signed-off-by: Praveen Bharathi <pbharathi@motorola.com>
2010-10-06 16:50:54 -07:00
Greg Meiste
69726d2f7e mfd: cpcap-whisper: Config EMUMODE for audio when MODE_PU set
When the 100K ID PU is enabled, it puts the basic dock into audio
mode.  The EMUMODE bits in CPCAP should also be configured so
audio can be routed out the D+/D- lines.

Change-Id: I9bc7718391156932c116c980ccb4d41942356c8b
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:50:53 -07:00
Iliyan Malchev
79e9ed9b2d [ARM] tegra: stingray: cpcap-audio: integrate Motorola's driver
This reverts commit 02e784126d67e77c039123fed3f2ece48b6559f9.
2010-10-06 16:50:52 -07:00
Rebecca Schultz Zavin
8b05fe70e1 Revert "[ARM] tegra: stingray: cpcap-audio: integrate Motorola's driver"
This reverts commit f01ee18d3d1f7e03216b652a04ba82161fd069aa.
2010-10-06 16:50:51 -07:00
Andrei Warkentin
c69ae4ac42 [ARM] configs: Add focuser to stingray_defconfig
Change-Id: I3372c3c42ad7a829e438d34924373c0afbef4fb5
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:50:50 -07:00
Rebecca Schultz Zavin
c1f53d1d58 [ARM] tegra: stingray: Add specific regulator constraints for focuser
Change-Id: I45cb0331731b585ebdc021b38e87fec31fe6895f
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:50:49 -07:00
Rebecca Schultz Zavin
81726cf613 [ARM] tegra: stingray: Add focuser to board-stingray-sensors
Also remove management of vcam ioctl, it will now be managed by
the focuser driver

Change-Id: I8114d831bbe62019ec022003fb61bd354093ee85
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:50:48 -07:00
Andrei Warkentin
c063995751 media: video: tegra: Add dw9714l focuser driver
Change-Id: I4e3c690c782ea25c50fec25bf6252acd32a64242
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:50:47 -07:00
Andrei Warkentin
14be139209 media: video: tegra: ov5650: Several changes to 5MP imager sensor
Add ability to read sensor otp.
Add support for pattern generators.
Cleans up the ioctl parameters.

Change-Id: I78b585fb94b5d97e2adebe718972019e4e2142de
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:50:46 -07:00
Rebecca Schultz Zavin
5646436ff6 media: video: tegra_camera: Change value written into clock register for vi
Change-Id: I5e4d4a14f055ea8a19f715f8bf8fb3d7b88b7cda
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:50:45 -07:00