mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-17 23:37:01 +00:00
ARMV7: OMAP3: Fix bug in get_sdr_cs_offset()
This patch fixes a typo in the routine to calculate the cs offset based upon the contents of the SDRC cs_cfg register. This function mistakenly shifts the CS1STARTLOW field 17 bits right instead of 17 bits left. This hasn't been an issue to date because all OMAP3 boards currently are configured to have zeros in this field. Reported-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Steve Sakoman <steve.sakoman@linaro.org>
This commit is contained in:
parent
68b0fbf085
commit
136c69ad79
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ u32 get_sdr_cs_offset(u32 cs)
|
|||
return 0;
|
||||
|
||||
offset = readl(&sdrc_base->cs_cfg);
|
||||
offset = (offset & 15) << 27 | (offset & 0x30) >> 17;
|
||||
offset = (offset & 15) << 27 | (offset & 0x30) << 17;
|
||||
|
||||
return offset;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue