OLD | NEW |
1 /* | 1 /* |
2 * arch/arm/mach-tegra/board-harmony-sdhci.c | 2 * arch/arm/mach-tegra/board-harmony-sdhci.c |
3 * | 3 * |
4 * Copyright (C) 2010 Google, Inc. | 4 * Copyright (C) 2010 Google, Inc. |
5 * | 5 * |
6 * This software is licensed under the terms of the GNU General Public | 6 * This software is licensed under the terms of the GNU General Public |
7 * License version 2, as published by the Free Software Foundation, and | 7 * License version 2, as published by the Free Software Foundation, and |
8 * may be copied, distributed, and modified under those terms. | 8 * may be copied, distributed, and modified under those terms. |
9 * | 9 * |
10 * This program is distributed in the hope that it will be useful, | 10 * This program is distributed in the hope that it will be useful, |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 .start = TEGRA_SDMMC4_BASE, | 63 .start = TEGRA_SDMMC4_BASE, |
64 .end = TEGRA_SDMMC4_BASE + TEGRA_SDMMC4_SIZE-1, | 64 .end = TEGRA_SDMMC4_BASE + TEGRA_SDMMC4_SIZE-1, |
65 .flags = IORESOURCE_MEM, | 65 .flags = IORESOURCE_MEM, |
66 }, | 66 }, |
67 }; | 67 }; |
68 | 68 |
69 static struct tegra_sdhci_platform_data tegra_sdhci_platform_data0 = { | 69 static struct tegra_sdhci_platform_data tegra_sdhci_platform_data0 = { |
70 .cd_gpio = -1, | 70 .cd_gpio = -1, |
71 .wp_gpio = -1, | 71 .wp_gpio = -1, |
72 .power_gpio = -1, | 72 .power_gpio = -1, |
| 73 .pm_flags = MMC_PM_KEEP_POWER, |
73 }; | 74 }; |
74 | 75 |
75 static struct tegra_sdhci_platform_data tegra_sdhci_platform_data2 = { | 76 static struct tegra_sdhci_platform_data tegra_sdhci_platform_data2 = { |
76 .cd_gpio = TEGRA_GPIO_PI5, | 77 .cd_gpio = TEGRA_GPIO_PI5, |
77 .wp_gpio = TEGRA_GPIO_PH1, | 78 .wp_gpio = TEGRA_GPIO_PH1, |
78 .power_gpio = TEGRA_GPIO_PI6, | 79 .power_gpio = TEGRA_GPIO_PI6, |
79 }; | 80 }; |
80 | 81 |
81 static struct tegra_sdhci_platform_data tegra_sdhci_platform_data3 = { | 82 static struct tegra_sdhci_platform_data tegra_sdhci_platform_data3 = { |
82 .cd_gpio = -1, | 83 .cd_gpio = -1, |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 .platform_data = &tegra_sdhci_platform_data3, | 115 .platform_data = &tegra_sdhci_platform_data3, |
115 }, | 116 }, |
116 }; | 117 }; |
117 | 118 |
118 void __init seaboard_sdhci_init(void) | 119 void __init seaboard_sdhci_init(void) |
119 { | 120 { |
120 platform_device_register(&tegra_sdhci_device3); | 121 platform_device_register(&tegra_sdhci_device3); |
121 platform_device_register(&tegra_sdhci_device2); | 122 platform_device_register(&tegra_sdhci_device2); |
122 platform_device_register(&tegra_sdhci_device0); | 123 platform_device_register(&tegra_sdhci_device0); |
123 } | 124 } |
OLD | NEW |