diff options
author | Peter Turczak <peter@turczak.de> | 2011-08-09 06:11:19 +0200 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2011-10-18 06:22:25 +0200 |
commit | 89127ed381fb244aa51c1a74ed695a1f3578ef7d (patch) | |
tree | 7c0f331b438cb1f56b73bd18e39766274d43cbe5 /arch/m68k/Kconfig.machine | |
parent | m68k: fix memcpy to unmatched/unaligned source and dest on 68000 (diff) | |
download | linux-89127ed381fb244aa51c1a74ed695a1f3578ef7d.tar.xz linux-89127ed381fb244aa51c1a74ed695a1f3578ef7d.zip |
m68knommu: fix problems with SPI/GPIO on ColdFire 520x
The problem has its root in the calculation of the set-port offsets (macro
MCFGPIO_SETR() in arch/m68k/include/asm/gpio.h), this assumes that all ports
have the same offset from the base port address (MCFGPIO_SETR) which is
defined in mcf520xsim.h as an alias of MCFGIO_PSETR_BUSCTL. Because the BUSCTL
and BE port do not have a set-register (see MCF5208 Reference Manual Page
13-10, Table 13-3) the offset calculations went wrong.
Because the BE and BUSCTL port do not seem useful in these parts, as they
lack a set register, I removed them and adapted the gpio chip bases which
are also used for the offset-calculations. Now both setting and resetting
the chip selects works as expected from userland and from the kernelspace.
Signed-off-by: Peter Turczak <peter@turczak.de>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k/Kconfig.machine')
0 files changed, 0 insertions, 0 deletions