aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
diff options
context:
space:
mode:
authorKishore Kadiyala <kishore.kadiyala@ti.com>2011-03-01 16:12:56 -0500
committerTony Lindgren <tony@atomide.com>2011-03-01 16:12:56 -0500
commit6ab8946f672497a55625d2106250d2923125fdfb (patch)
treeccf86208fb9cf4f33d243c51bc01a915d593dfd9 /arch/arm/mach-omap2/omap_hwmod_44xx_data.c
parent17203bdaf2fd0cda6ac941a7b3fb8416c57303c7 (diff)
OMAP: hwmod data: Add dev_attr and use in the host driver
Add a device attribute to hwmod data of omap2430, omap3, omap4. Currently the device attribute holds information regarding dual volt MMC card support by the controller which will be later passed to the host driver via platform data. Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com> Signed-off-by: Kishore Kadiyala <kishore.kadiyala@ti.com> Acked-by: Benoit Cousson<b-cousson@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap_hwmod_44xx_data.c')
-rw-r--r--arch/arm/mach-omap2/omap_hwmod_44xx_data.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
index 12fcd0a08207..9398c2db7258 100644
--- a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
@@ -25,6 +25,7 @@
25#include <plat/gpio.h> 25#include <plat/gpio.h>
26#include <plat/dma.h> 26#include <plat/dma.h>
27#include <plat/mcspi.h> 27#include <plat/mcspi.h>
28#include <plat/mmc.h>
28 29
29#include "omap_hwmod_common_data.h" 30#include "omap_hwmod_common_data.h"
30 31
@@ -3383,6 +3384,7 @@ static struct omap_hwmod_class omap44xx_mmc_hwmod_class = {
3383}; 3384};
3384 3385
3385/* mmc1 */ 3386/* mmc1 */
3387
3386static struct omap_hwmod_irq_info omap44xx_mmc1_irqs[] = { 3388static struct omap_hwmod_irq_info omap44xx_mmc1_irqs[] = {
3387 { .irq = 83 + OMAP44XX_IRQ_GIC_START }, 3389 { .irq = 83 + OMAP44XX_IRQ_GIC_START },
3388}; 3390};
@@ -3420,6 +3422,11 @@ static struct omap_hwmod_ocp_if *omap44xx_mmc1_slaves[] = {
3420 &omap44xx_l4_per__mmc1, 3422 &omap44xx_l4_per__mmc1,
3421}; 3423};
3422 3424
3425/* mmc1 dev_attr */
3426static struct omap_mmc_dev_attr mmc1_dev_attr = {
3427 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
3428};
3429
3423static struct omap_hwmod omap44xx_mmc1_hwmod = { 3430static struct omap_hwmod omap44xx_mmc1_hwmod = {
3424 .name = "mmc1", 3431 .name = "mmc1",
3425 .class = &omap44xx_mmc_hwmod_class, 3432 .class = &omap44xx_mmc_hwmod_class,
@@ -3433,6 +3440,7 @@ static struct omap_hwmod omap44xx_mmc1_hwmod = {
3433 .clkctrl_reg = OMAP4430_CM_L3INIT_MMC1_CLKCTRL, 3440 .clkctrl_reg = OMAP4430_CM_L3INIT_MMC1_CLKCTRL,
3434 }, 3441 },
3435 }, 3442 },
3443 .dev_attr = &mmc1_dev_attr,
3436 .slaves = omap44xx_mmc1_slaves, 3444 .slaves = omap44xx_mmc1_slaves,
3437 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc1_slaves), 3445 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc1_slaves),
3438 .masters = omap44xx_mmc1_masters, 3446 .masters = omap44xx_mmc1_masters,