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)
committerMark Brown <broonie@kernel.org>
Thu, 26 Aug 2021 11:09:37 +0000 (12:09 +0100)
commit245ca2cc212bb2a078332ec99afbfbb202f44c2d
treefbbec96915965340fc69ca2f9470f6c916d66a1d
parentf674aacd5005184acf3cf7b851a299573d64fdd6
spi: sprd: Fix the wrong WDG_LOAD_VAL

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>
drivers/spi/spi-sprd-adi.c