diff options
author | venkatajagadish <vjagadish@nvidia.com> | 2013-07-25 11:35:13 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 13:39:59 -0700 |
commit | 780355891f614bb0d7e9686af1587509cbd3a630 (patch) | |
tree | d24fe600c3217ee69bbc60f731d5146941d5d262 /arch/arm/mach-tegra/devices.c | |
parent | a5100c926d19e0fa20bdfbaf049bf91d5f3392fa (diff) |
ARM: tegra: t124: add SATA support
Register sata device for tegra 124 boards
Bug 1246727
Bug 1249588
Change-Id: I07c2b035171bfcebe888412e29edef65d92acd23
Signed-off-by: venkatajagadish <vjagadish@nvidia.com>
Reviewed-on: http://git-master/r/253236
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/devices.c')
-rw-r--r-- | arch/arm/mach-tegra/devices.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/arch/arm/mach-tegra/devices.c b/arch/arm/mach-tegra/devices.c index 71a2cfdac0c1..6f9f38955f86 100644 --- a/arch/arm/mach-tegra/devices.c +++ b/arch/arm/mach-tegra/devices.c @@ -26,6 +26,7 @@ #include <linux/i2c-tegra.h> #include <linux/mipi-bif-tegra.h> #include <linux/platform_data/tegra_usb.h> +#include <linux/platform_data/tegra_ahci.h> #include <linux/tegra_avp.h> #include <linux/nvhost.h> #include <linux/clk.h> @@ -1943,7 +1944,12 @@ struct platform_device tegra_otg_device = { }; #ifdef CONFIG_SATA_AHCI_TEGRA -static u64 tegra_sata_dma_mask = DMA_BIT_MASK(32); +static u64 tegra_sata_dma_mask = DMA_BIT_MASK(64); + +static struct tegra_ahci_platform_data tegra_ahci_platform_data0 = { + .gen2_rx_eq = -1, + .pexp_gpio = PMU_TCA6416_GPIO(9), +}; static struct resource tegra_sata_resources[] = { [0] = { @@ -1967,8 +1973,8 @@ struct platform_device tegra_sata_device = { .name = "tegra-sata", .id = 0, .dev = { - .platform_data = 0, - .coherent_dma_mask = DMA_BIT_MASK(32), + .platform_data = &tegra_ahci_platform_data0, + .coherent_dma_mask = DMA_BIT_MASK(64), .dma_mask = &tegra_sata_dma_mask, }, .resource = tegra_sata_resources, |