[PATCH next 5/5] rockchip: configs: puma-rk3399: do the system reset in TPL

Paul Kocialkowski paulk at sys-base.io
Tue Nov 5 19:40:30 CET 2024


Hi,

Le Tue 05 Nov 24, 16:36, Quentin Schulz a écrit :
> From: Quentin Schulz <quentin.schulz at cherry.de>
> 
> RK3399 Puma can trigger a full system reset at runtime by toggling a
> GPIO. This is done whenever the system has NOT cold booted (i.e. from a
> power cycle). For RK3399 Puma, this is currently done in SPL but only
> because when this was implemented TPL wasn't used on RK3399 (or at least
> not Puma). Now that we have TPL on RK3399 (and Puma), it makes sense to
> trigger this reset as early as possible, so let's enable the drivers
> required in TPL (Rockchip GPIO and pinctrl).
> 
> Signed-off-by: Quentin Schulz <quentin.schulz at cherry.de>

Reviewed-by: Paul Kocialkowski <paulk at sys-base.io>

Cheers,

Paul

> ---
>  configs/puma-rk3399_defconfig | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/configs/puma-rk3399_defconfig b/configs/puma-rk3399_defconfig
> index 67c0ee72c925cdd49066980b0fde4131c86a99a8..7a180b1413036234d834773778f6c0f0a7e85380 100644
> --- a/configs/puma-rk3399_defconfig
> +++ b/configs/puma-rk3399_defconfig
> @@ -30,6 +30,7 @@ CONFIG_SPL_I2C=y
>  CONFIG_SPL_POWER=y
>  CONFIG_SPL_SPI_LOAD=y
>  CONFIG_TPL=y
> +CONFIG_TPL_GPIO=y
>  # CONFIG_BOOTM_NETBSD is not set
>  # CONFIG_BOOTM_PLAN9 is not set
>  # CONFIG_BOOTM_RTEMS is not set
> @@ -78,6 +79,8 @@ CONFIG_ETH_DESIGNWARE=y
>  CONFIG_GMAC_ROCKCHIP=y
>  CONFIG_PHY_ROCKCHIP_INNO_USB2=y
>  CONFIG_PHY_ROCKCHIP_TYPEC=y
> +CONFIG_TPL_PINCTRL=y
> +CONFIG_TPL_PINCTRL_FULL=y
>  CONFIG_DM_PMIC_FAN53555=y
>  CONFIG_PMIC_RK8XX=y
>  CONFIG_SPL_PMIC_RK8XX=y
> 
> -- 
> 2.47.0
> 

-- 
Paul Kocialkowski,

Independent contractor - sys-base - https://www.sys-base.io/
Free software developer - https://www.paulk.fr/

Specialist in multimedia, graphics and embedded hardware support with Linux.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20241105/fd2dfbf2/attachment.sig>


More information about the U-Boot mailing list