* [RESEND][PATCH u-boot v2019.04-aspeed-openbmc v6 0/2] Add support for IBM Genesis3
@ 2022-09-20 10:08 Patrick Rudolph
2022-09-20 10:08 ` [RESEND][PATCH u-boot v2019.04-aspeed-openbmc v6 1/2] arm/dts: Add IBM Genesis3 board Patrick Rudolph
2022-09-20 10:08 ` [RESEND][PATCH u-boot v2019.04-aspeed-openbmc v6 2/2] arm/mach-aspeed: Add support for CONFIG_ASPEED_ROUTE_UART5_TO_UART1 Patrick Rudolph
0 siblings, 2 replies; 4+ messages in thread
From: Patrick Rudolph @ 2022-09-20 10:08 UTC (permalink / raw)
To: joel, openbmc; +Cc: andrew, christian.walter, takken, Patrick Rudolph, zweiss
v6:
- Clarify UART5 rerouting only affects the console
v5:
- Rename Kconfig and don't depend on ASPEED_ALLOW_DANGEROUS_BACKDOORS
v4:
- Rebase on upstream
- Drop defconfig and add it on openbmc instead
- Rename Kconfig for debug uart
v3:
- Drop FIRMWARE_2ND_BOOT patch
- Include reference board DTS instead of copying it
- Rename DTS to ast2500-<boardname>
- Describe defconfig changes in commit message
v2:
- Fix whitespace and compatible in DTS
- Remove board stub
- Improve commit message
- Rewrite FIRMWARE_2ND_BOOT support
- Update defconfig
Patrick Rudolph (2):
arm/dts: Add IBM Genesis3 board
arm/mach-aspeed: Add support for CONFIG_ASPEED_ROUTE_UART5_TO_UART1
arch/arm/dts/Makefile | 1 +
arch/arm/dts/ast2500-genesis3.dts | 28 +++++++++++++++++++++++++
arch/arm/mach-aspeed/Kconfig | 7 +++++++
arch/arm/mach-aspeed/ast2500/platform.S | 2 +-
4 files changed, 37 insertions(+), 1 deletion(-)
create mode 100644 arch/arm/dts/ast2500-genesis3.dts
--
2.37.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [RESEND][PATCH u-boot v2019.04-aspeed-openbmc v6 1/2] arm/dts: Add IBM Genesis3 board
2022-09-20 10:08 [RESEND][PATCH u-boot v2019.04-aspeed-openbmc v6 0/2] Add support for IBM Genesis3 Patrick Rudolph
@ 2022-09-20 10:08 ` Patrick Rudolph
2022-09-20 10:08 ` [RESEND][PATCH u-boot v2019.04-aspeed-openbmc v6 2/2] arm/mach-aspeed: Add support for CONFIG_ASPEED_ROUTE_UART5_TO_UART1 Patrick Rudolph
1 sibling, 0 replies; 4+ messages in thread
From: Patrick Rudolph @ 2022-09-20 10:08 UTC (permalink / raw)
To: joel, openbmc; +Cc: andrew, christian.walter, takken, Patrick Rudolph, zweiss
Add devicetree source file. It uses the evb-ast2500 board files.
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-by: Zev Weiss <zweiss@equinix.com>
---
arch/arm/dts/Makefile | 1 +
arch/arm/dts/ast2500-genesis3.dts | 28 ++++++++++++++++++++++++++++
2 files changed, 29 insertions(+)
create mode 100644 arch/arm/dts/ast2500-genesis3.dts
diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index 6c34b83336..db479c059b 100755
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -680,6 +680,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \
ast2400-palmetto.dtb \
ast2500-evb.dtb \
ast2500-romulus.dtb \
+ ast2500-genesis3.dtb \
ast2600a0-evb.dtb \
ast2600a1-evb.dtb \
ast2600-bletchley.dtb \
diff --git a/arch/arm/dts/ast2500-genesis3.dts b/arch/arm/dts/ast2500-genesis3.dts
new file mode 100644
index 0000000000..544758c5b8
--- /dev/null
+++ b/arch/arm/dts/ast2500-genesis3.dts
@@ -0,0 +1,28 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * IBM Genesis3
+ *
+ * Copyright (C) 2022 9elements GmbH
+ */
+
+#include "ast2500-evb.dts"
+
+/ {
+ model = "IBM Genesis3";
+ compatible = "ibm,genesis3-bmc", "aspeed,ast2500";
+};
+
+&spi1 {
+ status = "disabled";
+};
+
+&fmc {
+ flash@0 {
+ compatible = "spansion,s25fl256l", "spi-flash";
+ };
+
+ flash@1 {
+ compatible = "spansion,s25fl256l", "spi-flash";
+ };
+};
+
--
2.37.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [RESEND][PATCH u-boot v2019.04-aspeed-openbmc v6 2/2] arm/mach-aspeed: Add support for CONFIG_ASPEED_ROUTE_UART5_TO_UART1
2022-09-20 10:08 [RESEND][PATCH u-boot v2019.04-aspeed-openbmc v6 0/2] Add support for IBM Genesis3 Patrick Rudolph
2022-09-20 10:08 ` [RESEND][PATCH u-boot v2019.04-aspeed-openbmc v6 1/2] arm/dts: Add IBM Genesis3 board Patrick Rudolph
@ 2022-09-20 10:08 ` Patrick Rudolph
1 sibling, 0 replies; 4+ messages in thread
From: Patrick Rudolph @ 2022-09-20 10:08 UTC (permalink / raw)
To: joel, openbmc; +Cc: andrew, christian.walter, takken, Patrick Rudolph, zweiss
Introduce CONFIG_ASPEED_ROUTE_UART5_TO_UART1 and reuse existing
platform code to route UART5 to UART1 pins.
This is required on IBM/Genesis3 as only UART5 can be used as early
debug console, but the RXD1/TXD1 pins are connected instead of RXD5/TXD5.
This does not affect the "debug UART" function on RXD{1,5}.
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
---
arch/arm/mach-aspeed/Kconfig | 7 +++++++
arch/arm/mach-aspeed/ast2500/platform.S | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-aspeed/Kconfig b/arch/arm/mach-aspeed/Kconfig
index 687adcb308..660b5a240e 100644
--- a/arch/arm/mach-aspeed/Kconfig
+++ b/arch/arm/mach-aspeed/Kconfig
@@ -84,6 +84,13 @@ config ASPEED_ENABLE_DEBUG_UART
endif
+config ASPEED_ROUTE_UART5_TO_UART1
+ bool "Route UART5 console to UART1 pins"
+ depends on ASPEED_AST2500
+ help
+ Route UART5 console to TXD1/RXD1 pins instead of TXD5/RXD5 pins.
+ Does not affect the debug uart functionality.
+
config ASPEED_PALLADIUM
bool "Aspeed palladium for simulation"
default n
diff --git a/arch/arm/mach-aspeed/ast2500/platform.S b/arch/arm/mach-aspeed/ast2500/platform.S
index aef55c4a0a..fd013e4e6f 100644
--- a/arch/arm/mach-aspeed/ast2500/platform.S
+++ b/arch/arm/mach-aspeed/ast2500/platform.S
@@ -795,7 +795,7 @@ wait_ddr_reset:
/* end delay 10ms */
/* Debug - UART console message */
-#ifdef CONFIG_DRAM_UART_TO_UART1
+#ifdef CONFIG_ASPEED_ROUTE_UART5_TO_UART1
ldr r0, =0x1e78909c @ route UART5 to UART Port1, 2016.08.29
ldr r1, =0x10000004
str r1, [r0]
--
2.37.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [RESEND][PATCH u-boot v2019.04-aspeed-openbmc v6 0/2] Add support for IBM Genesis3
@ 2022-11-30 7:52 Patrick Rudolph
0 siblings, 0 replies; 4+ messages in thread
From: Patrick Rudolph @ 2022-11-30 7:52 UTC (permalink / raw)
To: joel, openbmc
Cc: takken, andrew, naresh.solanki, christian.walter,
Patrick Rudolph, zweiss
v6:
- Clarify UART5 rerouting only affects the console
v5:
- Rename Kconfig and don't depend on ASPEED_ALLOW_DANGEROUS_BACKDOORS
v4:
- Rebase on upstream
- Drop defconfig and add it on openbmc instead
- Rename Kconfig for debug uart
v3:
- Drop FIRMWARE_2ND_BOOT patch
- Include reference board DTS instead of copying it
- Rename DTS to ast2500-<boardname>
- Describe defconfig changes in commit message
v2:
- Fix whitespace and compatible in DTS
- Remove board stub
- Improve commit message
- Rewrite FIRMWARE_2ND_BOOT support
- Update defconfig
Patrick Rudolph (2):
arm/dts: Add IBM Genesis3 board
arm/mach-aspeed: Add support for CONFIG_ASPEED_ROUTE_UART5_TO_UART1
arch/arm/dts/Makefile | 1 +
arch/arm/dts/ast2500-genesis3.dts | 28 +++++++++++++++++++++++++
arch/arm/mach-aspeed/Kconfig | 7 +++++++
arch/arm/mach-aspeed/ast2500/platform.S | 2 +-
4 files changed, 37 insertions(+), 1 deletion(-)
create mode 100644 arch/arm/dts/ast2500-genesis3.dts
--
2.37.1
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-11-30 7:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-20 10:08 [RESEND][PATCH u-boot v2019.04-aspeed-openbmc v6 0/2] Add support for IBM Genesis3 Patrick Rudolph
2022-09-20 10:08 ` [RESEND][PATCH u-boot v2019.04-aspeed-openbmc v6 1/2] arm/dts: Add IBM Genesis3 board Patrick Rudolph
2022-09-20 10:08 ` [RESEND][PATCH u-boot v2019.04-aspeed-openbmc v6 2/2] arm/mach-aspeed: Add support for CONFIG_ASPEED_ROUTE_UART5_TO_UART1 Patrick Rudolph
2022-11-30 7:52 [RESEND][PATCH u-boot v2019.04-aspeed-openbmc v6 0/2] Add support for IBM Genesis3 Patrick Rudolph
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).