OSDN Git Service

aspeed/wdt: Fix ast2500/ast2600 default reload value
authorSteven Lee <steven_lee@aspeedtech.com>
Mon, 2 May 2022 15:03:03 +0000 (17:03 +0200)
committerCédric Le Goater <clg@kaod.org>
Mon, 2 May 2022 15:03:03 +0000 (17:03 +0200)
commit018134abb26981f4720aad848d13171005da04dd
tree8591463415701a1b4c37b9c29987d2832be8f023
parent2850df6a81bcdc2e063dfdd56751ee2d11c58030
aspeed/wdt: Fix ast2500/ast2600 default reload value

Per ast2500_2520_datasheet_v1.8 and ast2600v11.pdf, the default value of
WDT00 and WDT04 is 0x014FB180 for ast2500/ast2600.
Add default_status and default_reload_value attributes for storing
counter status and reload value as they are different from ast2400.

Signed-off-by: Troy Lee <troy_lee@aspeedtech.com>
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Signed-off-by: Steven Lee <steven_lee@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20220401083850.15266-4-jamin_lin@aspeedtech.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/watchdog/wdt_aspeed.c
include/hw/watchdog/wdt_aspeed.h