I misread the code and thought data0/... were bu64 when they were
actually bu32. Fix the call to assemble the 2 64-bit values instead
of passing the 2 halves of the first 64-bit value.
+2021-05-23 Mike Frysinger <vapier@gentoo.org>
+
+ * dv-bfin_otp.c (bfin_otp_write_page): Fix args to
+ bfin_otp_write_page_val2.
+
2021-05-23 Mike Frysinger <vapier@gentoo.org>
* dv-bfin_otp.c (bfin_otp_write_page): Call bfin_otp_write_page_val2.
static void
bfin_otp_write_page (struct bfin_otp *otp, bu16 page)
{
- bfin_otp_write_page_val2 (otp, page, otp->data0, otp->data1);
+ bfin_otp_write_page_val2 (otp, page, (bu64)otp->data1 | otp->data0,
+ (bu64)otp->data3 | otp->data2);
}
static unsigned