Commit Graph

211338 Commits

Author SHA1 Message Date
Erik Gilling
cd264512d1 video: tegra: remove out of date TODO
Change-Id: I47d065e3cd89276c951a77dc76db02eecf1257a3
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:28:55 -07:00
Erik Gilling
400abc9044 video: tegra: force 24bit output on HDMI
Signed-off-by: Erik Gilling <konkers@android.com>
Change-Id: I180bc0219485c96f3e24f0fa415fdaa488c56c8c
2010-10-06 16:28:54 -07:00
Erik Gilling
0cc38a4d73 video: tegra: enable both display controller clock when enabling hdmi
The upstream DC needs to be clocked for accesses to HDMI to not hard lock the
system.  Because we don't know if HDMI is conencted to disp1 or disp2 we need
to enable both until we set the DC mux.

Change-Id: Iab7df9911aa9034ea559896850787e4eff3237d7
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:28:53 -07:00
Erik Gilling
5dd86d80fd video: tegra: add a no_vsync module param to disable vsync
Change-Id: Icc950e1a94a7441dd820b774f8656b3db1be0e20
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:28:52 -07:00
Benoit Goby
3cea820b3c usb: gadget: fsl_udc: Use dma_alloc_coherent to allocate the status buffer
Change-Id: I7c17b7f8a8b89c6a687f6e2604542dabecc4cfa7
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:28:51 -07:00
Gary King
04ace134c9 [ARM] tegra: ventana: register tps6586x interrupts
configure the PMC interrupt polarity low, and register IRQ
numbers with the TPS6586X core and RTC

Change-Id: Iba08704bd1355ed00af3d9132118ce095c5118fe
Signed-off-by: Gary King <gking@nvidia.com>
2010-10-06 16:28:50 -07:00
Gary King
15e4e8998b rtc: tps6586x: add alarm support to tps6586x driver
Signed-off-by: Gary King <gking@nvidia.com>
2010-10-06 16:28:49 -07:00
Gary King
7ec6215759 mfd: tps6586x: add basic interrupt support
add support for enabling and disabling tps6586x subdevice interrupts

Signed-off-by: Gary King <gking@nvidia.com>
2010-10-06 16:28:49 -07:00
Erik Gilling
cd065982a8 video: tegra: set output color depth on init/resume
Signed-off-by: Erik Gilling <konkers@android.com>
Change-Id: If7e0af98910c68cc53227990ab2970a934e3867c
2010-10-06 16:28:48 -07:00
Todd Poynor
6bdd0cc0ef [ARM] Tegra: SPI: Suspend/resume.
Save/restore SLINK_COMMAND_0 register.

Wait for in-progress transactions to complete before suspend.

Reject and WARN_ON transactions when suspended.

Change-Id: I0527781f0bf95781afa3a35a68282cde2f0189ae
Signed-off-by: Todd Poynor <toddpoynor@google.com>
2010-10-06 16:28:47 -07:00
Colin Cross
0d2beae104 [ARM] twd: Always calibrate local timer
Change-Id: I075f883739d0eeea3b6b10da003119431cf3c2d2
Signed-off-by: Colin Cross <ccross@android.com>
2010-10-06 16:28:46 -07:00
Erik Gilling
97460a796b video: tegra: set border color to black on init
Change-Id: Ib8fe2722ab98b3d8a34edc2a26b6b5d4dd338973
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:28:45 -07:00
Erik Gilling
0c3d043251 video: tegra: force blend update on enable/disable not suspend/resume
Change-Id: I2d47d820311554b29db302ab9370574f2112cb51
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:28:44 -07:00
Colin Cross
0ac814f312 [ARM] twd: Fix updating control register in set_mode
Change-Id: I5096cc3fedf51024c332adbb846689e01e1f7ce0
Signed-off-by: Colin Cross <ccross@android.com>
2010-10-06 16:28:43 -07:00
Colin Cross
b0cb9f5dd0 mmc: host: sdhci-tegra: Add no hispd quirk
Change-Id: I3a4f1b8960a5cc71af31aeef8c5285c0cfefe145
Signed-off-by: Colin Cross <ccross@android.com>
2010-10-06 16:28:42 -07:00
Colin Cross
6f18d64316 mmc: host: sdhci: Prevent IRQ capability from being set if quirk is set
Change-Id: I18a622844a69ed00fee798786c28c75d10ba7c81
Signed-off-by: Colin Cross <ccross@android.com>
2010-10-06 16:28:41 -07:00
Iliyan Malchev
649033883b enable tegra_i2s_audio
Change-Id: I0b6bfba1f2084d5d05929c2066a49a6c7413c54a
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-06 16:28:41 -07:00
Dima Zavin
c5565e5628 ARM: tegra: powergate the mpe and 3d cores at boot
Change-Id: I6ca09db039cd80eab18d062a7a4b5d2a93bd385e
Signed-off-by: Dima Zavin <dima@android.com>
2010-10-06 16:28:40 -07:00
Colin Cross
1e6ba98f93 [ARM] twd: Fix prescaler getting cleared by set_mode
Change-Id: I98d4b02feeb9784591504c59a82058a58bbd038e
Signed-off-by: Colin Cross <ccross@android.com>
2010-10-06 16:28:39 -07:00
Iliyan Malchev
71f142dd09 [ARM] tegra: tegra_i2s_audio: add support for downsampling to 16kHz
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-06 16:28:38 -07:00
Benoit Goby
7b284e782b usb: host: Add power_off_on_bus_suspend option
If the device connected to a port has out-of-band wakeup
signaling, the phy and controller may be powered off on bus suspend.

