All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 6/8] arm, davinci, am1808: add lowlevel functions for booting from NOR
Date: Tue, 27 Sep 2011 13:18:06 +0200	[thread overview]
Message-ID: <4E81B0EE.2010100@denx.de> (raw)
In-Reply-To: <CABkLObrh-c1EEYQ-hWxEV-i58J1oy_fv5VcZ51zPDscq91BZDw@mail.gmail.com>

Hello Christian,

Sorry didn't realized that there was more at the end of your EMail!

Christian Riesch wrote:
> Hello Heiko,
> Thank you for your reply. I have just noticed that the patches have
> already been pulled into arm/next so I guess I am quite late with my
> comments. I'd like to apologize for this; apparently I need another
> email filter that also filters for messages containing "am1808" and
> not only "da850" ;-)
[...]
> Ok. Actually you do LPSC transitions twice in your board
> configuration, first in the low level initialization in
> arch/arm/cpu/arm926ejs/davinci/am1808_lowlevel.c (using your own
> function) and then again in your board initialization in
> board/enbw/enbw_cmc/enbw_cmc.c (using the code in
> arch/arm/cpu/arm926ejs/davinci/psc.c). I assume you ran into the same
> problem as I did with the da850evm board. The UART is used before it
> is turned on in the board_init() function. A few weeks ago I submitted

a) you are right, I enable the PSC for the UART twice, what is not
   optimal! I remove this in my board code. Thanks for detecting
   this!

b) I enable the PSC for the UART in
   arch/arm/cpu/arm926ejs/davinci/am1808_lowlevel.c arch_cpu_init(),
   so the UART is enabled on my board before calling board_early_init_f()
   as in your patch [1]. So I am save on this site.

c) If using the "Legacy NOR Boot" Method with u-boot spl Framework,
   (not tested this with the new Framework, only with the old),
   we are also on the save side here, as the SPL code enables the
   PSC for the UART in arch/arm/cpu/arm926ejs/davinci/am1808_lowlevel.c
   board_init_f(), same as for the "direct NOR boot" method I used
   on the enbw_cmc board.

> a patch [1][2] for this issue but did not get any comments on it.
> Would you mind having a look at it so we could find a common solution
> for both your configuration and the da850evm?

> [1] http://lists.denx.de/pipermail/u-boot/2011-September/100352.html
> [2] http://patchwork.ozlabs.org/patch/113335/

I think there are two points:

a) move this init to board_early_init_f() as you did it
b) remove the UART enable, as it is done in UBL or U-Boot code (SPL
   or in arch_cpu_init())

But this should be decided from the board maintainer added
Sudhakar Rajashekhara to CC, as it affects the da850 board ...

bye,
Heiko

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

  parent reply	other threads:[~2011-09-27 11:18 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-15  5:59 [U-Boot] [PATCH 0/8] arm, davinci: add support for the am1808 based enbw_cmc board Heiko Schocher
2011-09-15  5:59 ` [U-Boot] [PATCH 1/8] arm, davinci: add SYSCFG1 base and register struct Heiko Schocher
2011-09-15  5:59 ` [U-Boot] [PATCH 2/8] arm, davinci: add some missing defines in hardware.h Heiko Schocher
2011-09-15  5:59 ` [U-Boot] [PATCH 3/8] arm, davinci, am1808, gpio: add missing defines for bank 8 Heiko Schocher
2011-09-15  5:59 ` [U-Boot] [PATCH 4/8] arm, davinci: add ddr2 definition Heiko Schocher
2011-09-15  5:59 ` [U-Boot] [PATCH 5/8] arm, davinci: add NOR Boot Configuration Word Heiko Schocher
2011-09-15  5:59 ` [U-Boot] [PATCH 6/8] arm, davinci, am1808: add lowlevel functions for booting from NOR Heiko Schocher
2011-09-26  8:02   ` Christian Riesch
2011-09-26  8:28     ` Heiko Schocher
2011-09-27  6:57       ` Christian Riesch
2011-09-27  7:27         ` Heiko Schocher
2011-09-27  8:37           ` Christian Riesch
2011-09-27  8:50             ` Heiko Schocher
2011-09-27 10:36               ` Christian Riesch
2011-09-27 11:18         ` Heiko Schocher [this message]
2011-09-30  6:57   ` Christian Riesch
2011-09-30  7:11     ` Heiko Schocher
2011-09-15  5:59 ` [U-Boot] [PATCH 7/8] arm, davinci, da8xx: add cpuinfo Heiko Schocher
2011-09-15  5:59 ` [U-Boot] [PATCH 8/8] arm, davinci: add support for am1808 based enbw_cmc board Heiko Schocher
2011-09-15  7:39   ` Igor Grinberg
2011-09-15  7:56     ` Heiko Schocher
2011-09-19  5:50   ` [U-Boot] [PATCH v2 " Heiko Schocher
2011-09-23 20:47     ` Paulraj, Sandeep
2011-09-26  5:43       ` Heiko Schocher
2011-09-26  6:03         ` Paulraj, Sandeep
2011-09-26  6:08           ` Heiko Schocher
2011-09-27  7:05           ` Albert ARIBAUD
2011-09-30  7:55     ` Christian Riesch
2011-09-30  8:46       ` Heiko Schocher
2011-09-30  9:02         ` Christian Riesch
2011-09-30  9:32           ` Heiko Schocher

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=4E81B0EE.2010100@denx.de \
    --to=hs@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.