OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2010 The Chromium OS Authors <chromium-os-dev@chromium.org> | 2 * Copyright (C) 2010 The Chromium OS Authors <chromium-os-dev@chromium.org> |
3 * | 3 * |
4 * This software is licensed under the terms of the GNU General Public | 4 * This software is licensed under the terms of the GNU General Public |
5 * License version 2, as published by the Free Software Foundation, and | 5 * License version 2, as published by the Free Software Foundation, and |
6 * may be copied, distributed, and modified under those terms. | 6 * may be copied, distributed, and modified under those terms. |
7 * | 7 * |
8 * This program is distributed in the hope that it will be useful, | 8 * This program is distributed in the hope that it will be useful, |
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
177 | 177 |
178 clk = clk_get(mmc_dev(host->mmc), NULL); | 178 clk = clk_get(mmc_dev(host->mmc), NULL); |
179 if (IS_ERR(clk)) { | 179 if (IS_ERR(clk)) { |
180 dev_err(mmc_dev(host->mmc), "clk err\n"); | 180 dev_err(mmc_dev(host->mmc), "clk err\n"); |
181 rc = PTR_ERR(clk); | 181 rc = PTR_ERR(clk); |
182 goto out_wp; | 182 goto out_wp; |
183 } | 183 } |
184 clk_enable(clk); | 184 clk_enable(clk); |
185 pltfm_host->clk = clk; | 185 pltfm_host->clk = clk; |
186 | 186 |
187 if (plat->pm_flags) | |
Olof Johansson
2011/03/08 02:36:21
Does this have to be conditional?
| |
188 host->mmc->pm_caps = plat->pm_flags; | |
189 | |
187 if (plat->is_8bit) | 190 if (plat->is_8bit) |
188 host->mmc->caps |= MMC_CAP_8_BIT_DATA; | 191 host->mmc->caps |= MMC_CAP_8_BIT_DATA; |
189 | 192 |
190 return 0; | 193 return 0; |
191 | 194 |
192 out_wp: | 195 out_wp: |
193 if (gpio_is_valid(plat->wp_gpio)) { | 196 if (gpio_is_valid(plat->wp_gpio)) { |
194 tegra_gpio_disable(plat->wp_gpio); | 197 tegra_gpio_disable(plat->wp_gpio); |
195 gpio_free(plat->wp_gpio); | 198 gpio_free(plat->wp_gpio); |
196 } | 199 } |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
248 | 251 |
249 struct sdhci_pltfm_data sdhci_tegra_pdata = { | 252 struct sdhci_pltfm_data sdhci_tegra_pdata = { |
250 .quirks = SDHCI_QUIRK_BROKEN_TIMEOUT_VAL | | 253 .quirks = SDHCI_QUIRK_BROKEN_TIMEOUT_VAL | |
251 SDHCI_QUIRK_SINGLE_POWER_WRITE | | 254 SDHCI_QUIRK_SINGLE_POWER_WRITE | |
252 SDHCI_QUIRK_NO_HISPD_BIT | | 255 SDHCI_QUIRK_NO_HISPD_BIT | |
253 SDHCI_QUIRK_BROKEN_ADMA_ZEROLEN_DESC, | 256 SDHCI_QUIRK_BROKEN_ADMA_ZEROLEN_DESC, |
254 .ops = &tegra_sdhci_ops, | 257 .ops = &tegra_sdhci_ops, |
255 .init = tegra_sdhci_pltfm_init, | 258 .init = tegra_sdhci_pltfm_init, |
256 .exit = tegra_sdhci_pltfm_exit, | 259 .exit = tegra_sdhci_pltfm_exit, |
257 }; | 260 }; |
OLD | NEW |