-off-by: Lukasz Czechowski
---
common/usb_onboard_hub.c | 15 ++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/common/usb_onboard_hub.c b/common/usb_onboard_hub.c
index dbe4c3cf9b83..805b2ccbc009 100644
--- a/common/usb_onboard_hub.c
+++ b/common/usb_onboard_hub.c
: Quentin Schulz
Signed-off-by: Lukasz Czechowski
---
common/usb_onboard_hub.c | 68
1 file changed, 51 insertions(+), 17 deletions(-)
diff --git a/common/usb_onboard_hub.c b/common/usb_onboard_hub.c
index 046831d09668..dbe4c3cf9b83 100644
--- a
ets reset and we might get
into the same issue of the hub being not enumerated.
Reviewed-by: Quentin Schulz
Signed-off-by: Lukasz Czechowski
---
common/usb_onboard_hub.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/common/usb_onboard_hub.c b/common/usb_onboard_hub.c
index c63791
, the DEVRES config must
be enabled, otherwise the devres functions fall back to non-managed
variants. Set the necessary dependency to DEVRES in Kconfig.
Reviewed-by: Quentin Schulz
Signed-off-by: Lukasz Czechowski
---
common/usb_onboard_hub.c | 3 ---
drivers/usb/Kconfig | 1 +
2 files
r-hub node is used to find out if it
was already done. In case peer-hub was bound, -ENODEV is returned.
Reviewed-by: Quentin Schulz
Signed-off-by: Lukasz Czechowski
---
common/usb_onboard_hub.c | 15 ++-
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/common/usb_onboa
ct on main
usb_hub driver.
Fourth patch extends the driver with support for multiple power
supplies, the same way it is done in kernel driver.
Finally, last patch provides hub data and of_match table entries
for Cypress HX3
Tested-by: Quentin Schulz # RK3399 Puma Haikou
Signed-off-by: Lukasz
ct on main
usb_hub driver.
Fourth patch extends the driver with support for multiple power
supplies, the same way it is done in kernel driver.
Finally, last patch provides hub data and of_match table entries
for Cypress HX3
Signed-off-by: Lukasz Czechowski
---
Changes in v3:
- Rebased on top
-by: Lukasz Czechowski
---
common/usb_onboard_hub.c | 67
1 file changed, 50 insertions(+), 17 deletions(-)
diff --git a/common/usb_onboard_hub.c b/common/usb_onboard_hub.c
index 046831d09668..273b626dbaee 100644
--- a/common/usb_onboard_hub.c
+++ b
-off-by: Lukasz Czechowski
---
common/usb_onboard_hub.c | 15 ++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/common/usb_onboard_hub.c b/common/usb_onboard_hub.c
index 273b626dbaee..eb0694f1a44b 100644
--- a/common/usb_onboard_hub.c
+++ b/common/usb_onboard_hub.c
r-hub node is used to find out if it
was already done. In case peer-hub was bound, -ENODEV is returned.
Reviewed-by: Quentin Schulz
Signed-off-by: Lukasz Czechowski
---
common/usb_onboard_hub.c | 15 ++-
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/common/usb_onboa
ets reset and we might get
into the same issue of the hub being not enumerated.
Reviewed-by: Quentin Schulz
Signed-off-by: Lukasz Czechowski
---
common/usb_onboard_hub.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/common/usb_onboard_hub.c b/common/usb_onboard_hub.c
index c63791
, the DEVRES config must
be enabled, otherwise the devres functions fall back to non-managed
variants. Set the necessary dependency to DEVRES in Kconfig.
Signed-off-by: Lukasz Czechowski
---
common/usb_onboard_hub.c | 3 ---
drivers/usb/Kconfig | 1 +
2 files changed, 1 insertion(+), 3
, the DEVRES config must
be enabled, otherwise the devres functions fall back to non-managed
variants. Set the necessary dependency to DEVRES in Kconfig.
Signed-off-by: Lukasz Czechowski
---
common/usb_onboard_hub.c | 3 ---
drivers/usb/Kconfig | 1 +
2 files changed, 1 insertion(+), 3
-by: Lukasz Czechowski
---
common/usb_onboard_hub.c | 65
1 file changed, 49 insertions(+), 16 deletions(-)
diff --git a/common/usb_onboard_hub.c b/common/usb_onboard_hub.c
index dcaa24d30ece..2d2114ea6d17 100644
--- a/common/usb_onboard_hub.c
+++ b
-off-by: Lukasz Czechowski
---
common/usb_onboard_hub.c | 15 ++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/common/usb_onboard_hub.c b/common/usb_onboard_hub.c
index 2d2114ea6d17..244d7cfb1294 100644
--- a/common/usb_onboard_hub.c
+++ b/common/usb_onboard_hub.c
ets reset and we might get
into the same issue of the hub being not enumerated.
Reviewed-by: Quentin Schulz
Signed-off-by: Lukasz Czechowski
---
common/usb_onboard_hub.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/common/usb_onboard_hub.c b/common/usb_onboard_hub.c
index 286f90
r-hub node is used to find out if it
was already done. In case peer-hub was bound, -ENODEV is returned.
Signed-off-by: Lukasz Czechowski
---
common/usb_onboard_hub.c | 15 ++-
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/common/usb_onboard_hub.c b/common/usb_onb
ct on main
usb_hub driver.
Fourth patch extends the driver with support for multiple power
supplies, the same way it is done in kernel driver.
Finally, last patch provides hub data and of_match table entries
for Cypress HX3
Signed-off-by: Lukasz Czechowski
---
Changes in v2:
- Replaced the
consistency with implementations for other platforms.
Signed-off-by: Lukasz Czechowski
---
lib/efi/efi_stub.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/efi/efi_stub.c b/lib/efi/efi_stub.c
index 40fc29d9adf7..a083c7f1e9b4 100644
--- a/lib/efi/efi_stub.c
+++ b/lib/efi
with other rockchip boards.
Signed-off-by: Lukasz Czechowski
Reviewed-by: Quentin Schulz
Reviewed-by: Kever Yang
---
arch/arm/mach-rockchip/Kconfig | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
index dac160d33ae3
Update the definition of _debug_uart_putc to static inline.
This matches the instructions in include/debug_uart.h and
provides consistency with implementations for other platforms.
Signed-off-by: Lukasz Czechowski
---
arch/arm/mach-uniphier/debug-uart/debug-uart.c | 2 +-
1 file changed, 1
In case DEBUG UART is not used, define dummy macros replacing
the actual function implementations that will not be available.
This allows to compile code and avoid linker errors.
Redefine the DEBUG_UART_FUNCS macro if DEBUG UART is not available,
to avoid compilation errors.
Signed-off-by: Lukasz
Allow to disable serial console in TPL and SPL. Weak dependency
to SPL_SERIAL and TPL_SERIAL is also used in other Rockchip boards.
Signed-off-by: Lukasz Czechowski
Reviewed-by: Quentin Schulz
Reviewed-by: Kever Yang
---
arch/arm/mach-rockchip/Kconfig | 4 ++--
1 file changed, 2 insertions
The RAM_ROCKCHIP_DEBUG can be used only if DEBUG_UART is
available.
The next commit introduces changes in definition of debug
uart functions, so that DEBUG_UART is required to be defined
in order to initialize uart and use print functions.
Signed-off-by: Lukasz Czechowski
Reviewed-by: Kever Yang
r/20250515-silent_console-v4-0-dec6c8391...@thaumatec.com
--
2.43.0
---
Lukasz Czechowski (6):
arm: uniphier: Change _debug_uart_putc function to inline
efi: stub: Change _debug_uart_putc function to inline
ram: rockchip: Fix dependency of RAM_ROCKCHIP_DEBUG
debug_uart: Rep
The RAM_ROCKCHIP_DEBUG can be used only if DEBUG_UART is
available, otherwise it won't have any effect.
Signed-off-by: Lukasz Czechowski
Reviewed-by: Kever Yang
---
drivers/ram/rockchip/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/ram/rockchip/Kconfig b/driver
with other rockchip boards.
Signed-off-by: Lukasz Czechowski
Reviewed-by: Quentin Schulz
Reviewed-by: Kever Yang
---
arch/arm/mach-rockchip/Kconfig | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
index dac160d33ae3
Allow to disable serial console in TPL and SPL. Weak dependency
to SPL_SERIAL and TPL_SERIAL is also used in other Rockchip boards.
Signed-off-by: Lukasz Czechowski
Reviewed-by: Quentin Schulz
Reviewed-by: Kever Yang
---
arch/arm/mach-rockchip/Kconfig | 4 ++--
1 file changed, 2 insertions
In case DEBUG UART is not used, define dummy macros replacing
the actual function implementations that will not be available.
This allows to compile code and avoid linker errors.
Redefine the DEBUG_UART_FUNCS macro if DEBUG UART is not available,
to avoid compilation errors.
Signed-off-by: Lukasz
Initialize the debug uart only in case CONFIG_DEBUG_UART is
enabled. The _debug_uart_putc is used internally by debug uart
functions, so it must be also included inside #ifdef block,
otherwise it will cause compilation warnings.
Signed-off-by: Lukasz Czechowski
---
lib/efi/efi_stub.c | 2 ++
1
CONFIG_DEBUG_UART is not enabled. The #ifdef directive is used to
conditionally define debug uart functions, as suggested by Quentin.
- Fixed invalid redefinition of DEBUG_UART_FUNCS macro, and changed
the dummy print functions implementation in debug_uart.h
--
2.43.0
---
Lukasz Czechowski (5
, so it is set to 0.
The compatible strings added to of_match table are
compliant with usb/cypress,hx3.yaml bindings.
[1]
https://www.infineon.com/dgdl/Infineon-HX3_USB_3_0_Hub_Consumer_Industrial-DataSheet-v22_00-EN.pdf?fileId=8ac78c8c7d0d8da4017d0ecb53f644b8
Signed-off-by: Lukasz Czechowski
-by: Lukasz Czechowski
---
common/usb_onboard_hub.c | 45 +
1 file changed, 33 insertions(+), 12 deletions(-)
diff --git a/common/usb_onboard_hub.c b/common/usb_onboard_hub.c
index 325c274ed952..b8fa38a4111d 100644
--- a/common/usb_onboard_hub.c
+++ b
ot;usb reset" command.
To fix this, set the reset gpio to active before freeing, to put
the hub into reset state.
Signed-off-by: Lukasz Czechowski
---
common/usb_onboard_hub.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/common/usb_onboard_hub.c b/common/usb_onboar
r-hub node is used to find out if it
was already done. In case peer-hub was bound, -ENODEV is returned.
Signed-off-by: Lukasz Czechowski
---
common/usb_onboard_hub.c | 15 ++-
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/common/usb_onboard_hub.c b/common/usb_onb
r multiple power
supplies, tha same way it is done in kernel driver.
Finally, last patch provides hub data and of_match table entries
for Cypress HX3
Signed-off-by: Lukasz Czechowski
---
Lukasz Czechowski (4):
usb: onboard-hub: Use the ofnode to check if the peer-hub was probed
usb: onboar
with other rockchip boards.
Signed-off-by: Lukasz Czechowski
Reviewed-by: Quentin Schulz
Reviewed-by: Kever Yang
---
arch/arm/mach-rockchip/Kconfig | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
index 47a6275d45f..c9aaf6d3476
Allow to disable serial console in TPL and SPL. Weak dependency
to SPL_SERIAL and TPL_SERIAL is also used in other Rockchip boards.
Signed-off-by: Lukasz Czechowski
Reviewed-by: Quentin Schulz
Reviewed-by: Kever Yang
---
arch/arm/mach-rockchip/Kconfig | 4 ++--
1 file changed, 2 insertions
compilation
warning.
Signed-off-by: Lukasz Czechowski
Reviewed-by: Simon Glass
Reviewed-by: Kever Yang
---
include/debug_uart.h | 16
1 file changed, 16 insertions(+)
diff --git a/include/debug_uart.h b/include/debug_uart.h
index 714b369e6fe..dc0f1aa4c98 100644
--- a/include
in v3:
- Dropped [PATCH v2 3/5] ram: rockchip: Add separate RAM_ROCKCHIP_DEBUG config
for TPL/SPL
As suggested by Kever, dependency on DEBUG_UART is sufficient and this patch
was not needed.
Lukasz Czechowski (4):
debug_uart: Replace debug functions with dummies if CONFIG_DEBUG_UART
is
The RAM_ROCKCHIP_DEBUG can be used only if DEBUG_UART is
available, otherwise it won't have any effect.
Signed-off-by: Lukasz Czechowski
Reviewed-by: Kever Yang
---
drivers/ram/rockchip/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/ram/rockchip/Kconfig b/driver
with other rockchip boards.
Signed-off-by: Lukasz Czechowski
Reviewed-by: Quentin Schulz
---
arch/arm/mach-rockchip/Kconfig | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
index 47a6275d45f..c9aaf6d3476 100644
--- a/arch/arm
Allow to disable serial console in TPL and SPL. Weak dependency
to SPL_SERIAL and TPL_SERIAL is also used in other Rockchip boards.
Signed-off-by: Lukasz Czechowski
Reviewed-by: Quentin Schulz
---
arch/arm/mach-rockchip/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff
) directives with
CONFIG_IS_ENABLED(RAM_ROCKCHIP_DEBUG) to utilize the configuration
changes.
Update defconfigs of affected boards so that behavior
is not changed.
Signed-off-by: Lukasz Czechowski
---
configs/anbernic-rgxx3-rk3566_defconfig | 1 +
configs/neu2-io-rv1126_defconfig | 2
The RAM_ROCKCHIP_DEBUG can be used only if DEBUG_UART is
available, otherwise it won't have any effect.
Signed-off-by: Lukasz Czechowski
---
drivers/ram/rockchip/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/ram/rockchip/Kconfig b/drivers/ram/rockchip/Kconfig
compilation
warning.
Signed-off-by: Lukasz Czechowski
Reviewed-by: Simon Glass
---
include/debug_uart.h | 16
1 file changed, 16 insertions(+)
diff --git a/include/debug_uart.h b/include/debug_uart.h
index 714b369e6fe..dc0f1aa4c98 100644
--- a/include/debug_uart.h
+++ b/include
directly in serial driver.
This patch series fixes the dependencies in Kconfig and provides
dummy implementation of debug_uart functions that are linked in case
serial driver is not used.
changes in v2:
- Update commit titles
- Create separate SPL and TPL symbols for RAM_ROCKCHIP_DEBUG
Lukasz
with other rockchip boards.
Signed-off-by: Lukasz Czechowski
---
arch/arm/mach-rockchip/Kconfig | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
index 47a6275d45f..c9aaf6d3476 100644
--- a/arch/arm/mach-rockchip/Kconfig
+++ b/arch
Allow to disable serial console in TPL and SPL. Weak dependency
to SPL_SERIAL and TPL_SERIAL is also used in other Rockchip boards.
Signed-off-by: Lukasz Czechowski
---
arch/arm/mach-rockchip/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-rockchip
The RAM_ROCKCHIP_DEBUG can be used only if DEBUG_UART is
available, otherwise it won't have any effect.
Add negative dependency to TPL_SILENT_CONSOLE.
Signed-off-by: Lukasz Czechowski
---
drivers/ram/rockchip/Kconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/ram/roc
compilation
warning.
Signed-off-by: Lukasz Czechowski
---
include/debug_uart.h | 16
1 file changed, 16 insertions(+)
diff --git a/include/debug_uart.h b/include/debug_uart.h
index 714b369e6fe..dc0f1aa4c98 100644
--- a/include/debug_uart.h
+++ b/include/debug_uart.h
@@ -128,6 +128,8
directly in serial driver.
This patch series fixes the dependencies in Kconfig and provides
dummy implementation of debug_uart functions that are linked in case
serial driver is not used.
Lukasz Czechowski (4):
debug_uart: Replace debug functions with dummies if CONFIG_DEBUG_UART
is not set
USBPHY480M
sources, that are managed by CRU, are not yet handled, as likely
they won't be used in real scenarios.
Signed-off-by: Lukasz Czechowski
Reviewed-by: Quentin Schulz
---
arch/arm/include/asm/arch-rockchip/cru_px30.h | 7 ++
drivers/clk/rockchip/clk_px30.c
USBPHY480M
sources, that are managed by CRU, are not yet handled, as likely
they won't be used in real scenarios.
Signed-off-by: Lukasz Czechowski
---
arch/arm/include/asm/arch-rockchip/cru_px30.h | 7 ++
drivers/clk/rockchip/clk_px30.c | 108 ++
2 files ch
USBPHY480M
sources, that are managed by CRU, are not yet handled, as likely
they won't be used in real scenarios.
Signed-off-by: Lukasz Czechowski
---
arch/arm/include/asm/arch-rockchip/cru_px30.h | 7 ++
drivers/clk/rockchip/clk_px30.c | 107 ++
2 files ch
From: Lukasz Czechowski
Display TPL init information message only when TPL_BANNER_PRINT
configuration entry is set. This allows to disable information
message in case logs on UART are unwanted.
Update parent ifdef condition to check also CONFIG_TPL_SERIAL
to match logic of the non-PX30 TPL
From: Lukasz Czechowski
Remove the log message "out" from sdram_init function which
pollutes the console. It brings no meaningful information and
might be unwanted in case silencing the console is required.
Instead, add a debug log with a more meaningful message, printed
only if DE
From: Lukasz Czechowski
Display TPL init information message only when TPL_BANNER_PRINT
configuration entry is set. This allows to disable information
message in case logs on UART are unwanted.
Update parent ifdef condition to check also CONFIG_TPL_SERIAL
to match logic of the non-PX30 TPL
Display TPL init information message only when TPL_BANNER_PRINT
configuration entry is set. This allows to disable information
message in case logs on UART are unwanted.
Signed-off-by: Lukasz Czechowski
---
arch/arm/mach-rockchip/px30-board-tpl.c | 2 ++
1 file changed, 2 insertions(+)
diff
59 matches
Mail list logo