aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvishnupatekar <vishnupatekar0510@gmail.com>2016-03-24 01:54:33 +0800
committerHans de Goede <hdegoede@redhat.com>2016-03-23 22:04:13 +0100
commite449e840c5adf728ddd308501af3115656aa9a60 (patch)
tree78802b2726d6b8708ed219b2c7fff36ee2e673ca
parentd75111a79b758274b0bed9c66a925cf57bbad358 (diff)
downloadu-boot-e449e840c5adf728ddd308501af3115656aa9a60.zip
u-boot-e449e840c5adf728ddd308501af3115656aa9a60.tar.gz
u-boot-e449e840c5adf728ddd308501af3115656aa9a60.tar.bz2
sunxi: A83T: fix 32bit overflow warning
In mctl_channel_init, (0x50<<26) which overflows 32bit. It was supposed to be 0x50<<16,corrected now. Reported-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Vishnu Patekar <vishnupatekar0510@gmail.com> Acked-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r--arch/arm/cpu/armv7/sunxi/dram_sun8i_a83t.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv7/sunxi/dram_sun8i_a83t.c b/arch/arm/cpu/armv7/sunxi/dram_sun8i_a83t.c
index 7c46acd..55df1b9 100644
--- a/arch/arm/cpu/armv7/sunxi/dram_sun8i_a83t.c
+++ b/arch/arm/cpu/armv7/sunxi/dram_sun8i_a83t.c
@@ -280,7 +280,7 @@ static int mctl_channel_init(struct dram_para *para)
writel(0x94be6fa3, MCTL_PROTECT);
udelay(100);
- clrsetbits_le32(MX_UPD2, 0xfff << 16, 0x50 << 26);
+ clrsetbits_le32(MX_UPD2, 0xfff << 16, 0x50 << 16);
writel(0x0, MCTL_PROTECT);
udelay(100);