mirror of
https://github.com/u-boot/u-boot.git
synced 2024-12-01 16:43:28 +08:00
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>
This commit is contained in:
parent
d75111a79b
commit
e449e840c5
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user