diff --git a/drivers/rtc/rtc-tps6586x.c b/drivers/rtc/rtc-tps6586x.c
index 9ab93cb..ca6138b 100644
--- a/drivers/rtc/rtc-tps6586x.c
+++ b/drivers/rtc/rtc-tps6586x.c
@@ -95,7 +95,7 @@ static int tps6586x_rtc_set_time(struct device *dev,
struct rtc_time *tm)

     seconds -= rtc->epoch_start;

-    ticks = seconds << 10;
+    ticks = (unsigned long long)seconds << 10;
     buff[0] = (ticks >> 32) & 0xff;
     buff[1] = (ticks >> 24) & 0xff;
