[U-Boot] [PATCH 12/15] include: rk3399: Disable watchdog in TPL

Kever Yang kever.yang at rock-chips.com
Mon Aug 5 12:43:37 UTC 2019


On 2019/7/29 下午3:47, Jagan Teki wrote:
> Disable watchdog for TPL, since there is no support it.
>
> Signed-off-by: Jagan Teki <jagan at amarulasolutions.com>
> ---
>   include/configs/rk3399_common.h | 5 +++++
>   1 file changed, 5 insertions(+)
>
> diff --git a/include/configs/rk3399_common.h b/include/configs/rk3399_common.h
> index 8df0180284..67b48e03ba 100644
> --- a/include/configs/rk3399_common.h
> +++ b/include/configs/rk3399_common.h
> @@ -46,6 +46,11 @@
>   #define CONFIG_SYS_SDRAM_BASE		0
>   #define SDRAM_MAX_SIZE			0xf8000000
>   
> +#ifdef CONFIG_TPL_BUILD
> +# undef CONFIG_WDT
> +# undef CONFIG_WATCHDOG
> +#endif


It will be better to use CONFIG_${SPL_TPL}WDT in watchdog Makefile,

because all the SoC needs treat this driver separate in TPL/SPL/U-Boot 
proper.


Thanks,

- Kever

> +
>   #ifndef CONFIG_SPL_BUILD
>   
>   #define ENV_MEM_LAYOUT_SETTINGS \




More information about the U-Boot mailing list