arm: Drop deprecated early printk platform options
PATCH 1/1 arm: Drop deprecated early printk platform options
The predefined configurations for early printk have been deprecated for a sufficient amount of time. Let's finally remove them.
Note:
In order not to loose these predefined configurations, I wrote a wiki
page: https://wiki.xenproject.org/wiki/Xen_on_ARM_Early_Printk
--- docs/misc/arm/early-printk.txt | 4 - xen/arch/arm/Kconfig.debug | 155 ++------------------------------- 2 files changed, 9 insertions(+), 150 deletions(-)
docs/misc/arm/early-printk.txt +0 -4
@@ -35,8 +35,4 @@ Other options depends on the driver selected: - For all other uarts there are no additional options. -As a convenience it is also possible to select from a list of -predefined configurations available in the list of choice for "Early -printk" for specific platform. - By default early printk is disabled.
xen/arch/arm/Kconfig.debug +9 -146
231 lines not on this page · raw message
Signature · 1 line
2.25.1
Hi Michal,
Quoted 234 lines · Michal Orzel
The predefined configurations for early printk have been deprecated for a sufficient amount of time. Let's finally remove them.
Note:
In order not to loose these predefined configurations, I wrote a wiki
page: https://wiki.xenproject.org/wiki/Xen_on_ARM_Early_PrintkSigned-off-by Michal Orzel <[email protected]>---
docs/misc/arm/early-printk.txt| 4 -
xen/arch/arm/Kconfig.debug | 155 ++-------------------------------2 files changed, 9 insertions(+), 150 deletions(-)docs/misc/arm/early-printk.txt +0
-4@@ -35,8 +35,4 @@ Other options depends on the driver selected: - For all other uarts there are no additional options. -As a convenience it is also possible to select from a list of -predefined configurations available in the list of choice for "Early -printk" for specific platform. -By default early printk is disabled.
xen/arch/arm/Kconfig.debug +0
-0@@ -13,177 +13,67 @@ choiceChoose one of the UART drivers for early printk, then you'll have to specify the parameters, like the base address.
- Deprecated: Alternatively, there are platform specific options
- which will have default values for the various parameters. But
- such option will soon be removed.
-
configEARLY_UART_CHOICE_8250
selectEARLY_UART_8250
bool "Early printk via 8250 UART"
help
Say Y here if you wish the early printk to direct their
- output to a 8250 UART. You can use this option to
- provide the parameters for the 8250 UART rather than
- selecting one of the platform specific options below if
- you know the parameters for the port.
+ output to a 8250 UART.- This option is preferred over the platform specific
- options; the platform specific options are deprecated
- and will soon be removed.
configEARLY_UART_CHOICE_CADENCE
selectEARLY_UART_CADENCE
depends onARM_64
bool "Early printk via Cadence UART"
help
Say Y here if you wish the early printk to direct their
- output to a Cadence UART. You can use this option to
- provide the parameters for the Cadence UART rather than
- selecting one of the platform specific options below if
- you know the parameters for the port.
+ output to a Cadence UART.- This option is preferred over the platform specific
- options; the platform specific options are deprecated
- and will soon be removed.
configEARLY_UART_CHOICE_EXYNOS4210
selectEARLY_UART_EXYNOS4210
depends onARM_32
bool "Early printk via Exynos4210 UART"
help
Say Y here if you wish the early printk to direct their
- output to a Exynos 4210 UART. You can use this option to
- provide the parameters for the Exynos 4210 UART rather than
- selecting one of the platform specific options below if
- you know the parameters for the port.
+ output to a Exynos 4210 UART.- This option is preferred over the platform specific
- options; the platform specific options are deprecated
- and will soon be removed.
configEARLY_UART_CHOICE_IMX_LPUART
selectEARLY_UART_IMX_LPUART
depends onARM_64
bool "Early printk via i.MX LPUART"
help
Say Y here if you wish the early printk to direct their
- output to a i.MX LPUART. You can use this option to
- provide the parameters for the i.MX LPUART rather than
- selecting one of the platform specific options below if
- you know the parameters for the port.
+ output to a i.MX LPUART.
+
configEARLY_UART_CHOICE_MESON
selectEARLY_UART_MESON
depends onARM_64
bool "Early printk via MESON UART"
help
Say Y here if you wish the early printk to direct their
- output to a MESON UART. You can use this option to
- provide the parameters for the MESON UART rather than
- selecting one of the platform specific options below if
- you know the parameters for the port.
+ output to a MESON UART.- This option is preferred over the platform specific
- options; the platform specific options are deprecated
- and will soon be removed.
configEARLY_UART_CHOICE_MVEBU
selectEARLY_UART_MVEBU
depends onARM_64
bool "Early printk via MVEBU UART"
help
Say Y here if you wish the early printk to direct their
- output to a MVEBU UART. You can use this option to
- provide the parameters for the MVEBU UART rather than
- selecting one of the platform specific options below if
- you know the parameters for the port.
+ output to a MVEBU UART.- This option is preferred over the platform specific
- options; the platform specific options are deprecated
- and will soon be removed.
configEARLY_UART_CHOICE_PL011
selectEARLY_UART_PL011
bool "Early printk via PL011 UART"
help
Say Y here if you wish the early printk to direct their
- output to a PL011 UART. You can use this option to
- provide the parameters for the PL011 UART rather than
- selecting one of the platform specific options below if
- you know the parameters for the port.
+ output to a PL011 UART.- This option is preferred over the platform specific
- options; the platform specific options are deprecated
- and will soon be removed.
configEARLY_UART_CHOICE_SCIF
selectEARLY_UART_SCIF
bool "Early printk via SCIF UART"
help
Say Y here if you wish the early printk to direct their
- output to a SCIF UART. You can use this option to
- provide the parameters for the SCIF UART rather than
- selecting one of the platform specific options below if
- you know the parameters for the port.
+ output to a SCIF UART.- This option is preferred over the platform specific
- options; the platform specific options are deprecated
- and will soon be removed.
-
- configEARLY_PRINTK_BRCM
- bool "Early printk with 8250 on Broadcom 7445D0 boards with A15 processors"
- selectEARLY_UART_8250
- configEARLY_PRINTK_DRA7
- bool "Early printk with 8250 on DRA7 platform"
- selectEARLY_UART_8250
- configEARLY_PRINTK_EXYNOS5250
- bool "Early printk with the second UART on Exynos5250"
- selectEARLY_UART_EXYNOS4210
- depends onARM_32
- configEARLY_PRINTK_FASTMODEL
- bool "Early printk with pl011 on ARM Fastmodel software emulators"
- selectEARLY_UART_PL011
- configEARLY_PRINTK_HIKEY960
- bool "Early printk with pl011 with Hikey 960"
- selectEARLY_UART_PL011
- configEARLY_PRINTK_JUNO
- bool "Early printk with pl011 on Juno platform"
- selectEARLY_UART_PL011
- configEARLY_PRINTK_LAGER
- bool "Early printk with SCIF0 on Renesas Lager board (R-Car H2 processor)"
- selectEARLY_UART_SCIF
- configEARLY_PRINTK_MIDWAY
- bool "Early printk with pl011 on Calxeda Midway processors"
- selectEARLY_UART_PL011
- configEARLY_PRINTK_MVEBU
- bool "Early printk with MVEBU for Marvell Armada 3700 SoCs"
- selectEARLY_UART_MVEBU
- depends onARM_64
- configEARLY_PRINTK_OMAP5432
- bool "Early printk with UART3 on TI OMAP5432 processors"
- selectEARLY_UART_8250
- configEARLY_PRINTK_RCAR3
- bool "Early printk with SCIF2 on Renesas R-Car Gen3 processors"
- selectEARLY_UART_SCIF
- configEARLY_PRINTK_SEATTLE
- bool "Early printk with pl011 for AMD Seattle processor"
- selectEARLY_UART_PL011
- configEARLY_PRINTK_SUN6I
- bool "Early printk with 8250 on Allwinner A31 processors"
- selectEARLY_UART_8250
- configEARLY_PRINTK_SUN7I
- bool "Early printk with 8250 on Allwinner A20 processors"
- selectEARLY_UART_8250
- configEARLY_PRINTK_THUNDERX
- bool "Early printk with pl011 for Cavium ThunderX processor"
- selectEARLY_UART_PL011
- depends onARM_64
- configEARLY_PRINTK_VEXPRESS
- bool "Early printk with pl011 for versatile express"
- selectEARLY_UART_PL011
- configEARLY_PRINTK_XGENE_MCDIVITT
- bool "Early printk with 820 on Xgene mcdivitt platform"
- selectEARLY_UART_8250
- configEARLY_PRINTK_XGENE_STORM
- bool "Early printk with 820 on Xgene storm platform"
- selectEARLY_UART_8250
- configEARLY_PRINTK_ZYNQMP
- bool "Early printk with Cadence UART for Xilinx ZynqMP SoCs"
- selectEARLY_UART_CADENCE
- depends onARM_64
endchoicexen/arch/arm/Kconfig.debug +0
-0@@ -219,25 +109,6 @@ config EARLY_UART_BASE_ADDRESSdepends on
EARLY_PRINTK
hex "Early printk, physical base address of debug UART" range0x00xffffffffifARM_32
- default0xF040AB00ifEARLY_PRINTK_BRCM
- default0x4806A000ifEARLY_PRINTK_DRA7
- default0x1c090000ifEARLY_PRINTK_FASTMODEL
- default0x12c20000ifEARLY_PRINTK_EXYNOS5250
- default0xfff32000ifEARLY_PRINTK_HIKEY960
- default0x7ff80000ifEARLY_PRINTK_JUNO
- default0xe6e60000ifEARLY_PRINTK_LAGER
- default0xfff36000ifEARLY_PRINTK_MIDWAY
- default0xd0012000ifEARLY_PRINTK_MVEBU
- default0x48020000ifEARLY_PRINTK_OMAP5432
- default0xe6e88000ifEARLY_PRINTK_RCAR3
Quoted 8 lines
- default
0xe1010000ifEARLY_PRINTK_SEATTLE
- default0x01c28000ifEARLY_PRINTK_SUN6I
- default0x01c28000ifEARLY_PRINTK_SUN7I
- default0x87e024000000ifEARLY_PRINTK_THUNDERX
- default0x1c090000ifEARLY_PRINTK_VEXPRESS
- default0x1c021000ifEARLY_PRINTK_XGENE_MCDIVITT
- default0x1c020000ifEARLY_PRINTK_XGENE_STORM
- default0xff000000ifEARLY_PRINTK_ZYNQMP
Shouldn't we put a default 0 value here ?
Quoted 15 lines
config
EARLY_UART_PL011_BAUD_RATE
depends onEARLY_UART_PL011xen/arch/arm/Kconfig.debug +0
-0@@ -250,7 +121,6 @@ config EARLY_UART_PL011_BAUD_RATEnot try to initialize the UART, so that bootloader or firmware settings can be used for maximum compatibility.
- default 115200 if
EARLY_PRINTK_FASTMODEL
default 0config
EARLY_UART_PL011_MMIO32xen/arch/arm/Kconfig.debug +0
-0@@ -274,13 +144,6 @@ config EARLY_UART_8250_REG_SHIFTDefault to 0.
Quoted 8 lines
- default 2 if
EARLY_PRINTK_BRCM
- default 2 ifEARLY_PRINTK_DRA7
- default 2 ifEARLY_PRINTK_OMAP5432
- default 2 ifEARLY_PRINTK_SUN6I
- default 2 ifEARLY_PRINTK_SUN7I
- default 2 ifEARLY_PRINTK_XGENE_MCDIVITT
- default 2 ifEARLY_PRINTK_XGENE_STORM
default 0
Seeing that all know example are setting this to 2, wouldn't it make sense to change the default to 2 ?
Cheers
Bertrand
Quoted 5 lines
choice
EARLY_UART_SCIF_VERSIONSignature · 1 line
2.25.1
Hi Bertrand,
Quoted 240 lines · Bertrand Marquis
Hi Michal,
Quoted 236 lines · Michal Orzel
The predefined configurations for early printk have been deprecated for a sufficient amount of time. Let's finally remove them.
Note:
In order not to loose these predefined configurations, I wrote a wiki
page: https://wiki.xenproject.org/wiki/Xen_on_ARM_Early_PrintkSigned-off-by Michal Orzel <[email protected]>---
docs/misc/arm/early-printk.txt| 4 -
xen/arch/arm/Kconfig.debug | 155 ++-------------------------------2 files changed, 9 insertions(+), 150 deletions(-)docs/misc/arm/early-printk.txt +0
-4@@ -35,8 +35,4 @@ Other options depends on the driver selected: - For all other uarts there are no additional options. -As a convenience it is also possible to select from a list of -predefined configurations available in the list of choice for "Early -printk" for specific platform. -By default early printk is disabled.
xen/arch/arm/Kconfig.debug +0
-0@@ -13,177 +13,67 @@ choiceChoose one of the UART drivers for early printk, then you'll have to specify the parameters, like the base address.
- Deprecated: Alternatively, there are platform specific options
- which will have default values for the various parameters. But
- such option will soon be removed.
-
configEARLY_UART_CHOICE_8250
selectEARLY_UART_8250
bool "Early printk via 8250 UART"
help
Say Y here if you wish the early printk to direct their
- output to a 8250 UART. You can use this option to
- provide the parameters for the 8250 UART rather than
- selecting one of the platform specific options below if
- you know the parameters for the port.
+ output to a 8250 UART.- This option is preferred over the platform specific
- options; the platform specific options are deprecated
- and will soon be removed.
configEARLY_UART_CHOICE_CADENCE
selectEARLY_UART_CADENCE
depends onARM_64
bool "Early printk via Cadence UART"
help
Say Y here if you wish the early printk to direct their
- output to a Cadence UART. You can use this option to
- provide the parameters for the Cadence UART rather than
- selecting one of the platform specific options below if
- you know the parameters for the port.
+ output to a Cadence UART.- This option is preferred over the platform specific
- options; the platform specific options are deprecated
- and will soon be removed.
configEARLY_UART_CHOICE_EXYNOS4210
selectEARLY_UART_EXYNOS4210
depends onARM_32
bool "Early printk via Exynos4210 UART"
help
Say Y here if you wish the early printk to direct their
- output to a Exynos 4210 UART. You can use this option to
- provide the parameters for the Exynos 4210 UART rather than
- selecting one of the platform specific options below if
- you know the parameters for the port.
+ output to a Exynos 4210 UART.- This option is preferred over the platform specific
- options; the platform specific options are deprecated
- and will soon be removed.
configEARLY_UART_CHOICE_IMX_LPUART
selectEARLY_UART_IMX_LPUART
depends onARM_64
bool "Early printk via i.MX LPUART"
help
Say Y here if you wish the early printk to direct their
- output to a i.MX LPUART. You can use this option to
- provide the parameters for the i.MX LPUART rather than
- selecting one of the platform specific options below if
- you know the parameters for the port.
+ output to a i.MX LPUART.
+
configEARLY_UART_CHOICE_MESON
selectEARLY_UART_MESON
depends onARM_64
bool "Early printk via MESON UART"
help
Say Y here if you wish the early printk to direct their
- output to a MESON UART. You can use this option to
- provide the parameters for the MESON UART rather than
- selecting one of the platform specific options below if
- you know the parameters for the port.
+ output to a MESON UART.- This option is preferred over the platform specific
- options; the platform specific options are deprecated
- and will soon be removed.
configEARLY_UART_CHOICE_MVEBU
selectEARLY_UART_MVEBU
depends onARM_64
bool "Early printk via MVEBU UART"
help
Say Y here if you wish the early printk to direct their
- output to a MVEBU UART. You can use this option to
- provide the parameters for the MVEBU UART rather than
- selecting one of the platform specific options below if
- you know the parameters for the port.
+ output to a MVEBU UART.- This option is preferred over the platform specific
- options; the platform specific options are deprecated
- and will soon be removed.
configEARLY_UART_CHOICE_PL011
selectEARLY_UART_PL011
bool "Early printk via PL011 UART"
help
Say Y here if you wish the early printk to direct their
- output to a PL011 UART. You can use this option to
- provide the parameters for the PL011 UART rather than
- selecting one of the platform specific options below if
- you know the parameters for the port.
+ output to a PL011 UART.- This option is preferred over the platform specific
- options; the platform specific options are deprecated
- and will soon be removed.
configEARLY_UART_CHOICE_SCIF
selectEARLY_UART_SCIF
bool "Early printk via SCIF UART"
help
Say Y here if you wish the early printk to direct their
- output to a SCIF UART. You can use this option to
- provide the parameters for the SCIF UART rather than
- selecting one of the platform specific options below if
- you know the parameters for the port.
+ output to a SCIF UART.- This option is preferred over the platform specific
- options; the platform specific options are deprecated
- and will soon be removed.
-
- configEARLY_PRINTK_BRCM
- bool "Early printk with 8250 on Broadcom 7445D0 boards with A15 processors"
- selectEARLY_UART_8250
- configEARLY_PRINTK_DRA7
- bool "Early printk with 8250 on DRA7 platform"
- selectEARLY_UART_8250
- configEARLY_PRINTK_EXYNOS5250
- bool "Early printk with the second UART on Exynos5250"
- selectEARLY_UART_EXYNOS4210
- depends onARM_32
- configEARLY_PRINTK_FASTMODEL
- bool "Early printk with pl011 on ARM Fastmodel software emulators"
- selectEARLY_UART_PL011
- configEARLY_PRINTK_HIKEY960
- bool "Early printk with pl011 with Hikey 960"
- selectEARLY_UART_PL011
- configEARLY_PRINTK_JUNO
- bool "Early printk with pl011 on Juno platform"
- selectEARLY_UART_PL011
- configEARLY_PRINTK_LAGER
- bool "Early printk with SCIF0 on Renesas Lager board (R-Car H2 processor)"
- selectEARLY_UART_SCIF
- configEARLY_PRINTK_MIDWAY
- bool "Early printk with pl011 on Calxeda Midway processors"
- selectEARLY_UART_PL011
- configEARLY_PRINTK_MVEBU
- bool "Early printk with MVEBU for Marvell Armada 3700 SoCs"
- selectEARLY_UART_MVEBU
- depends onARM_64
- configEARLY_PRINTK_OMAP5432
- bool "Early printk with UART3 on TI OMAP5432 processors"
- selectEARLY_UART_8250
- configEARLY_PRINTK_RCAR3
- bool "Early printk with SCIF2 on Renesas R-Car Gen3 processors"
- selectEARLY_UART_SCIF
- configEARLY_PRINTK_SEATTLE
- bool "Early printk with pl011 for AMD Seattle processor"
- selectEARLY_UART_PL011
- configEARLY_PRINTK_SUN6I
- bool "Early printk with 8250 on Allwinner A31 processors"
- selectEARLY_UART_8250
- configEARLY_PRINTK_SUN7I
- bool "Early printk with 8250 on Allwinner A20 processors"
- selectEARLY_UART_8250
- configEARLY_PRINTK_THUNDERX
- bool "Early printk with pl011 for Cavium ThunderX processor"
- selectEARLY_UART_PL011
- depends onARM_64
- configEARLY_PRINTK_VEXPRESS
- bool "Early printk with pl011 for versatile express"
- selectEARLY_UART_PL011
- configEARLY_PRINTK_XGENE_MCDIVITT
- bool "Early printk with 820 on Xgene mcdivitt platform"
- selectEARLY_UART_8250
- configEARLY_PRINTK_XGENE_STORM
- bool "Early printk with 820 on Xgene storm platform"
- selectEARLY_UART_8250
- configEARLY_PRINTK_ZYNQMP
- bool "Early printk with Cadence UART for Xilinx ZynqMP SoCs"
- selectEARLY_UART_CADENCE
- depends onARM_64
endchoicexen/arch/arm/Kconfig.debug +0
-0@@ -219,25 +109,6 @@ config EARLY_UART_BASE_ADDRESSdepends on
EARLY_PRINTK
hex "Early printk, physical base address of debug UART" range0x00xffffffffifARM_32
- default0xF040AB00ifEARLY_PRINTK_BRCM
- default0x4806A000ifEARLY_PRINTK_DRA7
- default0x1c090000ifEARLY_PRINTK_FASTMODEL
- default0x12c20000ifEARLY_PRINTK_EXYNOS5250
- default0xfff32000ifEARLY_PRINTK_HIKEY960
- default0x7ff80000ifEARLY_PRINTK_JUNO
- default0xe6e60000ifEARLY_PRINTK_LAGER
- default0xfff36000ifEARLY_PRINTK_MIDWAY
- default0xd0012000ifEARLY_PRINTK_MVEBU
- default0x48020000ifEARLY_PRINTK_OMAP5432
- default0xe6e88000ifEARLY_PRINTK_RCAR3
- default0xe1010000ifEARLY_PRINTK_SEATTLE
- default0x01c28000ifEARLY_PRINTK_SUN6I
Quoted 8 lines
Quoted 6 lines
- default
0x01c28000ifEARLY_PRINTK_SUN7I
- default0x87e024000000ifEARLY_PRINTK_THUNDERX
- default0x1c090000ifEARLY_PRINTK_VEXPRESS
- default0x1c021000ifEARLY_PRINTK_XGENE_MCDIVITT
- default0x1c020000ifEARLY_PRINTK_XGENE_STORM
- default0xff000000ifEARLY_PRINTK_ZYNQMPShouldn't we put a default 0 value here ?
No, we should not. It's done like that on purpose to trigger build error if user enables early printk but forgets to specify an address. Adding default 0 would remove this guard behavior.
Quoted 16 lines
Quoted 16 lines
config
EARLY_UART_PL011_BAUD_RATE
depends onEARLY_UART_PL011xen/arch/arm/Kconfig.debug +0
-0@@ -250,7 +121,6 @@ config EARLY_UART_PL011_BAUD_RATEnot try to initialize the UART, so that bootloader or firmware settings can be used for maximum compatibility.
- default 115200 if
EARLY_PRINTK_FASTMODEL
default 0config
EARLY_UART_PL011_MMIO32xen/arch/arm/Kconfig.debug +0
-0@@ -274,13 +144,6 @@ config EARLY_UART_8250_REG_SHIFTDefault to 0.
Quoted 11 lines
Quoted 8 lines
- default 2 if
EARLY_PRINTK_BRCM
- default 2 ifEARLY_PRINTK_DRA7
- default 2 ifEARLY_PRINTK_OMAP5432
- default 2 ifEARLY_PRINTK_SUN6I
- default 2 ifEARLY_PRINTK_SUN7I
- default 2 ifEARLY_PRINTK_XGENE_MCDIVITT
- default 2 ifEARLY_PRINTK_XGENE_STORM
default 0Seeing that all know example are setting this to 2, wouldn't it make sense to change the default to 2 ?
It would be a change in behavior and would not fit the purpose of this patch. Also, the EARLY_UART_8250_REG_SHIFT Kconfig help mentions 0 as a default. There might be platforms 8250 based where we don't know the correct reg shift value. Better not to make any assumptions.
~Michal
Bertrand Marquis
Reviewed-byHi,
Quoted 19 lines · Michal Orzel
Hi Bertrand,
Quoted 14 lines · Bertrand Marquis
Hi Michal,
Quoted 10 lines · Michal Orzel
The predefined configurations for early printk have been deprecated for a sufficient amount of time. Let's finally remove them.
Note:
In order not to loose these predefined configurations, I wrote a wiki
page: https://wiki.xenproject.org/wiki/Xen_on_ARM_Early_PrintkSigned-off-by Michal Orzel <[email protected]>
Quoted 234 lines
Quoted 226 lines
Quoted 226 lines
---
docs/misc/arm/early-printk.txt| 4 -
xen/arch/arm/Kconfig.debug | 155 ++-------------------------------2 files changed, 9 insertions(+), 150 deletions(-)docs/misc/arm/early-printk.txt +0
-4@@ -35,8 +35,4 @@ Other options depends on the driver selected: - For all other uarts there are no additional options. -As a convenience it is also possible to select from a list of -predefined configurations available in the list of choice for "Early -printk" for specific platform. -By default early printk is disabled.
xen/arch/arm/Kconfig.debug +0
-0@@ -13,177 +13,67 @@ choiceChoose one of the UART drivers for early printk, then you'll have to specify the parameters, like the base address.
- Deprecated: Alternatively, there are platform specific options
- which will have default values for the various parameters. But
- such option will soon be removed.
-
configEARLY_UART_CHOICE_8250
selectEARLY_UART_8250
bool "Early printk via 8250 UART"
help
Say Y here if you wish the early printk to direct their
- output to a 8250 UART. You can use this option to
- provide the parameters for the 8250 UART rather than
- selecting one of the platform specific options below if
- you know the parameters for the port.
+ output to a 8250 UART.- This option is preferred over the platform specific
- options; the platform specific options are deprecated
- and will soon be removed.
configEARLY_UART_CHOICE_CADENCE
selectEARLY_UART_CADENCE
depends onARM_64
bool "Early printk via Cadence UART"
help
Say Y here if you wish the early printk to direct their
- output to a Cadence UART. You can use this option to
- provide the parameters for the Cadence UART rather than
- selecting one of the platform specific options below if
- you know the parameters for the port.
+ output to a Cadence UART.- This option is preferred over the platform specific
- options; the platform specific options are deprecated
- and will soon be removed.
configEARLY_UART_CHOICE_EXYNOS4210
selectEARLY_UART_EXYNOS4210
depends onARM_32
bool "Early printk via Exynos4210 UART"
help
Say Y here if you wish the early printk to direct their
- output to a Exynos 4210 UART. You can use this option to
- provide the parameters for the Exynos 4210 UART rather than
- selecting one of the platform specific options below if
- you know the parameters for the port.
+ output to a Exynos 4210 UART.- This option is preferred over the platform specific
- options; the platform specific options are deprecated
- and will soon be removed.
configEARLY_UART_CHOICE_IMX_LPUART
selectEARLY_UART_IMX_LPUART
depends onARM_64
bool "Early printk via i.MX LPUART"
help
Say Y here if you wish the early printk to direct their
- output to a i.MX LPUART. You can use this option to
- provide the parameters for the i.MX LPUART rather than
- selecting one of the platform specific options below if
- you know the parameters for the port.
+ output to a i.MX LPUART.
+
configEARLY_UART_CHOICE_MESON
selectEARLY_UART_MESON
depends onARM_64
bool "Early printk via MESON UART"
help
Say Y here if you wish the early printk to direct their
- output to a MESON UART. You can use this option to
- provide the parameters for the MESON UART rather than
- selecting one of the platform specific options below if
- you know the parameters for the port.
+ output to a MESON UART.- This option is preferred over the platform specific
- options; the platform specific options are deprecated
- and will soon be removed.
configEARLY_UART_CHOICE_MVEBU
selectEARLY_UART_MVEBU
depends onARM_64
bool "Early printk via MVEBU UART"
help
Say Y here if you wish the early printk to direct their
- output to a MVEBU UART. You can use this option to
- provide the parameters for the MVEBU UART rather than
- selecting one of the platform specific options below if
- you know the parameters for the port.
+ output to a MVEBU UART.- This option is preferred over the platform specific
- options; the platform specific options are deprecated
- and will soon be removed.
configEARLY_UART_CHOICE_PL011
selectEARLY_UART_PL011
bool "Early printk via PL011 UART"
help
Say Y here if you wish the early printk to direct their
- output to a PL011 UART. You can use this option to
- provide the parameters for the PL011 UART rather than
- selecting one of the platform specific options below if
- you know the parameters for the port.
+ output to a PL011 UART.- This option is preferred over the platform specific
- options; the platform specific options are deprecated
- and will soon be removed.
configEARLY_UART_CHOICE_SCIF
selectEARLY_UART_SCIF
bool "Early printk via SCIF UART"
help
Say Y here if you wish the early printk to direct their
- output to a SCIF UART. You can use this option to
- provide the parameters for the SCIF UART rather than
- selecting one of the platform specific options below if
- you know the parameters for the port.
+ output to a SCIF UART.- This option is preferred over the platform specific
- options; the platform specific options are deprecated
- and will soon be removed.
-
- configEARLY_PRINTK_BRCM
- bool "Early printk with 8250 on Broadcom 7445D0 boards with A15 processors"
- selectEARLY_UART_8250
- configEARLY_PRINTK_DRA7
- bool "Early printk with 8250 on DRA7 platform"
- selectEARLY_UART_8250
- configEARLY_PRINTK_EXYNOS5250
- bool "Early printk with the second UART on Exynos5250"
- selectEARLY_UART_EXYNOS4210
- depends onARM_32
- configEARLY_PRINTK_FASTMODEL
- bool "Early printk with pl011 on ARM Fastmodel software emulators"
- selectEARLY_UART_PL011
- configEARLY_PRINTK_HIKEY960
- bool "Early printk with pl011 with Hikey 960"
- selectEARLY_UART_PL011
- configEARLY_PRINTK_JUNO
- bool "Early printk with pl011 on Juno platform"
- selectEARLY_UART_PL011
- configEARLY_PRINTK_LAGER
- bool "Early printk with SCIF0 on Renesas Lager board (R-Car H2 processor)"
- selectEARLY_UART_SCIF
- configEARLY_PRINTK_MIDWAY
- bool "Early printk with pl011 on Calxeda Midway processors"
- selectEARLY_UART_PL011
- configEARLY_PRINTK_MVEBU
- bool "Early printk with MVEBU for Marvell Armada 3700 SoCs"
- selectEARLY_UART_MVEBU
- depends onARM_64
- configEARLY_PRINTK_OMAP5432
- bool "Early printk with UART3 on TI OMAP5432 processors"
- selectEARLY_UART_8250
- configEARLY_PRINTK_RCAR3
- bool "Early printk with SCIF2 on Renesas R-Car Gen3 processors"
- selectEARLY_UART_SCIF
- configEARLY_PRINTK_SEATTLE
- bool "Early printk with pl011 for AMD Seattle processor"
- selectEARLY_UART_PL011
- configEARLY_PRINTK_SUN6I
- bool "Early printk with 8250 on Allwinner A31 processors"
- selectEARLY_UART_8250
- configEARLY_PRINTK_SUN7I
- bool "Early printk with 8250 on Allwinner A20 processors"
- selectEARLY_UART_8250
- configEARLY_PRINTK_THUNDERX
- bool "Early printk with pl011 for Cavium ThunderX processor"
- selectEARLY_UART_PL011
- depends onARM_64
- configEARLY_PRINTK_VEXPRESS
- bool "Early printk with pl011 for versatile express"
- selectEARLY_UART_PL011
- configEARLY_PRINTK_XGENE_MCDIVITT
- bool "Early printk with 820 on Xgene mcdivitt platform"
- selectEARLY_UART_8250
- configEARLY_PRINTK_XGENE_STORM
- bool "Early printk with 820 on Xgene storm platform"
- selectEARLY_UART_8250
- configEARLY_PRINTK_ZYNQMP
- bool "Early printk with Cadence UART for Xilinx ZynqMP SoCs"
- selectEARLY_UART_CADENCE
- depends onARM_64
endchoicexen/arch/arm/Kconfig.debug +0
-0@@ -219,25 +109,6 @@ config EARLY_UART_BASE_ADDRESSdepends on
EARLY_PRINTK
hex "Early printk, physical base address of debug UART" range0x00xffffffffifARM_32
- default0xF040AB00ifEARLY_PRINTK_BRCM
- default0x4806A000ifEARLY_PRINTK_DRA7
- default0x1c090000ifEARLY_PRINTK_FASTMODEL
- default0x12c20000ifEARLY_PRINTK_EXYNOS5250
- default0xfff32000ifEARLY_PRINTK_HIKEY960
- default0x7ff80000ifEARLY_PRINTK_JUNO
- default0xe6e60000ifEARLY_PRINTK_LAGER
- default0xfff36000ifEARLY_PRINTK_MIDWAY
- default0xd0012000ifEARLY_PRINTK_MVEBU
- default0x48020000ifEARLY_PRINTK_OMAP5432
- default0xe6e88000ifEARLY_PRINTK_RCAR3
- default0xe1010000ifEARLY_PRINTK_SEATTLE
- default0x01c28000ifEARLY_PRINTK_SUN6IQuoted 8 lines
Quoted 6 lines
- default
0x01c28000ifEARLY_PRINTK_SUN7I
- default0x87e024000000ifEARLY_PRINTK_THUNDERX
- default0x1c090000ifEARLY_PRINTK_VEXPRESS
- default0x1c021000ifEARLY_PRINTK_XGENE_MCDIVITT
- default0x1c020000ifEARLY_PRINTK_XGENE_STORM
- default0xff000000ifEARLY_PRINTK_ZYNQMPShouldn't we put a default 0 value here ?
Quoted 4 lines
No, we should not. It's done like that on purpose to trigger build error if user enables early printk but forgets to specify an address. Adding default 0 would remove this guard behavior.
Ok makes sense.
Quoted 27 lines
Quoted 16 lines
Quoted 16 lines
config
EARLY_UART_PL011_BAUD_RATE
depends onEARLY_UART_PL011xen/arch/arm/Kconfig.debug +0
-0@@ -250,7 +121,6 @@ config EARLY_UART_PL011_BAUD_RATEnot try to initialize the UART, so that bootloader or firmware settings can be used for maximum compatibility.
- default 115200 if
EARLY_PRINTK_FASTMODEL
default 0config
EARLY_UART_PL011_MMIO32xen/arch/arm/Kconfig.debug +0
-0@@ -274,13 +144,6 @@ config EARLY_UART_8250_REG_SHIFTDefault to 0.
Quoted 11 lines
Quoted 8 lines
- default 2 if
EARLY_PRINTK_BRCM
- default 2 ifEARLY_PRINTK_DRA7
- default 2 ifEARLY_PRINTK_OMAP5432
- default 2 ifEARLY_PRINTK_SUN6I
- default 2 ifEARLY_PRINTK_SUN7I
- default 2 ifEARLY_PRINTK_XGENE_MCDIVITT
- default 2 ifEARLY_PRINTK_XGENE_STORM
default 0Seeing that all know example are setting this to 2, wouldn't it make sense to change the default to 2 ?
Quoted 5 lines
It would be a change in behavior and would not fit the purpose of this patch. Also, the
EARLY_UART_8250_REG_SHIFTKconfighelp mentions 0 as a default. There might be platforms 8250 based where we don't know the correct reg shift value. Better not to make any assumptions.
Ok.
Quoted 1 line
~Michal
Quoted 6 lines · Michal Orzel
The predefined configurations for early printk have been deprecated for a sufficient amount of time. Let's finally remove them.
Note:
In order not to loose these predefined configurations, I wrote a wiki
page: https://wiki.xenproject.org/wiki/Xen_on_ARM_Early_Printk
Minor point. "lose" here; "loose" is a quite-different word.
~Andrew
Hi,
Quoted 9 lines · Andrew Cooper
Quoted 6 lines · Michal Orzel
The predefined configurations for early printk have been deprecated for a sufficient amount of time. Let's finally remove them.
Note:
In order not to loose these predefined configurations, I wrote a wiki
page: https://wiki.xenproject.org/wiki/Xen_on_ARM_Early_PrintkMinor point. "lose" here; "loose" is a quite-different word.
I fixed it on commit.
Cheers,
Signature · 1 line
Julien Grall