* [PATCH u-boot v2019.04-aspeed-openbmc v5 0/2] Add support for IBM Genesis3
@ 2022-05-24 11:18 Patrick Rudolph
2022-05-24 11:18 ` [PATCH u-boot v2019.04-aspeed-openbmc v5 1/2] arm/dts: Add IBM Genesis3 board Patrick Rudolph
2022-05-24 11:18 ` [PATCH u-boot v2019.04-aspeed-openbmc v5 2/2] arm/mach-aspeed: Add support for CONFIG_ASPEED_ROUTE_UART5_TO_UART1 Patrick Rudolph
0 siblings, 2 replies; 3+ messages in thread
From: Patrick Rudolph @ 2022-05-24 11:18 UTC (permalink / raw)
To: joel, openbmc; +Cc: christian.walter, takken, Patrick Rudolph, zev
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 | 6 ++++++
arch/arm/mach-aspeed/ast2500/platform.S | 2 +-
4 files changed, 36 insertions(+), 1 deletion(-)
create mode 100644 arch/arm/dts/ast2500-genesis3.dts
--
2.35.3
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH u-boot v2019.04-aspeed-openbmc v5 1/2] arm/dts: Add IBM Genesis3 board
2022-05-24 11:18 [PATCH u-boot v2019.04-aspeed-openbmc v5 0/2] Add support for IBM Genesis3 Patrick Rudolph
@ 2022-05-24 11:18 ` Patrick Rudolph
2022-05-24 11:18 ` [PATCH u-boot v2019.04-aspeed-openbmc v5 2/2] arm/mach-aspeed: Add support for CONFIG_ASPEED_ROUTE_UART5_TO_UART1 Patrick Rudolph
1 sibling, 0 replies; 3+ messages in thread
From: Patrick Rudolph @ 2022-05-24 11:18 UTC (permalink / raw)
To: joel, openbmc; +Cc: christian.walter, takken, Patrick Rudolph, zev, Zev Weiss
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 3515100c65..ed9714d832 100755
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -678,6 +678,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \
ast2400-evb.dtb \
ast2400-ahe-50dc.dtb \
ast2500-evb.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.35.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH u-boot v2019.04-aspeed-openbmc v5 2/2] arm/mach-aspeed: Add support for CONFIG_ASPEED_ROUTE_UART5_TO_UART1
2022-05-24 11:18 [PATCH u-boot v2019.04-aspeed-openbmc v5 0/2] Add support for IBM Genesis3 Patrick Rudolph
2022-05-24 11:18 ` [PATCH u-boot v2019.04-aspeed-openbmc v5 1/2] arm/dts: Add IBM Genesis3 board Patrick Rudolph
@ 2022-05-24 11:18 ` Patrick Rudolph
1 sibling, 0 replies; 3+ messages in thread
From: Patrick Rudolph @ 2022-05-24 11:18 UTC (permalink / raw)
To: joel, openbmc; +Cc: christian.walter, takken, Patrick Rudolph, zev
Introduce CONFIG_ASPEED_ROUTE_UART5_TO_UART1 and reuse existing
platform code to route UART5 to UART1.
This is required on IBM/Genesis3 as it uses UART5 as debug uart, but the
RXD1/TXD1 pins are connected instead of RXD5/TXD5.
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
---
arch/arm/mach-aspeed/Kconfig | 6 ++++++
arch/arm/mach-aspeed/ast2500/platform.S | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-aspeed/Kconfig b/arch/arm/mach-aspeed/Kconfig
index edb5520aec..50ea261dac 100644
--- a/arch/arm/mach-aspeed/Kconfig
+++ b/arch/arm/mach-aspeed/Kconfig
@@ -84,6 +84,12 @@ config ASPEED_ENABLE_DEBUG_UART
endif
+config ASPEED_ROUTE_UART5_TO_UART1
+ bool "Route UART5 to UART1 pins"
+ depends on ASPEED_AST2500
+ help
+ Route debug UART (UART5) to TXD1/RXD1 pins instead of TXD5/RXD5.
+
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.35.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-05-24 11:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-24 11:18 [PATCH u-boot v2019.04-aspeed-openbmc v5 0/2] Add support for IBM Genesis3 Patrick Rudolph
2022-05-24 11:18 ` [PATCH u-boot v2019.04-aspeed-openbmc v5 1/2] arm/dts: Add IBM Genesis3 board Patrick Rudolph
2022-05-24 11:18 ` [PATCH u-boot v2019.04-aspeed-openbmc v5 2/2] arm/mach-aspeed: Add support for CONFIG_ASPEED_ROUTE_UART5_TO_UART1 Patrick Rudolph
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.