diff options
| -rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 28 |
1 files changed, 28 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 652d0285bd6d..cf579b55571b 100644 --- a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c | |||
| @@ -21,6 +21,7 @@ | |||
| 21 | #include <linux/io.h> | 21 | #include <linux/io.h> |
| 22 | #include <linux/platform_data/gpio-omap.h> | 22 | #include <linux/platform_data/gpio-omap.h> |
| 23 | #include <linux/power/smartreflex.h> | 23 | #include <linux/power/smartreflex.h> |
| 24 | #include <linux/platform_data/omap_ocp2scp.h> | ||
| 24 | 25 | ||
| 25 | #include <plat/omap_hwmod.h> | 26 | #include <plat/omap_hwmod.h> |
| 26 | #include <plat/i2c.h> | 27 | #include <plat/i2c.h> |
| @@ -2681,6 +2682,32 @@ static struct omap_hwmod_class omap44xx_ocp2scp_hwmod_class = { | |||
| 2681 | .sysc = &omap44xx_ocp2scp_sysc, | 2682 | .sysc = &omap44xx_ocp2scp_sysc, |
| 2682 | }; | 2683 | }; |
| 2683 | 2684 | ||
| 2685 | /* ocp2scp dev_attr */ | ||
| 2686 | static struct resource omap44xx_usb_phy_and_pll_addrs[] = { | ||
| 2687 | { | ||
| 2688 | .name = "usb_phy", | ||
| 2689 | .start = 0x4a0ad080, | ||
| 2690 | .end = 0x4a0ae000, | ||
| 2691 | .flags = IORESOURCE_MEM, | ||
| 2692 | }, | ||
| 2693 | { | ||
| 2694 | /* XXX: Remove this once control module driver is in place */ | ||
| 2695 | .name = "ctrl_dev", | ||
| 2696 | .start = 0x4a002300, | ||
| 2697 | .end = 0x4a002303, | ||
| 2698 | .flags = IORESOURCE_MEM, | ||
| 2699 | }, | ||
| 2700 | { } | ||
| 2701 | }; | ||
| 2702 | |||
| 2703 | static struct omap_ocp2scp_dev ocp2scp_dev_attr[] = { | ||
| 2704 | { | ||
| 2705 | .drv_name = "omap-usb2", | ||
| 2706 | .res = omap44xx_usb_phy_and_pll_addrs, | ||
| 2707 | }, | ||
| 2708 | { } | ||
| 2709 | }; | ||
| 2710 | |||
| 2684 | /* ocp2scp_usb_phy */ | 2711 | /* ocp2scp_usb_phy */ |
| 2685 | static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod = { | 2712 | static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod = { |
| 2686 | .name = "ocp2scp_usb_phy", | 2713 | .name = "ocp2scp_usb_phy", |
| @@ -2694,6 +2721,7 @@ static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod = { | |||
| 2694 | .modulemode = MODULEMODE_HWCTRL, | 2721 | .modulemode = MODULEMODE_HWCTRL, |
| 2695 | }, | 2722 | }, |
| 2696 | }, | 2723 | }, |
| 2724 | .dev_attr = ocp2scp_dev_attr, | ||
| 2697 | }; | 2725 | }; |
| 2698 | 2726 | ||
| 2699 | /* | 2727 | /* |
