mirror of https://github.com/xqemu/xqemu.git
omap_gpmc: Fix handling of FIFOTHRESHOLDSTATUS bit
The OMAP3 TRM is inconsistent about whether the GPMC FIFOTHRESHOLDSTATUS bit should be set when FIFOPOINTER > FIFOTHRESHOLD or when it is >= FIFOTHRESHOLD. Apparently the underlying functional spec from which the TRM was created states that the behaviour is ">=", and this also makes more conceptual sense. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
77c6c73690
commit
de8af7fe01
|
@ -222,7 +222,7 @@ static uint64_t omap_gpmc_read(void *opaque, target_phys_addr_t addr,
|
||||||
return s->prefcontrol;
|
return s->prefcontrol;
|
||||||
case 0x1f0: /* GPMC_PREFETCH_STATUS */
|
case 0x1f0: /* GPMC_PREFETCH_STATUS */
|
||||||
return (s->preffifo << 24) |
|
return (s->preffifo << 24) |
|
||||||
((s->preffifo >
|
((s->preffifo >=
|
||||||
((s->prefconfig[0] >> 8) & 0x7f) ? 1 : 0) << 16) |
|
((s->prefconfig[0] >> 8) & 0x7f) ? 1 : 0) << 16) |
|
||||||
s->prefcount;
|
s->prefcount;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue