xen/arm: Add Rockchip rk3399 early printk support
PATCH 1/1 xen/arm: Add Rockchip rk3399 early printk support
--- xen/arch/arm/Kconfig.debug | 5 +++++ 1 file changed, 5 insertions(+)
xen/arch/arm/Kconfig.debug +5 -0
@@ -158,6 +158,9 @@ choice config EARLY_PRINTK_RCAR3 bool "Early printk with SCIF2 on Renesas R-Car Gen3 processors" select EARLY_UART_SCIF + config EARLY_PRINTK_RK3399 + bool "Early printk with 8250 on Rockchip RK3399 processors" + select EARLY_UART_8250 config EARLY_PRINTK_SEATTLE bool "Early printk with pl011 for AMD Seattle processor" select EARLY_UART_PL011
@@ -230,6 +233,7 @@ config EARLY_UART_BASE_ADDRESS default 0xd0012000 if EARLY_PRINTK_MVEBU default 0x48020000 if EARLY_PRINTK_OMAP5432 default 0xe6e88000 if EARLY_PRINTK_RCAR3 + default 0xff1a0000 if EARLY_PRINTK_RK3399 default 0xe1010000 if EARLY_PRINTK_SEATTLE default 0x01c28000 if EARLY_PRINTK_SUN6I default 0x01c28000 if EARLY_PRINTK_SUN7I
@@ -270,6 +274,7 @@ config EARLY_UART_8250_REG_SHIFT default 2 if EARLY_PRINTK_BRCM default 2 if EARLY_PRINTK_DRA7 default 2 if EARLY_PRINTK_OMAP5432 + default 2 if EARLY_PRINTK_RK3399 default 2 if EARLY_PRINTK_SUN6I default 2 if EARLY_PRINTK_SUN7I default 2 if EARLY_PRINTK_XGENE_MCDIVITT
Signature · 1 line
2.34.1
Hi,
Quoted 12 lines · Jun Nie
Signed-off-by Jun Nie <[email protected]>--- xen/arch/arm/Kconfig.debug | 5 +++++ 1 file changed, 5 insertions(+)xen/arch/arm/Kconfig.debug +0
-0
xen/arch/arm/Kconfig.debug choice · line 163
Quoted 6 lines
xen/arch/arm/Kconfig.debug +3
-0@@ -158,6 +158,9 @@ choice config EARLY_PRINTK_RCAR3 bool "Early printk with SCIF2 on Renesas R-Car Gen3 processors" select EARLY_UART_SCIF + config EARLY_PRINTK_RK3399 + bool "Early printk with 8250 on Rockchip RK3399 processors" + select EARLY_UART_8250
Platform specific options for early printk are deprecated. You can read it at the top of the file:
"
Deprecated: Alternatively, there are platform specific options
which will have default values for the various parameters. But
such option will soon be removed.
"
~Michal
Quoted 29 lines · Michal Orzel <[email protected]> 于2023年10月26日周四 15:02写道:
Hi,
Quoted 12 lines · Jun Nie
Signed-off-by Jun Nie <[email protected]>--- xen/arch/arm/Kconfig.debug | 5 +++++ 1 file changed, 5 insertions(+)xen/arch/arm/Kconfig.debug +0
-0xen/arch/arm/Kconfig.debug choice · line 163
Quoted 6 lines
xen/arch/arm/Kconfig.debug +3
-0@@ -158,6 +158,9 @@ choice config EARLY_PRINTK_RCAR3 bool "Early printk with SCIF2 on Renesas R-Car Gen3 processors" select EARLY_UART_SCIF + config EARLY_PRINTK_RK3399 + bool "Early printk with 8250 on Rockchip RK3399 processors" + select EARLY_UART_8250Platform specific options for early printk are deprecated. You can read it at the top of the file:
"
Deprecated: Alternatively, there are platform specific options
which will have default values for the various parameters. But
such option will soon be removed.
"
Quoted 1 line
~Michal
Thanks for the reminder! So only below 2 configs shall be configured when compiling the project, right?
EARLY_UART_BASE_ADDRESSEARLY_UART_8250_REG_SHIFT
- Jun
Quoted 32 lines · Jun Nie
Quoted 29 lines · Michal Orzel <[email protected]> 于2023年10月26日周四 15:02写道:
Hi,
Quoted 12 lines · Jun Nie
Signed-off-by Jun Nie <[email protected]>--- xen/arch/arm/Kconfig.debug | 5 +++++ 1 file changed, 5 insertions(+)xen/arch/arm/Kconfig.debug +0
-0xen/arch/arm/Kconfig.debug choice · line 163
Quoted 6 lines
xen/arch/arm/Kconfig.debug +3
-0@@ -158,6 +158,9 @@ choice config EARLY_PRINTK_RCAR3 bool "Early printk with SCIF2 on Renesas R-Car Gen3 processors" select EARLY_UART_SCIF + config EARLY_PRINTK_RK3399 + bool "Early printk with 8250 on Rockchip RK3399 processors" + select EARLY_UART_8250Platform specific options for early printk are deprecated. You can read it at the top of the file:
"
Deprecated: Alternatively, there are platform specific options
which will have default values for the various parameters. But
such option will soon be removed.
"
Quoted 8 lines
Quoted 1 line
~Michal
Thanks for the reminder! So only below 2 configs shall be configured when compiling the project, right?
EARLY_UART_BASE_ADDRESSEARLY_UART_8250_REG_SHIFT
Yes, that's correct
~Michal