spi: sprd: Fix the wrong WDG_LOAD_VAL
[linux-2.6-microblaze.git] / drivers / spi / spi-sprd-adi.c
index 07f11b1..d392dc6 100644 (file)
 #define HWRST_STATUS_WATCHDOG          0xf0
 
 /* Use default timeout 50 ms that converts to watchdog values */
-#define WDG_LOAD_VAL                   ((50 * 1000) / 32768)
+#define WDG_LOAD_VAL                   ((50 * 32768) / 1000)
 #define WDG_LOAD_MASK                  GENMASK(15, 0)
 #define WDG_UNLOCK_KEY                 0xe551