arm: tegra: ahci/sata: Add SATA driver
authorYen Lin <yelin@nvidia.com>
Tue, 13 Mar 2012 00:07:58 +0000 (17:07 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 30 May 2012 11:53:50 +0000 (16:53 +0530)
commit84a62a3f984a8d468bbc3520f81defec04d86801
treeb1c548dd636f5dc38e76718d8d149d41f3d96923
parent24308b50362ddfa8068861b500411208c668befc
arm: tegra: ahci/sata: Add SATA driver

Upgrade the Tegra 3 SATA driver to support kernel 3.1.

The driver supports runtime_pm when doing power-gating during idle.

A new CONFIG_TEGRA_SATA_IDLE_POWERGATE is provided to enable/disable
power-gating during idle.

When sata clocks (sata, sata-oob and pll_e clocks) are in the
core_dvfs_table[] table, CONFIG_TEGRA_SATA_IDLE_POWERGATE must not
be enabled.

Currently, sata clocks are in the core_dvfs_table[]. Those clocks
will not be in that table in the future. By then,
CONFIG_TEGRA_SATA_IDLE_POWERGATE can then be enabled.

Change-Id: I15b585713bfd891f8827fd028b21bf3e5c2b80d9
Signed-off-by: Yen Lin <yelin@nvidia.com>
Reviewed-on: http://git-master/r/89614
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
drivers/ata/Kconfig
drivers/ata/Makefile
drivers/ata/ahci-tegra.c [new file with mode: 0644]