aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKishon Vijay Abraham I <kishon@ti.com>2012-10-27 09:35:55 -0400
committerTony Lindgren <tony@atomide.com>2012-11-07 13:10:05 -0500
commit637874ddb94a78e07ca8ce76ca500c62c4583535 (patch)
tree4e23c4e9b1dca2d871ead245ce04fc8c4aecc254
parent0133370f93eae5ed3c0f16d9da2b7add7dda6076 (diff)
ARM: OMAP4: add _dev_attr_ to ocp2scp for representing usb_phy
In order to reflect devices(usb_phy) attached to ocp2scp bus, ocp2scp is assigned a device attribute to represent the attached devices. This is needed to fix MUSB regression caused by commit c9e4412a (arm: omap: phy: remove unused functions from omap-phy-internal.c) Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Cc: Benoit Cousson <b-cousson@ti.com> [tony@atomide.com: updated comments for regression info] Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r--arch/arm/mach-omap2/omap_hwmod_44xx_data.c28
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 */
2686static 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
2703static 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 */
2685static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod = { 2712static 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/*