mmc: tegra: Enable SDR104 and SDR50 support
Pavan Kunapuli [Fri, 27 Jan 2012 11:01:20 +0000 (16:01 +0530)]
Enable SDR104 and SDR50 support for Tegra3.

Bug 920089
Bug 913598
Reviewed-on: http://git-master/r/75248

Change-Id: Ib7e7d15f1a42a14bb1ecb3e0f25934309ec43534
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78022
Reviewed-by: Automatic_Commit_Validation_User

drivers/mmc/host/sdhci-tegra.c

index 5b6b2dd..39a8dd0 100644 (file)
@@ -1,6 +1,8 @@
 /*
  * Copyright (C) 2010 Google, Inc.
  *
+ * Copyright (c) 2012, NVIDIA CORPORATION.  All rights reserved.
+ *
  * This software is licensed under the terms of the GNU General Public
  * License version 2, as published by the Free Software Foundation, and
  * may be copied, distributed, and modified under those terms.
@@ -37,7 +39,9 @@
 #define SDHCI_VENDOR_CLOCK_CNTRL_TAP_VALUE_SHIFT       16
 
 #define SDHCI_VENDOR_MISC_CNTRL                0x120
-#define SDHCI_VENDOR_MISC_CNTRL_SDMMC_SPARE0_ENABLE_SD_3_0     0x20
+#define SDHCI_VENDOR_MISC_CNTRL_ENABLE_SDR104_SUPPORT  0x8
+#define SDHCI_VENDOR_MISC_CNTRL_ENABLE_SDR50_SUPPORT   0x10
+#define SDHCI_VENDOR_MISC_CNTRL_ENABLE_SD_3_0  0x20
 
 #define SDMMC_AUTO_CAL_CONFIG  0x1E4
 #define SDMMC_AUTO_CAL_CONFIG_AUTO_CAL_ENABLE  0x20000000
@@ -183,7 +187,9 @@ static void tegra3_sdhci_post_reset_init(struct sdhci_host *sdhci)
 
        /* Enable SDHOST v3.0 support */
        misc_ctrl = sdhci_readw(sdhci, SDHCI_VENDOR_MISC_CNTRL);
-       misc_ctrl |= SDHCI_VENDOR_MISC_CNTRL_SDMMC_SPARE0_ENABLE_SD_3_0;
+       misc_ctrl |= SDHCI_VENDOR_MISC_CNTRL_ENABLE_SD_3_0 |
+               SDHCI_VENDOR_MISC_CNTRL_ENABLE_SDR104_SUPPORT |
+               SDHCI_VENDOR_MISC_CNTRL_ENABLE_SDR50_SUPPORT;
        sdhci_writew(sdhci, misc_ctrl, SDHCI_VENDOR_MISC_CNTRL);
 }