fdt/sunxi: Remove OF_STDOUT_PATH
PATCH 1/1 fdt/sunxi: Remove OF_STDOUT_PATH
OF_STDOUT_PATH was meant to hold the devicetree path to the serial console, to be put into the linux,stdout-path property of the chosen node.
The only user of that was sunxi, and it was actually wrong for years
there: the paths hardcoded in sunxi_common.h were not matching the DTs, evident by the leading 0's in nodenames, which have been removed years ago.
On top of that, "linux,stdout-path" is now deprecated for a while (Linux commit 2a9d832cc9aae from November 2014), and also all modern DTs (including those included in U-Boot) carry a "stdout-path" property already.
So remove the stanza from sunxi_common.h, and, since this was the last user, also remove the associated bits from the rest of U-Boot.
--- README | 1 - common/fdt_support.c | 9 +-------- include/configs/sunxi-common.h | 18 ------------------ scripts/config_whitelist.txt | 1 - 4 files changed, 1 insertion(+), 28 deletions(-)
README +0 -1
@@ -575,7 +575,6 @@ The following options need to be configured: * The bootm command automatically updates the fdt OF_TBCLK - The timebase frequency. - OF_STDOUT_PATH - The path to the console device boards with QUICC Engines require OF_QE to set UCC MAC addresses
common/fdt_support.c +1 -8
@@ -127,14 +127,7 @@ int fdt_find_or_add_subnode(void *fdt, int parentoffset, const char *name)return offset; } -/* rename to CONFIG_OF_STDOUT_PATH ? */ -#if defined(OF_STDOUT_PATH ) -static int fdt_fixup_stdout (void *fdt,int chosenoff) -{ -return fdt_setprop (fdt, chosenoff,"linux,stdout-path" , -OF_STDOUT_PATH ,strlen (OF_STDOUT_PATH ) +1 ); -} -#elif defined(CONFIG_OF_STDOUT_VIA_ALIAS ) && defined(CONFIG_CONS_INDEX ) +#if defined(CONFIG_OF_STDOUT_VIA_ALIAS ) && defined(CONFIG_CONS_INDEX )static int fdt_fixup_stdout (void *fdt,int chosenoff) {int err;
include/configs/sunxi-common.h +0 -18
@@ -238,24 +238,6 @@ extern int soft_i2c_gpio_scl; defined CONFIG_SY8106A_POWER#endif -#ifdef CONFIG_REQUIRE_SERIAL_CONSOLE -#if CONFIG_CONS_INDEX ==1 -#ifdef CONFIG_MACH_SUN9I -#define OF_STDOUT_PATH "/soc/serial at 07000000:115200" -#else -#define OF_STDOUT_PATH "/soc at 01c00000/serial at 01c28000:115200" -#endif -#elif CONFIG_CONS_INDEX ==2 && defined(CONFIG_MACH_SUN5I ) -#define OF_STDOUT_PATH "/soc at 01c00000/serial at 01c28400:115200" -#elif CONFIG_CONS_INDEX ==3 && defined(CONFIG_MACH_SUN8I ) -#define OF_STDOUT_PATH "/soc at 01c00000/serial at 01c28800:115200" -#elif CONFIG_CONS_INDEX ==5 && defined(CONFIG_MACH_SUN8I ) -#define OF_STDOUT_PATH "/soc at 01c00000/serial at 01f02800:115200" -#else -#error Unsupported console port nr. Please fix stdout-path in sunxi-common.h. -#endif -#endif /* ifdef CONFIG_REQUIRE_SERIAL_CONSOLE */ -#ifdef CONFIG_VIDEO_SUNXI /* * The amount of RAM to keep free at the top of RAM when relocating u-boot,
scripts/config_whitelist.txt +0 -1
@@ -1182,7 +1182,6 @@ CONFIG_NUM_PAMU CONFIG_ODROID_REV_AIN CONFIG_OFF_PADCONF CONFIG_OF_ -CONFIG_OF_STDOUT_PATH CONFIG_OMAP_EHCI_PHY1_RESET_GPIO CONFIG_OMAP_EHCI_PHY2_RESET_GPIO CONFIG_OMAP_EHCI_PHY3_RESET_GPIO
Signature · 1 line
2.17.5
PATCH 1/1 fdt/sunxi: Remove OF_STDOUT_PATH
Quoted 13 lines · Andre Przywara
OF_STDOUT_PATHwas meant to hold the devicetree path to the serial console, to be put into the linux,stdout-path property of the chosen node.The only user of that was sunxi, and it was actually wrong for years
there: the paths hardcoded insunxi_common.hwere not matching the DTs, evident by the leading 0's in nodenames, which have been removed years ago.On top of that, "linux,stdout-path" is now deprecated for a while (Linux commit
2a9d832cc9aaefrom November 2014), and also all modern DTs (including those included in U-Boot) carry a "stdout-path" property already.
Quoted 4 lines
So remove the stanza from
sunxi_common.h, and, since this was the last user, also remove the associated bits from the rest of U-Boot.Signed-off-by Andre Przywara <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210214/ec38a125/attachment.sig>
PATCH 1/1 fdt/sunxi: Remove OF_STDOUT_PATH
In reply to Andre PrzywaraQuoted 17 lines · Andre Przywara
OF_STDOUT_PATHwas meant to hold the devicetree path to the serial console, to be put into the linux,stdout-path property of the chosen node.The only user of that was sunxi, and it was actually wrong for years
there: the paths hardcoded insunxi_common.hwere not matching the DTs, evident by the leading 0's in nodenames, which have been removed years ago.On top of that, "linux,stdout-path" is now deprecated for a while (Linux commit
2a9d832cc9aaefrom November 2014), and also all modern DTs (including those included in U-Boot) carry a "stdout-path" property already.So remove the stanza from
sunxi_common.h, and, since this was the last user, also remove the associated bits from the rest of U-Boot.
Quoted 8 lines
Signed-off-by Andre Przywara <[email protected]>--- README | 1 - common/fdt_support.c | 9 +-------- include/configs/sunxi-common.h | 18 ------------------ scripts/config_whitelist.txt | 1 - 4 files changed, 1 insertion(+), 28 deletions(-)
You should teach a class in how to write commit messages :-)
PATCH 1/1 fdt/sunxi: Remove OF_STDOUT_PATH
On Wed, 17 Feb 2021 21:45:29 -0700
Simon Glass <[email protected]> wrote:
Hi Simon,
Quoted 27 lines · Andre Przywara
Quoted 17 lines
OF_STDOUT_PATHwas meant to hold the devicetree path to the serial console, to be put into the linux,stdout-path property of the chosen node.The only user of that was sunxi, and it was actually wrong for years
there: the paths hardcoded insunxi_common.hwere not matching the DTs, evident by the leading 0's in nodenames, which have been removed years ago.On top of that, "linux,stdout-path" is now deprecated for a while (Linux commit
2a9d832cc9aaefrom November 2014), and also all modern DTs (including those included in U-Boot) carry a "stdout-path" property already.So remove the stanza from
sunxi_common.h, and, since this was the last user, also remove the associated bits from the rest of U-Boot.Quoted 8 lines
Signed-off-by Andre Przywara <[email protected]>--- README | 1 - common/fdt_support.c | 9 +-------- include/configs/sunxi-common.h | 18 ------------------ scripts/config_whitelist.txt | 1 - 4 files changed, 1 insertion(+), 28 deletions(-)
Quoted 1 line
You should teach a class in how to write commit messages :-)
Thanks :blush:
Quoted 1 line
Reviewed-by Simon Glass <[email protected]>
Thanks, shall I take this patch through the sunxi tree (I have a PR ready anyway), or do you want to take it?
Cheers,
Andre
PATCH 1/1 fdt/sunxi: Remove OF_STDOUT_PATH
Hi Andre,
Quoted 33 lines · Andre Przywara
On Wed, 17 Feb 2021 21:45:29 -0700
Simon Glass <[email protected]> wrote:Hi Simon,
Quoted 27 lines · Andre Przywara
Quoted 25 lines
OF_STDOUT_PATHwas meant to hold the devicetree path to the serial console, to be put into the linux,stdout-path property of the chosen node.The only user of that was sunxi, and it was actually wrong for years
there: the paths hardcoded insunxi_common.hwere not matching the DTs, evident by the leading 0's in nodenames, which have been removed years ago.On top of that, "linux,stdout-path" is now deprecated for a while (Linux commit
2a9d832cc9aaefrom November 2014), and also all modern DTs (including those included in U-Boot) carry a "stdout-path" property already.So remove the stanza from
sunxi_common.h, and, since this was the last user, also remove the associated bits from the rest of U-Boot.Signed-off-by Andre Przywara <[email protected]>--- README | 1 - common/fdt_support.c | 9 +-------- include/configs/sunxi-common.h | 18 ------------------ scripts/config_whitelist.txt | 1 - 4 files changed, 1 insertion(+), 28 deletions(-)
Quoted 8 lines
Quoted 1 line
You should teach a class in how to write commit messages :-)
Thanks :blush:
Quoted 1 line
Reviewed-by Simon Glass <[email protected]>Thanks, shall I take this patch through the sunxi tree (I have a PR ready anyway), or do you want to take it?
Please go ahead with sunxi.
Regards,
Simon