From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] am33xx, spl, siemens: enable debug uart output again
Date: Mon, 02 Mar 2015 07:56:41 +0100 [thread overview]
Message-ID: <54F409A9.7030907@denx.de> (raw)
In-Reply-To: <CAPnjgZ3L+SC4_8pcfEcFJpxEueowLTn4jwDEb9JAdT7HcU3mWg@mail.gmail.com>
Hello Simon,
Am 24.02.2015 14:31, schrieb Simon Glass:
> Hi Heiko,
>
> On 23 February 2015 at 23:18, Heiko Schocher <hs@denx.de> wrote:
>> a6b541b090: TI ARMv7: Don't use GD before crt0.S has set it
>>
>> moves the init of the debug uart at the very end of SPL code.
>> Enable it for the siemens board earlier, as they print
>> ddr settings ... all debug output before board_init_r()
>> is here currently useless. Maybe we must rework this
>> globally?
>
> Assuming we are talking about U-Boot proper, the DDR init should
> happen in board_init_f(), specifically dram_init(). so I think this
> code should be updated.
>
> If it is SPL, then DDR init should happen in SPL's board_init_f().
It is in SPL...
sdram_init() is called from:
./arch/arm/cpu/armv7/am33xx/board.c from s_init() ...
> I sent a series a few weeks ago (available at u-boot-dm branch
> spl-working) related to this topic:
>
> http://patchwork.ozlabs.org/patch/438581/
Ah ... Hmm... so "./arch/arm/cpu/armv7/am33xx/board.c" needs
a rework, right?
Is a simple rename s_init() -> board_init_f() correct?
@Tom: Could you help here?
bye,
Heiko
>> Signed-off-by: Heiko Schocher <hs@denx.de>
>> ---
>>
>> board/siemens/common/board.c | 5 +++++
>> 1 file changed, 5 insertions(+)
>>
>> diff --git a/board/siemens/common/board.c b/board/siemens/common/board.c
>> index cc0ac6b..fb2de48 100644
>> --- a/board/siemens/common/board.c
>> +++ b/board/siemens/common/board.c
>> @@ -43,6 +43,11 @@ void set_mux_conf_regs(void)
>> /* Initalize the board header */
>> enable_i2c0_pin_mux();
>> i2c_set_bus_num(0);
>> +
>> + /* enable early the console */
>> + gd->baudrate = CONFIG_BAUDRATE;
>> + serial_init();
>> + gd->have_console = 1;
>> if (read_eeprom() < 0)
>> puts("Could not get board ID.\n");
>>
>> --
>> 2.1.0
>>
>
> Regards,
> Simon
>
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
next prev parent reply other threads:[~2015-03-02 6:56 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-24 6:18 [U-Boot] [PATCH] am33xx, spl, siemens: enable debug uart output again Heiko Schocher
2015-02-24 13:31 ` Simon Glass
2015-03-02 6:56 ` Heiko Schocher [this message]
2015-03-02 13:59 ` Tom Rini
2015-03-04 7:42 ` Heiko Schocher
2015-03-04 16:40 ` Tom Rini
2015-03-05 6:22 ` Heiko Schocher
2015-03-05 8:46 ` Heiko Schocher
2015-03-05 14:50 ` Tom Rini
2015-03-06 7:24 ` Heiko Schocher
2015-03-06 12:15 ` Tom Rini
2015-05-14 10:37 ` Heiko Schocher
2015-05-14 10:51 ` Tom Rini
2015-05-14 12:46 ` Simon Glass
2015-05-15 5:23 ` 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=54F409A9.7030907@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.