Change-Id: Ia206f05d01160411b97aefa83045cd759d35b66d
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:28:37 -07:00
Benoit Goby
70cdef2fc2 [ARM] tegra: usb_phy: Reset the ulpi phy on power off
Put the ulpi phy in reset on power off to save power in lp0.

Change-Id: I7d7441c1029b170ff24da7274d8404b4bcf1d9e9
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:28:36 -07:00
Gary King
1ada8fb671 [ARM] tegra: ventana: add tps6586x rtc and pda_power devices
Change-Id: I1c851ab4982764b7f72d968d665d0c898fae25aa
Signed-off-by: Gary King <gking@nvidia.com>
2010-10-06 16:28:35 -07:00
Gary King
fd143bbab4 mfd: tps6586x: add RTC driver for TI TPS6586x
Change-Id: Ie22a19b662fda6365b1c514aaf83c9de12fabbd4
Signed-off-by: Gary King <gking@nvidia.com>
2010-10-06 16:28:34 -07:00
Antti Hatala
d546987a68 video: tegra: add z order blending, output position, and stride to overlays
Change-Id: I7439f60bfa3264bec9b1447fd970eef9e4c089d9
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:28:34 -07:00
Erik Gilling
58459da41c spi: tegra: fix error setting on timeout
avoids derefencing an uninitialized pointer

Change-Id: Icf528441ae481e9f6f5ddc0be32c7c217fa49701
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:28:33 -07:00
Erik Gilling
44347bbd8b video: tegra: correct typeo in HDMI parent clock setup
Change-Id: I7d1d1e8f0e627bc0b2d225af7dde29becc53f991
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:28:32 -07:00
Gary King
5318836ea0 [ARM] tegra: ventana: specify panjit reset GPIO
also delete the function which resets the touchscreen controller,
since that is now part of the panjit_touch driver _probe routine

Change-Id: I172b726978fde44cd98da391d233e31ecd9f7da2
Signed-off-by: Gary King <gking@nvidia.com>
2010-10-06 16:28:31 -07:00
Gary King
e4f8b6f6c1 input: touchscreen: panjit_i2c: fix suspend
the panjit touchscreen needs to be reset when returning from
deep sleep mode; add a platform data structure to specify
the reset GPIO.

perform the reset during _probe, since the code already needs
to exist for _resume

delete a bunch of unused preprocessor defines

Change-Id: I71ae65dec45710b0eab4625036edf75064d4cc2b
Signed-off-by: Gary King <gking@nvidia.com>
2010-10-06 16:28:30 -07:00
Gary King
a38f8a674c [ARM] tegra: add tegra_pwm to devices.c
Change-Id: I8d861fd9f7748f29879315cd6f0800cec6a84f9e
Signed-off-by: Gary King <gking@nvidia.com>
2010-10-06 16:28:29 -07:00
Gary King
e98e2b459a [ARM] tegra: add PWM driver
add support for the pulse-width-modulation APIs using the tegra 2
internal PWM controllers

Change-Id: If313301aaebab01f08edbe120060537e6917ea4b
Signed-off-by: Gary King <gking@nvidia.com>
2010-10-06 16:28:28 -07:00
Gary King
c45b3a9057 [ARM] tegra: ventana: fix pinmux for wifi
configure the drive pinmux for wifi and i2c, and configure
the tristate and pullups for the wifi pins correctly

Change-Id: I40cddea16aa66e3a286c7ccc93677d5459ae3717
Signed-off-by: Gary King <gking@nvidia.com>
2010-10-06 16:28:28 -07:00
Erik Gilling
d6f0cc113a video: tegra: add HDMI support
Previous implementation was DVI only

Change-Id: I6e7defb0cf73a1cf094e330715a2a302fd273589
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:28:27 -07:00
Erik Gilling
e8118b168b video: tegra: set output size for hdmi
Change-Id: I4737963d57e01be62c95076d22a26aaae45bfde1
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:28:26 -07:00
Erik Gilling
421593c720 [ARM] serial: update tegra_hsuart to use PTR_ERRless dma API
Change-Id: I071d99032995c878bc1d563cda56602f5410ab43
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:28:25 -07:00
Erik Gilling
a24d8369e6 [ARM] tegra: update i2s to use PTR_ERRless dma API
Change-Id: I4bfe6ef64688244ae1d6a380891c7d94e2e243e7
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:28:24 -07:00
Benoit Goby
b3661dcd2e [ARM] tegra: usb_phy: Add support for usb2 ulpi external phy
Change-Id: Ie2ed0d22abae1319996fe0a6caf28ec7d7e4313d
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:28:23 -07:00
Benoit Goby
cf99404c25 usb: gadget: Enable/disable the gadget device on vbus_session calls
If we use an OTG driver, the driver will detect VBUS changes and notify
the gadget driver through vbus_session. Enable/disable the gadget driver
in vbus session so that there is no need to check the OTG state on every
interrupt.

