Skip to content
Commit 11282a49 authored by Andre Przywara's avatar Andre Przywara Committed by Philipp Zabel
Browse files

reset: sunxi: fix for 64-bit compilation



The Allwinner reset controller has 32-bit registers, so translating
the reset cell number into a register and bit offset should not use
any architecture dependent data size. Otherwise this breaks for 64-bit
architectures like arm64.
Fix this by making it clear that it's the hardware register width which
matters here in the calculation.

Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
Acked-by: default avatarChen-Yu Tsai <wens@csie.org>
Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
parent 62700682
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