* [PATCH linux dev-4.10] aspeed: firestone: Set SIO to bypass UART in hostboot
@ 2017-10-11 7:41 Lei YU
2017-10-13 5:30 ` Andrew Jeffery
0 siblings, 1 reply; 2+ messages in thread
From: Lei YU @ 2017-10-11 7:41 UTC (permalink / raw)
To: openbmc
OpenBMC fails to boot host on Firestone.
The cause is that Firestone's hostboot hangs after disables
SUART/VUART.
The workaround is to make hostboot run into default SUART init
without disabling VUART, by setting 0x170 SIO register to 0.
With this workaround, Firestone boots OK.
Signed-off-by: Lei YU <mine260309@gmail.com>
---
arch/arm/mach-aspeed/aspeed.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/mach-aspeed/aspeed.c b/arch/arm/mach-aspeed/aspeed.c
index a9e91d9..c84c871 100644
--- a/arch/arm/mach-aspeed/aspeed.c
+++ b/arch/arm/mach-aspeed/aspeed.c
@@ -104,6 +104,10 @@ static void __init do_firestone_setup(void)
/* Override serial destination to use the dedicated serial port */
writel(0x00004000, AST_IO(AST_BASE_LPC | 0x174));
+
+ /* Workaround to make hostboot run into default SUART init */
+ /* Otherwise it fails to boot */
+ writel(0x00000000, AST_IO(AST_BASE_LPC | 0x170));
}
static void __init do_garrison_setup(void)
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH linux dev-4.10] aspeed: firestone: Set SIO to bypass UART in hostboot
2017-10-11 7:41 [PATCH linux dev-4.10] aspeed: firestone: Set SIO to bypass UART in hostboot Lei YU
@ 2017-10-13 5:30 ` Andrew Jeffery
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Jeffery @ 2017-10-13 5:30 UTC (permalink / raw)
To: Lei YU, openbmc
[-- Attachment #1: Type: text/plain, Size: 1239 bytes --]
On Wed, 2017-10-11 at 15:41 +0800, Lei YU wrote:
> OpenBMC fails to boot host on Firestone.
> The cause is that Firestone's hostboot hangs after disables
> SUART/VUART.
>
> The workaround is to make hostboot run into default SUART init
> without disabling VUART, by setting 0x170 SIO register to 0.
>
> With this workaround, Firestone boots OK.
>
> Signed-off-by: Lei YU <mine260309@gmail.com>
Applied to dev-4.10.
We really should start to think again about how best to do this from userspace.
Andrew
> ---
> arch/arm/mach-aspeed/aspeed.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/arch/arm/mach-aspeed/aspeed.c b/arch/arm/mach-aspeed/aspeed.c
> index a9e91d9..c84c871 100644
> --- a/arch/arm/mach-aspeed/aspeed.c
> +++ b/arch/arm/mach-aspeed/aspeed.c
> @@ -104,6 +104,10 @@ static void __init do_firestone_setup(void)
>
> /* Override serial destination to use the dedicated serial port */
> writel(0x00004000, AST_IO(AST_BASE_LPC | 0x174));
> +
> + /* Workaround to make hostboot run into default SUART init */
> + /* Otherwise it fails to boot */
> + writel(0x00000000, AST_IO(AST_BASE_LPC | 0x170));
> }
>
> static void __init do_garrison_setup(void)
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-10-13 5:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-11 7:41 [PATCH linux dev-4.10] aspeed: firestone: Set SIO to bypass UART in hostboot Lei YU
2017-10-13 5:30 ` Andrew Jeffery
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.