Commit Graph

95053 Commits

Author SHA1 Message Date
Dmitry Shmidt
0142744b9a mmc: sdhci: Fix 4-bit wide support capability
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-10-07 10:55:04 -07:00
Iliyan Malchev
5c4a97667f [ARM] tegra: hdmi: fix an incorrect register write
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-06 16:29:15 -07:00
Iliyan Malchev
9604223246 [ARM] tegra: tegra_hsuart: fix a typo
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-06 16:29:14 -07:00
Gary King
33264d0f2c tegrafb: fix section mismatch in host driver skeleton
Change-Id: I2cf4646c8e362f591e8f1e5d6c0573fd7aee4365
Signed-off-by: Gary King <gking@nvidia.com>
2010-10-06 16:29:05 -07:00
Gary King
e91ad7bcf4 touchscreen: panjit: use multi-touch reporting interface
Change-Id: I2bcad8cd07725e36598545168f33b87b9f217c11
Signed-off-by: Gary King <gking@nvidia.com>
2010-10-06 16:29:02 -07:00
Gary King
e9ba19bc3f usb: add OTG driver for tegra USB PHY
Change-Id: I23be62e819b658c0e25f70eebfbb8dc0dc76c173
Signed-off-by: Gary King <gking@nvidia.com>
2010-10-06 16:28:59 -07:00
Benoit Goby
4929bfebc7 usb: gadget: fsl_udc: Removed unnecessary checks
The OTG driver disables the gadget device when the cable is
removed, so there is no need to check if the cable is plugged
before touching registers.

Change-Id: I0b1a3a8b07560d3eca2e2e25574b5219e3373808
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:28:58 -07:00
Benoit Goby
2973ae6586 usb: gadget: fsl_udc: Unlock the spinlock before calling clk_enable
On suspend, dr_controller_stop disable interrupts and on resume, interrupts
are disabled until dr_controller_run is called, so it is safe to call
fsl_udc_clk_suspend/resume with interrupts and the spinlock unlocked.

Change-Id: I33618295ea096a4bfd796d1a07dfc9722e7786b0
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:28:57 -07:00
Benoit Goby
e6483a8c8e usb: gadget: fsl_udc: fix warning
Change-Id: I2123ac05aafe3f89db3c17dbcb16b44ca6222ce2
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:28:56 -07:00
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
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
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
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
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
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
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
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
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
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
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
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
Gary King
dcc9fcc567 panjit_touch: fix warning "control reaches end of non-void function"
Change-Id: I3a43dc58edff3687e294c2d2a09d1f6e06e27fce
Signed-off-by: Gary King <gking@nvidia.com>
2010-10-06 16:28:12 -07:00
Gary King
fbf56d14a0 input: touchscreen driver for panjit capacitive i2c touch panels
driver supports the MGG1010AI06 and EGG1010AI06 capacitive touch panels

Change-Id: I038030bf4c9acbd0d3d504427a32f4e46632c115
Signed-off-by: Gary King <gking@nvidia.com>
2010-10-06 16:28:11 -07:00
Olof Johansson
1c119f2c16 mmc: fix non-arm build due to eMMC 4.3+ change
drivers/mmc/core/mmc.c:228: error: ‘SZ_256K’ undeclared (first use in this function)

Introduced by:
    mmc: subtract boot sectors from disk size for eMMC 4.3+ devices

(SZ_* doesn't exist on anything but arm)

Change-Id: I981217adea4ef56bf870562b6711488f3f4bf830
Signed-off-by: Olof Johansson <olof@lixom.net>
2010-10-06 16:28:10 -07:00
Jay Cheng
03b85005e5 serial: tegra_hsuart: fix receive DMA, RTS, timeout, and tx trigger
initialize baud rate and configuration settings to safe default values
when receive DMA is in use, so that the DMA request may be enqueued at
initialization time

re-enqueue the receive DMA buffer immediately it is dequeued by the
DMA threshold callback and the receive ISR, rather than waiting for the
DMA complete callback

originally fixed by Gary King <gking@nvidia.com>

Fixing tx trigger level setting:

On tegra uart, the FCR setting for different tx trigger level
is not same as the 16550 tx trigger level setting. The tegra
uart have the setting in reverse direction on tx fifo attention
level:
b00 for 16 bytes attention level.
b01 for 8 byte attention level.
b10 for 4 byte attention level
b11 for 1 byte attention level.

The rx trigger attention level match with the standard uart
FCR register setttings.

Also fixing the typo in code when setting DTR.
originally fixed by Laxman Dewangan (ldewangan@nvidia.com)

Change-Id: Iea00478f143e61c604828035c6c92d614fa7cccb
Signed-off-by: Jay Cheng <jacheng@nvidia.com>
2010-10-06 16:28:09 -07:00
Colin Cross
40ac8c757b serial: tegra_hsuart: Fix void return type on writel accessors
Signed-off-by: Colin Cross <ccross@google.com>
2010-10-06 16:28:08 -07:00
Gary King
3c8d2022b6 serial: tegra_hsuart: fix section mismatch error
Change-Id: Ib4c1872c691a98f11bc7c8553df41bec93f64285
Signed-off-by: Gary King <gking@nvidia.com>
2010-10-06 16:28:07 -07:00
Colin Cross
333c9f1ef0 serial: tegra_hsuart: Cleanups and bug fixes
tegra_start_tx was called directly by the serial core, as
well as from dma and serial interrupts to queue the next
block of data.  Separate out the "queue next data"
functionality into tegra_start_next_tx.

Also fixes TX PIO by adjusting FIFO sizes and prevents
last characters from getting lost by spinning on TEMT
before disabling clocks.

Change-Id: If8ce15490f77dcbde48f1e64959d5c3f0ec35120
Signed-off-by: Colin Cross <ccross@android.com>
2010-10-06 16:28:06 -07:00
Colin Cross
816d63e397 serial: tegra_hsuart: Fix DMA receive, drop err in dma callbacks
Change-Id: I4c4bc12e8c883912f8979b75a8eb418a62e77f94
Signed-off-by: Colin Cross <ccross@android.com>
2010-10-06 16:28:06 -07:00
Colin Cross
3fafe51166 serial: Add tegra_hsuart driver
Change-Id: Ic2d0a43ac3597c8a270758af6ea3090acdd0fe7f
Signed-off-by: Colin Cross <ccross@android.com>
2010-10-06 16:28:05 -07:00
Dmitry Shmidt
1e1278227f mmc: sdhci-tegra: Always call sdhci suspend/resume functions
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-10-06 16:28:04 -07:00
Dmitry Shmidt
da2d1c69d6 mmc: sdhci: Skip mmc suspend/resume ops for SDIO device,
enable/disable sdc irq instead of request/free,
mask all sdc interrupts on suspend

Change-Id: I3fb137363c6e639882b796aff8b80784c5256a71
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-10-06 16:28:03 -07:00
Gary King
2cdc235bbe mmc: subtract boot sectors from disk size for eMMC 4.3+ devices
the csd sector count reported by eMMC 4.3+ cards includes the boot
partition size; subtract this from the size reported to the disk
since the boot partition is inaccessible

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