Change-Id: I617ad5742be2632b2257b71314db8f330be463d5
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:28:23 -07:00
Benoit Goby
c3b5093ac8 usb: host: OTG driver now adds/removes the ehci device based on ID pin status
There is no need anymore to check the OTG state on every interrupts and
use a work thread.

Moved the suspend code from usb_phy.c as this is ehci specific.

Change-Id: I523baab1476323a35360b1d802088370e42d0fd7
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:28:22 -07:00
Benoit Goby
6e9b65b7d1 usb: host: ehci-hub: Add port_reset_no_wait quirk
Tegra quirk: The PORT_RESET bit in PORTSC1 does not need to be cleared
and there is no need to wait for it to clear. The bit will automatically
change to 0 when the bus-reset sequence is done and an interrupt will be
generated.

Change-Id: I645417013af46785a249096ebc06a1f688228d94
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:28:21 -07:00
Benoit Goby
f9559ba01f [ARM] tegra: Compile usb_phy.c only if usb support is enabled
Change-Id: I190bab00533d065171ab2478363830c6d95e66cb
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:28:20 -07:00
Benoit Goby
12cfe15dd2 [ARM] tegra: usb_phy: Moved suspend/resume code to ehci driver
The suspend/resume methods should go to the ehci driver as they only
save/restore ehci registers.

Remove phy_init and initialize all phy registers in power_on as all the
registers need to be reinitialized after LP0.

Change-Id: I649d2cb66339aaff2d7db442a5441d2d3f06268b
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:28:19 -07:00
Colin Cross
57e1a9e292 serial: tegra_hsuart: Fix typo preventing non 8-bit modes
Change-Id: Ife085017dd7a956c46ad4077c5bbf33d5a049f3d
Signed-off-by: Colin Cross <ccross@android.com>
2010-10-06 16:28:18 -07:00
Todd Poynor
2a9a2f685a tegra: sdhci: Remove set_clock op, not needed
The SDHCI controller specifies a maximum SDCLK speed of 48MHz, which is
now in agreement with the platform clock, and so the SDHCI host max_clk
no longer needs to be overriden.

Change-Id: Ie8c7f643d956cfd1bb83675708336278482c40d8
Signed-off-by: Todd Poynor <toddpoynor@google.com>
2010-10-06 16:28:17 -07:00
Todd Poynor
4a4af7562a [ARM] tegra: clocks: Set all SDMMC clocks to 48MHz at boot
48MHz is the max speed reported by present-day Tegra2 SDHCI controllers
and is the max speed we can run without adjusting for DVFS changes.

Change-Id: I3f2c23ffdfc40aebe8211688077003f09f599f1a
Signed-off-by: Todd Poynor <toddpoynor@google.com>
2010-10-06 16:28:17 -07:00
Gary King
7e9bd8ff3f [ARM] tegra: add tegra_wdt_device to devices.c
Change-Id: I8098fa38ebef8636a6eeb1179e679201445e5237
Signed-off-by: Gary King <gking@nvidia.com>
2010-10-06 16:28:16 -07:00
Gary King
2b3a85e078 watchdog: add tegra_wdt driver
add a driver for the hardware watchdog timer embedded in NVIDIA
Tegra SoCs

Change-Id: I45bc829f26f350143d5a07e1f4ddc46d24f3a54c
Signed-off-by: Gary King <gking@nvidia.com>
2010-10-06 16:28:15 -07:00
Gary King
a2f0e22979 [ARM] tegra: ventana: do not tristate backlight & battery pins
Change-Id: I5f844fd58a379cb7191f03bb23599cd4061caf5c
Signed-off-by: Gary King <gking@nvidia.com>
2010-10-06 16:28:14 -07:00
Gary King
d66805a40c [ARM] tegra: ventana: fix suspend build break
update the suspend platform data for ventana to match recent changes

Change-Id: I142123027453ee34f80c094fb7cf1fcb464e889d
Signed-off-by: Gary King <gking@nvidia.com>
2010-10-06 16:28:13 -07:00
Gary King
2c7d591aa1 usb: host: ehci-hcd: add controller_resets_phy quirk
only reset the controller when doing so won't also reset the phy (Tegra quirk)

Change-Id: I549a18977d0d5ebfa12c32016aa9e6bffaa8643c
Signed-off-by: Gary King <gking@nvidia.com>
2010-10-06 16:28:12 -07:00