[ARM] locomo: fix SPI register offset
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 22 Mar 2010 02:33:58 +0000 (10:33 +0800)
committerEric Miao <eric.y.miao@gmail.com>
Mon, 22 Mar 2010 04:03:08 +0000 (12:03 +0800)
commit1b0d76cb9d5a65567230097a2512046f09f30523
tree0db3dc2d1adc6a71d2d345d905da5c2306254a12
parent6533be390b1210285854fb2fc7ea80c0ada60b13
[ARM] locomo: fix SPI register offset

The locomo spi registers are all defined in locomo.h as offsets
from the first spi register LOCOMO_SPI (0x60), which is itself
an offset from the locomo base address.  To correctly access
these registers LOCOMO_SPI must always be included in the
address calculation.

There are two places in locomo.c where this is not done.  The
first one, in locomo_suspend, actually results in a write to
LOCOMO_ST instead of LOCOMO_SPICT.  The second is in __locomo_probe
and results in a write to LOCOMO_MCSX2 instead of LOCOMO_SPIIE.

Fix these by including LOCOMO_SPI in the calculation.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
arch/arm/common/locomo.c