mxs: ssp: Pull out the SSP bus to regs conversion
authorMarek Vasut <marex@denx.de>
Fri, 11 Jan 2013 03:19:02 +0000 (03:19 +0000)
committerStefano Babic <sbabic@denx.de>
Mon, 21 Jan 2013 11:05:19 +0000 (12:05 +0100)
commit14e26bcfa700b507a805eb30c72e3b6a1ba19d7f
tree07b2611205bc7414a74b4cb0c7650a7c4853e13a
parent59b6defa2b2db1b51f772e8ef6af2617463c8f80
mxs: ssp: Pull out the SSP bus to regs conversion

Create function which converts SSP bus number to SSP register pointer.
This functionality is reimplemented multiple times in the code, thus
make one common implementation. Moreover, make it a switch(), since the
SSP ports are not mapped in such nice linear fashion on MX23, therefore
having it a switch will simplify things there.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Andy Fleming <afleming@freescale.com>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Stefano Babic <sbabic@denx.de>
arch/arm/cpu/arm926ejs/mxs/clock.c
arch/arm/include/asm/arch-mxs/regs-ssp.h
drivers/mmc/mxsmmc.c
drivers/spi/mxs_spi.c