[PATCH v4 1/6] arm: at91: wdt: Remove at91_wdt struct
Stefan Roese
sr at denx.de
Mon May 5 08:46:58 CEST 2025
On 28.04.25 11:16, Zixun LI wrote:
> at91_wdt struct is only used by spl, remove this reference and the struct
> itself.
>
> Signed-off-by: Zixun LI <admin at hifiphile.com>
Reviewed-by: Stefan Roese <sr at denx.de>
Thanks,
Stefan
> ---
> arch/arm/mach-at91/include/mach/at91_wdt.h | 6 ------
> arch/arm/mach-at91/spl.c | 4 +---
> 2 files changed, 1 insertion(+), 9 deletions(-)
>
> diff --git a/arch/arm/mach-at91/include/mach/at91_wdt.h b/arch/arm/mach-at91/include/mach/at91_wdt.h
> index 8ef8e007d7767308a5b46be46b02c51073723a41..78ad0453fd9eb3e42674d10cb11ce3da820cdc6a 100644
> --- a/arch/arm/mach-at91/include/mach/at91_wdt.h
> +++ b/arch/arm/mach-at91/include/mach/at91_wdt.h
> @@ -19,12 +19,6 @@
>
> #else
>
> -typedef struct at91_wdt {
> - u32 cr;
> - u32 mr;
> - u32 sr;
> -} at91_wdt_t;
> -
> struct at91_wdt_priv {
> void __iomem *regs;
> u32 regval;
> diff --git a/arch/arm/mach-at91/spl.c b/arch/arm/mach-at91/spl.c
> index 5feb8f735511a45dd37ee04bb3742f57d8f2e067..a814973242a723c47af210bd76db9210db061063 100644
> --- a/arch/arm/mach-at91/spl.c
> +++ b/arch/arm/mach-at91/spl.c
> @@ -14,9 +14,7 @@
> #if !defined(CONFIG_WDT_AT91)
> void at91_disable_wdt(void)
> {
> - struct at91_wdt *wdt = (struct at91_wdt *)ATMEL_BASE_WDT;
> -
> - writel(AT91_WDT_MR_WDDIS, &wdt->mr);
> + writel(AT91_WDT_MR_WDDIS, ATMEL_BASE_WDT + AT91_WDT_MR);
> }
> #endif
>
>
Viele Grüße,
Stefan Roese
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de
More information about the U-Boot
mailing list