linaro u-boot: get_sdr_cs_offset() ignores CS1STARTLOW field
Bug #652117 reported by
Peter Maydell
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro U-Boot |
Fix Released
|
Medium
|
Steve Sakoman |
Bug Description
arch/arm/
offset = readl(&
offset = (offset & 15) << 27 | (offset & 0x30) >> 17;
which is clearly shifting the offset&0x30 field off the right hand side of the value so it is effectively ignored. Looking at the OMAP35xx TRM (which defines bits [9:8] as CS1STARTLOW, lower address bits a1:a0, and [3:0] as CS1STARTHIGH, upper address bits a5:a4:a3:a2) I think that this should read "<< 17".
This doesn't have any visible effect on the h/w I have access to (beagleboard) because CS1STARTLOW is zero anyway. I found it by code inspection while trying to track down a different problem in qemu.
Changed in u-boot-linaro: | |
status: | New → In Progress |
Changed in u-boot-linaro: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
Steve, would you mind looking into this?