mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Alexander Shiyan <shc_work@mail.ru>
To: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 3/3] ARM: Add CLPS711X architecture
Date: Thu, 4 Oct 2012 19:14:30 +0400	[thread overview]
Message-ID: <20121004191430.e7cc5e94.shc_work@mail.ru> (raw)
In-Reply-To: <20121004125229.GK26553@game.jcrosoft.org>

On Thu, 4 Oct 2012 14:52:29 +0200
Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> wrote:

> On 16:37 Thu 04 Oct     , Alexander Shiyan wrote:
> > This patch adds new architecture (CLPS711X) into barebox.
> > The core-logic functionality of the device is built around an ARM720T
> > processor running at clock speeds up to 90 MHz and 74 MHz.
> > Patch also adds a generic board support (CLEP7212, Linux ARM ID=91) and
> > serial driver for this CPU.
...
> > +CONFIG_BAUDRATE=57600
> why?? usally 115200
It is impossible rate when CPU is clocked from an external source.
Possible rates is very limited for this platform  and historically
(for this target) default baudrate is 57600. In any case it can be changed
via config option.

...
> > +static int clocks_init(void)
> please split clocksource and clk
I do not know how best to do it because I need access to calculated values of
the frequency in initialization clkdev & clocksource.

> > +void _setup_memcfg(int bank, u32 addr, u32 val)
> > +{
> > +	u32 tmp = readl(addr);
> > +
> > +	switch (bank) {
> > +	case 0:
> > +		tmp &= ~(0xff << 0);
> > +		tmp |= val << 0;
> > +		break;
> > +	case 1:
> > +		tmp &= ~(0xff << 8);
> > +		tmp |= val << 8;
> > +		break;
> > +	case 2:
> > +		tmp &= ~(0xff << 16);
> > +		tmp |= val << 16;
> > +		break;
> > +	case 3:
> > +		tmp &= ~(0xff << 24);
> > +		tmp |= val << 24;
> > +		break;
> no default?
"Default" is not needed, because call is used internally in this unit and it
protected by "switch/case" in the caller.

> > +void __noreturn reset_cpu(unsigned long addr)
> > +{
> > +	for (;;)
> no cpu reset?
This CPU don't have reset register.

-- 
Alexander Shiyan <shc_work@mail.ru>

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2012-10-04 15:14 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-04 12:36 [PATCH 1/3] ARM: Fix Kconfig link for Cirrus Logic EP9312 CPU Alexander Shiyan
2012-10-04 12:37 ` [PATCH 2/3] Add more generated files to .gitignore Alexander Shiyan
2012-10-04 12:53   ` Jean-Christophe PLAGNIOL-VILLARD
2012-10-04 13:04     ` Re[2]: " Alexander Shiyan
2012-10-04 13:20       ` Jean-Christophe PLAGNIOL-VILLARD
2012-10-04 12:37 ` [PATCH 3/3] ARM: Add CLPS711X architecture Alexander Shiyan
2012-10-04 12:52   ` Jean-Christophe PLAGNIOL-VILLARD
2012-10-04 15:14     ` Alexander Shiyan [this message]
2012-10-04 17:08       ` Jean-Christophe PLAGNIOL-VILLARD
2012-10-04 17:19         ` Alexander Shiyan
2012-10-05 12:12   ` Sascha Hauer
2012-10-07 10:03     ` Alexander Shiyan
2012-10-07 10:45       ` Sascha Hauer
2012-10-07 10:57         ` Alexander Shiyan
2012-10-07 11:55           ` Sascha Hauer
2012-10-05 11:50 ` [PATCH 1/3] ARM: Fix Kconfig link for Cirrus Logic EP9312 CPU 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=20121004191430.e7cc5e94.shc_work@mail.ru \
    --to=shc_work@mail.ru \
    --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