All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 3/4] mxs: rename regs-clkctrl.h to regs-clkctrl-mx28.h
Date: Tue, 14 Aug 2012 14:32:26 +0200	[thread overview]
Message-ID: <201208141432.26997.marex@denx.de> (raw)
In-Reply-To: <502A0CE0.9030500@denx.de>

Dear Stefano Babic,

> On 13/08/2012 21:53, Otavio Salvador wrote:
> > The CLKCTRL registers are SoC specific so we ought to have it clear on
> > filename.
> > 
> > Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
> > ---
> > Changes in v2:
> > - no changes
> 
> Hi Otavio,
> 
> >  arch/arm/include/asm/arch-mxs/imx-regs.h                             |  
> >   2 +- .../arm/include/asm/arch-mxs/{regs-clkctrl.h =>
> >  regs-clkctrl-mx28.h} |    0 drivers/usb/host/ehci-mxs.c                
> >                           |    2 +- 3 files changed, 2 insertions(+), 2
> >  deletions(-)
> >  rename arch/arm/include/asm/arch-mxs/{regs-clkctrl.h =>
> >  regs-clkctrl-mx28.h} (100%)
> > 
> > diff --git a/arch/arm/include/asm/arch-mxs/imx-regs.h
> > b/arch/arm/include/asm/arch-mxs/imx-regs.h index 37d0a93..5e1901e 100644
> > --- a/arch/arm/include/asm/arch-mxs/imx-regs.h
> > +++ b/arch/arm/include/asm/arch-mxs/imx-regs.h
> > @@ -26,7 +26,7 @@
> > 
> >  #include <asm/arch/regs-apbh.h>
> >  #include <asm/arch/regs-base.h>
> >  #include <asm/arch/regs-bch.h>
> > 
> > -#include <asm/arch/regs-clkctrl.h>
> > +#include <asm/arch/regs-clkctrl-mx28.h>
> > 
> >  #include <asm/arch/regs-digctl.h>
> >  #include <asm/arch/regs-gpmi.h>
> >  #include <asm/arch/regs-i2c.h>
> > 
> > diff --git a/arch/arm/include/asm/arch-mxs/regs-clkctrl.h
> > b/arch/arm/include/asm/arch-mxs/regs-clkctrl-mx28.h similarity index
> > 100%
> > rename from arch/arm/include/asm/arch-mxs/regs-clkctrl.h
> > rename to arch/arm/include/asm/arch-mxs/regs-clkctrl-mx28.h
> > diff --git a/drivers/usb/host/ehci-mxs.c b/drivers/usb/host/ehci-mxs.c
> > index e263747..6e21669 100644
> > --- a/drivers/usb/host/ehci-mxs.c
> > +++ b/drivers/usb/host/ehci-mxs.c
> > @@ -23,7 +23,7 @@
> > 
> >  #include <asm/io.h>
> >  #include <asm/arch/regs-common.h>
> >  #include <asm/arch/regs-base.h>
> > 
> > -#include <asm/arch/regs-clkctrl.h>
> > +#include <asm/arch/regs-clkctrl-mx28.h>
> > 
> >  #include <asm/arch/regs-usb.h>
> >  #include <asm/arch/regs-usbphy.h>
> 
> Well, this is not clear - maybe because I do not know your plan. I
> suppose that general header, that is imx-regs.h, and drivers such as
> ehci-mxs should not include SOC specific headers, so that they can be
> used with both SOCs. The indirection should be done in a deeper level.
> 
> Both includes currently headers referred to the specific function (gpmi,
> bch, base, ...), not to a specific SOC. Then I am expecting that inside
> regs-clkctrl.h (or another header) there are details for both SOCs, or
> if you want to split they completely, regs-clkctrl.h is something like
> 
> regs-clkctrl.h:
> 
> #ifdef MX28
> include <asm/arch/regs-clkctrl-mx28.h>
> #else #ifdef MX23
> include <asm/arch/regs-clkctrl-mx23.h>
> ....

The other header isn't present yet tho

> Best regards,
> Stefano Babic

Best regards,
Marek Vasut

  parent reply	other threads:[~2012-08-14 12:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-13 19:53 [U-Boot] [PATCH v2 1/4] mxs: Remove not required explicit iomux-mx28.h include Otavio Salvador
2012-08-13 19:53 ` [U-Boot] [PATCH v2 2/4] mxs: Remove not required include of iomux-mx28.h Otavio Salvador
2012-08-13 19:53 ` [U-Boot] [PATCH v2 3/4] mxs: rename regs-clkctrl.h to regs-clkctrl-mx28.h Otavio Salvador
2012-08-14  8:31   ` Stefano Babic
2012-08-14 12:31     ` Otavio Salvador
2012-08-14 12:53       ` Stefano Babic
2012-08-14 13:44         ` Otavio Salvador
2012-08-14 12:32     ` Marek Vasut [this message]
2012-08-13 19:53 ` [U-Boot] [PATCH v2 4/4] mxs: Convert sys_proto.h prefixes to 'mxs' Otavio Salvador
2012-08-13 20:05 ` [U-Boot] [PATCH v2 1/4] mxs: Remove not required explicit iomux-mx28.h include Marek Vasut
2012-08-15  7:08 ` Stefano Babic

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=201208141432.26997.marex@denx.de \
    --to=marex@denx.de \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.