public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org>
To: "Munegowda, Keshava" <keshava_mgowda-l0cyMroinI0@public.gmane.org>
Cc: Ajay Kumar Gupta <ajay.gupta-l0cyMroinI0@public.gmane.org>,
	linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	balbi-l0cyMroinI0@public.gmane.org,
	tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org,
	Ravi Babu <ravibabu-l0cyMroinI0@public.gmane.org>,
	Benoit Cousson <b-cousson-l0cyMroinI0@public.gmane.org>
Subject: Re: [PATCH 1/6 v2] omap: musb: Adding hwmod data for ti81xx
Date: Thu, 8 Sep 2011 11:00:05 +0300	[thread overview]
Message-ID: <20110908080004.GD7707@legolas.emea.dhcp.ti.com> (raw)
In-Reply-To: <CAP05o4Lfas96izGGVQN0qkTRX_kwUncPWVX2d6+izh4YMuQ6dA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 5046 bytes --]

Hi,

On Thu, Sep 08, 2011 at 11:56:25AM +0530, Munegowda, Keshava wrote:
> On Wed, Sep 7, 2011 at 10:32 PM, Ajay Kumar Gupta <ajay.gupta-l0cyMroinI0@public.gmane.org> wrote:
> > From: Ravi Babu <ravibabu-l0cyMroinI0@public.gmane.org>
> >
> > The usb subsystem (usbss) in ti81xx has two musb interfaces. There are three
> > irqs and three address spaces for usbss, musb0 and musb1 respectively. Created
> > one hwmod with three irq and memory resources.
> >
> > Cc: Benoit Cousson <b-cousson-l0cyMroinI0@public.gmane.org>
> > Cc: Keshava Munegowda <keshava_mgowda-l0cyMroinI0@public.gmane.org>
> > Signed-off-by: Ajay Kumar Gupta <ajay.gupta-l0cyMroinI0@public.gmane.org>
> > Signed-off-by: Ravi Babu <ravibabu-l0cyMroinI0@public.gmane.org>
> > ---
> >  arch/arm/mach-omap2/omap_hwmod_81xx_data.c |   74 ++++++++++++++++++++++++++++
> >  1 files changed, 74 insertions(+), 0 deletions(-)
> >
> > diff --git a/arch/arm/mach-omap2/omap_hwmod_81xx_data.c b/arch/arm/mach-omap2/omap_hwmod_81xx_data.c
> > index e73a4c6..e960d70 100644
> > --- a/arch/arm/mach-omap2/omap_hwmod_81xx_data.c
> > +++ b/arch/arm/mach-omap2/omap_hwmod_81xx_data.c
> > @@ -194,6 +194,7 @@ static struct omap_hwmod ti81xx_timer4_hwmod;
> >  static struct omap_hwmod ti81xx_timer5_hwmod;
> >  static struct omap_hwmod ti81xx_timer6_hwmod;
> >  static struct omap_hwmod ti81xx_timer7_hwmod;
> > +static struct omap_hwmod ti81xx_usbss_hwmod;
> >
> >  /* L4 SLOW -> TIMER1 interface */
> >  static struct omap_hwmod_addr_space ti81xx_timer1_addr_space[] = {
> > @@ -650,6 +651,78 @@ static struct omap_hwmod ti81xx_timer7_hwmod = {
> >        .omap_chip      = OMAP_CHIP_INIT(CHIP_IS_TI816X | CHIP_IS_TI814X)
> >  };
> >
> > +/* L3 SLOW -> USBSS interface */
> > +static struct omap_hwmod_addr_space ti81xx_usbss_addr_space[] = {
> > +       {
> > +               .name           = "usbss",
> > +               .pa_start       = 0x47400000,
> > +               .pa_end         = 0x47400000 + SZ_4K - 1,
> > +               .flags          = ADDR_TYPE_RT
> > +       },
> > +       {
> > +               .name           = "musb0",
> > +               .pa_start       = 0x47401000,
> > +               .pa_end         = 0x47401000 + SZ_2K - 1,
> > +               .flags          = ADDR_TYPE_RT
> > +       },
> > +       {
> > +               .name           = "musb1",
> > +               .pa_start       = 0x47401800,
> > +               .pa_end         = 0x47401800 + SZ_2K - 1,
> > +               .flags          = ADDR_TYPE_RT
> > +       },
> > +       {
> > +       },
> > +};
> > +
> > +static struct omap_hwmod_class_sysconfig ti81xx_usbhsotg_sysc = {
> > +       .rev_offs       = 0x0,
> > +       .sysc_offs      = 0x10,
> > +       .sysc_flags     = (SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
> > +       .idlemodes      = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
> > +       .sysc_fields    = &omap_hwmod_sysc_type2,
> > +};
> > +
> > +static struct omap_hwmod_class ti81xx_usbotg_class = {
> > +       .name = "usbotg",
> > +       .sysc = &ti81xx_usbhsotg_sysc,
> > +};
> > +
> > +static struct omap_hwmod_irq_info ti81xx_usbss_mpu_irqs[] = {
> > +       { .name = "usbss-irq", .irq = 17, },
> > +       { .name = "musb0-irq", .irq = 18, },
> > +       { .name = "musb1-irq", .irq = 19, },
> > +       { .irq = -1, },
> > +};
> > +
> > +static struct omap_hwmod_ocp_if ti81xx_l3_slow__usbss = {
> > +       .master         = &ti81xx_l3_slow_hwmod,
> > +       .slave          = &ti81xx_usbss_hwmod,
> > +       .clk            = "usbotg_ick",
> > +       .addr           = ti81xx_usbss_addr_space,
> > +       .user           = OCP_USER_MPU,
> > +       .flags          = OCPIF_SWSUP_IDLE,
> > +};
> > +
> > +static struct omap_hwmod_ocp_if *ti81xx_usbss_slaves[] = {
> > +       &ti81xx_l3_slow__usbss,
> > +};
> > +
> > +static struct omap_hwmod ti81xx_usbss_hwmod = {
> > +       .name           = "usb_otg_hs",
> > +       .mpu_irqs       = ti81xx_usbss_mpu_irqs,
> > +       .main_clk       = "usbotg_ick",
> > +       .clkdm_name     = "default_usb_clkdm",
> > +       .prcm           = {
> > +               .omap4 = {
> > +                       .clkctrl_offs = TI816X_CM_DEFAULT_USB_CLKCTRL_OFFSET,
> > +               },
> > +       },
> > +       .slaves         = ti81xx_usbss_slaves,
> > +       .slaves_cnt     = ARRAY_SIZE(ti81xx_usbss_slaves),
> > +       .class          = &ti81xx_usbotg_class,
> > +       .omap_chip      = OMAP_CHIP_INIT(CHIP_IS_TI816X | CHIP_IS_TI814X)
> > +};
> >
> >  static __initdata struct omap_hwmod *ti81xx_hwmods[] = {
> >        &ti81xx_l3_fast_hwmod,
> > @@ -668,6 +741,7 @@ static __initdata struct omap_hwmod *ti81xx_hwmods[] = {
> >        &ti81xx_timer5_hwmod,
> >        &ti81xx_timer6_hwmod,
> >        &ti81xx_timer7_hwmod,
> > +       &ti81xx_usbss_hwmod,
> >        NULL,
> >  };
> >
> > --
> > 1.6.2.4
> 
> looks good to me.

how about you reply with your Acked-by then ?

-- 
balbi

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

  parent reply	other threads:[~2011-09-08  8:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-07 17:02 [PATCH 0/6 v2] usb: musb: Adding support for ti81xx Ajay Kumar Gupta
2011-09-07 17:02 ` [PATCH 3/6 v2] omap: musb: ti81xx: Add phy power function Ajay Kumar Gupta
2011-09-08 10:45   ` Sergei Shtylyov
     [not found]     ` <4E689CCD.2050708-hkdhdckH98+B+jHODAdFcQ@public.gmane.org>
2011-09-08 10:53       ` Gupta, Ajay Kumar
2011-09-07 17:02 ` [PATCH 4/6 v2] ti816evm: Add support for musb interface Ajay Kumar Gupta
2011-09-07 17:02 ` [PATCH 5/6 v2] ti814evm: " Ajay Kumar Gupta
     [not found] ` <1315414945-19829-1-git-send-email-ajay.gupta-l0cyMroinI0@public.gmane.org>
2011-09-07 17:02   ` [PATCH 1/6 v2] omap: musb: Adding hwmod data for ti81xx Ajay Kumar Gupta
2011-09-08  6:26     ` Munegowda, Keshava
     [not found]       ` <CAP05o4Lfas96izGGVQN0qkTRX_kwUncPWVX2d6+izh4YMuQ6dA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-09-08  8:00         ` Felipe Balbi [this message]
     [not found]           ` <20110908080004.GD7707-UiBtZHVXSwEVvW8u9ZQWYwjfymiNCTlR@public.gmane.org>
2011-09-08  8:47             ` Munegowda, Keshava
2011-09-08 11:06               ` Gupta, Ajay Kumar
2011-09-07 17:02   ` [PATCH 2/6 v2] omap: musb: Adding support " Ajay Kumar Gupta
2011-09-07 17:02   ` [PATCH 6/6 v2] usb: musb: Add support for ti81xx platform Ajay Kumar Gupta
     [not found]     ` <1315414945-19829-7-git-send-email-ajay.gupta-l0cyMroinI0@public.gmane.org>
2011-09-07 19:14       ` Felipe Balbi
2011-09-08 12:03         ` Gupta, Ajay Kumar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110908080004.GD7707@legolas.emea.dhcp.ti.com \
    --to=balbi-l0cymroini0@public.gmane.org \
    --cc=ajay.gupta-l0cyMroinI0@public.gmane.org \
    --cc=b-cousson-l0cyMroinI0@public.gmane.org \
    --cc=keshava_mgowda-l0cyMroinI0@public.gmane.org \
    --cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=ravibabu-l0cyMroinI0@public.gmane.org \
    --cc=tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox