From: Sascha Hauer <s.hauer@pengutronix.de>
To: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 1/7] ARM: add initial i.MX6 support
Date: Sat, 14 Apr 2012 15:19:35 +0200 [thread overview]
Message-ID: <20120414131935.GW3852@pengutronix.de> (raw)
In-Reply-To: <20120414114127.GF2074@game.jcrosoft.org>
On Sat, Apr 14, 2012 at 01:41:27PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 15:54 Fri 13 Apr , Sascha Hauer wrote:
> > +
> > + /* enable all clocks */
> > + writel(0xffffffff, 0x020c4068);
> > + writel(0xffffffff, 0x020c406c);
> > + writel(0xffffffff, 0x020c4070);
> > + writel(0xffffffff, 0x020c4074);
> > + writel(0xffffffff, 0x020c4078);
> > + writel(0xffffffff, 0x020c407c);
> > + writel(0xffffffff, 0x020c4080);
> > +}
> for a tablette or a mobile point of view if we be better to enable the needed
> only
These systems usually do not spend much time in the bootloader.
> > +#define MXC_CCM_CCGR7_CG11_OFFSET 22
> > +#define MXC_CCM_CCGR7_CG11_MASK (0x3 << 22)
> > +#define MXC_CCM_CCGR7_CG10_OFFSET 20
> > +#define MXC_CCM_CCGR7_CG10_MASK (0x3 << 20)
> > +#define MXC_CCM_CCGR7_CG9_OFFSET 18
> > +#define MXC_CCM_CCGR7_CG9_MASK (0x3 << 18)
> > +#define MXC_CCM_CCGR7_CG8_OFFSET 16
> > +#define MXC_CCM_CCGR7_CG8_MASK (0x3 << 16)
> > +#define MXC_CCM_CCGR7_CG7_OFFSET 14
> > +#define MXC_CCM_CCGR7_CG7_MASK (0x3 << 14)
> > +#define MXC_CCM_CCGR7_CG6_OFFSET 12
> > +#define MXC_CCM_CCGR7_CG6_MASK (0x3 << 12)
> you can not use the offset for the mask?
I don't need defines for the gate bits anyway, so I'll just remove them.
For the other defines I'm happy that I have one grep less to get from
the place where they are used to the actual bit value.
Once the clock framework is settled in the Kernel I want to have a
stripped down version for barebox anyway, then most of these defines can
go.
> > -#if defined CONFIG_ARCH_IMX25 || defined CONFIG_ARCH_IMX35 || defined CONFIG_ARCH_IMX51 || defined CONFIG_ARCH_IMX53 || defined CONFIG_X86
> > +#if defined CONFIG_ARCH_IMX25 || \
> > + defined CONFIG_ARCH_IMX35 || \
> > + defined CONFIG_ARCH_IMX51 || \
> > + defined CONFIG_ARCH_IMX53 || \
> > + defined CONFIG_ARCH_IMX6 || \
> > + defined CONFIG_X86
> can we have a CONFIG_HAVE_MACH something instead
Yes.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2012-04-14 13:19 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-13 13:54 Sascha Hauer
2012-04-13 13:54 ` [PATCH 1/7] ARM: add " Sascha Hauer
2012-04-14 11:41 ` Jean-Christophe PLAGNIOL-VILLARD
2012-04-14 13:19 ` Sascha Hauer [this message]
[not found] ` <20120414161123.GB30672@game.jcrosoft.org>
2012-04-14 20:13 ` Sascha Hauer
2012-04-15 1:31 ` Jean-Christophe PLAGNIOL-VILLARD
2012-04-15 9:53 ` Sascha Hauer
2012-04-15 11:47 ` Jean-Christophe PLAGNIOL-VILLARD
2012-04-15 13:49 ` Sascha Hauer
2012-04-15 13:51 ` Jean-Christophe PLAGNIOL-VILLARD
2012-04-13 13:54 ` [PATCH 2/7] serial i.MX: " Sascha Hauer
2012-04-14 11:34 ` Jean-Christophe PLAGNIOL-VILLARD
2012-04-14 13:25 ` Sascha Hauer
2012-04-13 13:54 ` [PATCH 3/7] net fec: Add " Sascha Hauer
2012-04-13 13:54 ` [PATCH 4/7] mmc i.MX esdhc: " Sascha Hauer
2012-04-13 13:54 ` [PATCH 5/7] net mii: Add mii_open/mii_close functions Sascha Hauer
2012-04-14 10:46 ` Jean-Christophe PLAGNIOL-VILLARD
2012-04-14 13:27 ` Sascha Hauer
2012-04-15 4:12 ` Jean-Christophe PLAGNIOL-VILLARD
2012-04-15 10:01 ` Sascha Hauer
2012-04-13 13:54 ` [PATCH 6/7] ARM: initial Freescale i.MX6q Armadillo2 support Sascha Hauer
2012-04-14 10:53 ` Jean-Christophe PLAGNIOL-VILLARD
2012-04-14 12:57 ` Sascha Hauer
2012-04-15 4:09 ` Jean-Christophe PLAGNIOL-VILLARD
2012-04-15 9:53 ` Sascha Hauer
2012-04-15 11:46 ` Jean-Christophe PLAGNIOL-VILLARD
2012-04-14 13:17 ` Eric Bénard
2012-04-14 13:20 ` Sascha Hauer
2012-04-13 13:54 ` [PATCH 7/7] ARM Freescale i.MX6 Armadillo2: Add defconfig Sascha Hauer
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=20120414131935.GW3852@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=plagnioj@jcrosoft.com \
/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