From: Jan Weitzel <J.Weitzel@phytec.de>
To: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 3/3] OMAP4460: clock init
Date: Thu, 02 Aug 2012 12:36:19 +0200 [thread overview]
Message-ID: <1343903779.3476.2.camel@lws-weitzel> (raw)
In-Reply-To: <20120727141830.GW22657@game.jcrosoft.org>
Am Freitag, den 27.07.2012, 16:18 +0200 schrieb Jean-Christophe
PLAGNIOL-VILLARD:
> On 15:40 Fri 27 Jul , Jan Weitzel wrote:
> > Change clock init to allow early gpio access. Add support for 4460 clocks.
> >
> > Signed-off-by: Jan Weitzel <j.weitzel@phytec.de>
> > ---
> > arch/arm/boards/panda/lowlevel.c | 4 ++-
> > arch/arm/boards/panda/mux.c | 8 +++++
> > arch/arm/boards/pcm049/lowlevel.c | 15 +++++++--
> > arch/arm/boards/pcm049/mux.c | 8 +++++
> > arch/arm/boards/phycard-a-xl2/lowlevel.c | 9 ++++-
> > arch/arm/boards/phycard-a-xl2/mux.c | 8 +++++
> > arch/arm/mach-omap/include/mach/omap4-clock.h | 4 ++
> > arch/arm/mach-omap/omap4_clock.c | 39 +++++++++++++++++-------
> > 8 files changed, 76 insertions(+), 19 deletions(-)
> >
> > diff --git a/arch/arm/boards/panda/lowlevel.c b/arch/arm/boards/panda/lowlevel.c
> > index 8591fff..0b4b199 100644
> > --- a/arch/arm/boards/panda/lowlevel.c
> > +++ b/arch/arm/boards/panda/lowlevel.c
> > @@ -28,6 +28,8 @@
> > #include <mach/syslib.h>
> > #include <asm/barebox-arm.h>
> >
> > +#define TPS62361_VSEL0_GPIO 7
> > +
> > void set_muxconf_regs(void);
> >
> > static const struct ddr_regs ddr_regs_400_mhz_2cs = {
> > @@ -70,7 +72,7 @@ static void noinline panda_init_lowlevel(void)
> > omap4_ddr_init(&ddr_regs_400_mhz_2cs, &core);
> >
> > /* Set VCORE1 = 1.3 V, VCORE2 = VCORE3 = 1.21V */
> > - omap4_scale_vcores();
> > + omap4_scale_vcores(TPS62361_VSEL0_GPIO);
> >
> > board_init_lowlevel_return();
> > }
> > diff --git a/arch/arm/boards/panda/mux.c b/arch/arm/boards/panda/mux.c
> > index 310e433..3783006 100644
> > --- a/arch/arm/boards/panda/mux.c
> > +++ b/arch/arm/boards/panda/mux.c
> > @@ -3,6 +3,7 @@
> > #include <io.h>
> > #include <mach/omap4-silicon.h>
> > #include <mach/omap4-mux.h>
> > +#include <mach/omap4-clock.h>
> >
> > static const struct pad_conf_entry core_padconf_array[] = {
> > { GPMC_AD0, PTU | IEN | OFF_EN | OFF_PD | OFF_IN | M1 /* sdmmc2_dat0 */ },
> > @@ -245,4 +246,11 @@ void set_muxconf_regs(void)
> >
> > omap4_do_set_mux(OMAP44XX_CONTROL_PADCONF_WKUP, wkup_padconf_array,
> > ARRAY_SIZE(wkup_padconf_array));
> > +
> > + /* gpio_wk7 is used for controlling TPS on 4460 */
> > + if (omap4_revision() >= OMAP4460_ES1_0) {
> > + writew(M3, OMAP44XX_CONTROL_PADCONF_WKUP + PAD1_FREF_CLK4_REQ);
> > + /* Enable GPIO-1 clocks before TPS initialization */
> > + omap4_enable_gpio1_wup_clocks();
> > + }
> can we factorize this?
Sorry, I didn't catch this.
Jan
> Best Regards,
> J.
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2012-08-02 10:36 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-27 13:40 [PATCH 0/3] omap: 4460 support Jan Weitzel
2012-07-27 13:40 ` [PATCH 1/3] Add support for OMAP4460 TPS62361 Jan Weitzel
2012-08-03 16:57 ` Sascha Hauer
2012-08-13 6:07 ` [PATCH 3/3] OMAP4460: clock init Jan Weitzel
2012-08-13 19:08 ` Sascha Hauer
2012-07-27 13:40 ` [PATCH 2/3] OMAP4460: ram init changes Jan Weitzel
2012-07-27 14:13 ` Jean-Christophe PLAGNIOL-VILLARD
2012-07-27 15:12 ` Sascha Hauer
2012-08-02 10:55 ` [PATCH] OMAP4: use writel and readl Jan Weitzel
2012-08-13 12:32 ` [PATCH v2] " Jan Weitzel
2012-08-13 18:42 ` Sascha Hauer
2012-07-27 13:40 ` [PATCH 3/3] OMAP4460: clock init Jan Weitzel
2012-07-27 14:18 ` Jean-Christophe PLAGNIOL-VILLARD
2012-08-02 10:36 ` Jan Weitzel [this message]
2012-08-14 7:04 [PATCH 0/3 v2] omap: 4460 support Jan Weitzel
2012-08-14 7:04 ` [PATCH 3/3] OMAP4460: clock init Jan Weitzel
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=1343903779.3476.2.camel@lws-weitzel \
--to=j.weitzel@phytec.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