Skip to content
Commit 6d734be9 authored by Patrice Chotard's avatar Patrice Chotard Committed by Patrick Delaunay
Browse files

reset: stm32: Fix bank and offset computation



BITS_PER_LONG is used to represent register's size which is 32.
But when compiled on arch64, BITS_PER_LONG is then equal to 64.

Fix bank and offset computation to make it work on arch32 and
arch64 and ensure that register's size is always equal to 32.

Signed-off-by: default avatarPatrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: default avatarPankaj Dev <pankaj.dev@st.com>
Reviewed-by: default avatarPatrick Delaunay <patrick.delaunay@foss.st.com>
parent a5bb384c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment