spi: sprd: Fix the wrong WDG_LOAD_VAL
authorChunyan Zhang <chunyan.zhang@unisoc.com>
Thu, 26 Aug 2021 09:15:46 +0000 (17:15 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Sep 2021 07:50:30 +0000 (09:50 +0200)
commite2cb04c61bcf1856193378ecafcef95ead1c1b93
tree8fd90ee95c6122f9bc8da452fc513daf6475e6e4
parentcd8cca7268a24715d640e68cd19a3645f801c5bd
spi: sprd: Fix the wrong WDG_LOAD_VAL

[ Upstream commit 245ca2cc212bb2a078332ec99afbfbb202f44c2d ]

Use 50ms as default timeout value and the time clock is 32768HZ.
The original value of WDG_LOAD_VAL is not correct, so this patch
fixes it.

Fixes: ac1775012058 ("spi: sprd: Add the support of restarting the system")
Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
Link: https://lore.kernel.org/r/20210826091549.2138125-2-zhang.lyra@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-sprd-adi.c