spi: mpc512x-psc: add support for Freescale MPC5125
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 14 Jul 2015 09:19:56 +0000 (11:19 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 17 Jul 2015 18:27:32 +0000 (19:27 +0100)
commit8bf960985dfc9fcb231a07dc3102ed828f66fe81
tree4837b8b172d88b3c55fdb5ec4014db49258f7878
parentbc0195aad0daa2ad5b0d76cce22b167bc3435590
spi: mpc512x-psc: add support for Freescale MPC5125

The register layout of the PSC devices differ between MPC5121 and
MPC5125, but the registers are named nearly identical and their purpose
is similar enough ("freescale identical") such that substituting
mpc52xx_psc by mpc5125_psc is nearly enough to make the driver work on
MPC5125. To keep supporting MPC5121 this patch introduces a cpp
macro to select the right struct that defines the register layout.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
arch/powerpc/include/asm/mpc52xx_psc.h
drivers/spi/spi-mpc512x-psc.c