From: David Lechner <david@lechnology.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/5] ARM: legoev3: Move UART enable to early init
Date: Sat, 19 May 2018 23:25:04 -0500 [thread overview]
Message-ID: <20180520042507.22058-3-david@lechnology.com> (raw)
In-Reply-To: <20180520042507.22058-1-david@lechnology.com>
This moves the UART init for LEGO MINDSTORMS EV3 to board_early_init_f().
Some console messages were not being printed because the UART was not
enabled until later in the init process.
Signed-off-by: David Lechner <david@lechnology.com>
---
board/lego/ev3/legoev3.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/board/lego/ev3/legoev3.c b/board/lego/ev3/legoev3.c
index 5e70363588..69010055d3 100644
--- a/board/lego/ev3/legoev3.c
+++ b/board/lego/ev3/legoev3.c
@@ -132,6 +132,11 @@ void get_board_serial(struct tag_serialnr *serialnr)
int board_early_init_f(void)
{
+ /* enable the console UART */
+ writel((DAVINCI_UART_PWREMU_MGMT_FREE | DAVINCI_UART_PWREMU_MGMT_URRST |
+ DAVINCI_UART_PWREMU_MGMT_UTRST),
+ &davinci_uart1_ctrl_regs->pwremu_mgmt);
+
/*
* Power on required peripherals
* ARM does not have access by default to PSC0 and PSC1
@@ -166,10 +171,5 @@ int board_init(void)
if (davinci_configure_pin_mux_items(pinmuxes, ARRAY_SIZE(pinmuxes)))
return 1;
- /* enable the console UART */
- writel((DAVINCI_UART_PWREMU_MGMT_FREE | DAVINCI_UART_PWREMU_MGMT_URRST |
- DAVINCI_UART_PWREMU_MGMT_UTRST),
- &davinci_uart1_ctrl_regs->pwremu_mgmt);
-
return 0;
}
--
2.17.0
next prev parent reply other threads:[~2018-05-20 4:25 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-20 4:25 [U-Boot] [PATCH 0/5] ARM: legoev3: updates David Lechner
2018-05-20 4:25 ` [U-Boot] [PATCH 1/5] ARM: legoev3: increase flash image sizes David Lechner
2018-06-06 11:15 ` [U-Boot] [U-Boot,1/5] " Tom Rini
2018-05-20 4:25 ` David Lechner [this message]
2018-06-06 11:15 ` [U-Boot] [U-Boot, 2/5] ARM: legoev3: Move UART enable to early init Tom Rini
2018-05-20 4:25 ` [U-Boot] [PATCH 3/5] ARM: legoev3: disable networking David Lechner
2018-06-06 11:15 ` [U-Boot] [U-Boot,3/5] " Tom Rini
2018-05-20 4:25 ` [U-Boot] [PATCH 4/5] ARM: legoev3: remove unused configuration options David Lechner
2018-06-06 11:15 ` [U-Boot] [U-Boot, " Tom Rini
2018-05-20 4:25 ` [U-Boot] [PATCH 5/5] ARM: legoev3: update boot script to load uEnv.txt and .dtb David Lechner
2018-06-06 11:15 ` [U-Boot] [U-Boot, " Tom Rini
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=20180520042507.22058-3-david@lechnology.com \
--to=david@lechnology.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox