ARM: tegra: tegratab: Update trim delay for eMMC DDR
David Yu [Thu, 16 May 2013 16:23:44 +0000 (01:23 +0900)]
Set trim delay of 0 for eMMC DDR mode on tegratab.

Bug 1156152
Bug 1289113

Change-Id: Ic153de218f9095e76873908696c4fdbdc4d69c31
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/229404
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

arch/arm/mach-tegra/board-tegratab-sdhci.c

index ca77f1b..ac5070d 100644 (file)
@@ -305,6 +305,9 @@ int __init tegratab_sdhci_init(void)
        tegra_get_board_info(&board_info);
        if (board_info.board_id == BOARD_P1640)
                tegra_sdhci_platform_data2.wp_gpio = -1;
+       if ((tegra_sdhci_platform_data3.uhs_mask & MMC_MASK_HS200)
+       && (!(tegra_sdhci_platform_data3.uhs_mask & MMC_UHS_MASK_DDR50)))
+               tegra_sdhci_platform_data3.trim_delay = 0;
        platform_device_register(&tegra_sdhci_device3);
        platform_device_register(&tegra_sdhci_device2);
        platform_device_register(&tegra_sdhci_device0);