spi/mpc8xxx: refactor the common code for SPI/eSPI controller
authorMingkai Hu <Mingkai.hu@freescale.com>
Tue, 12 Oct 2010 10:18:31 +0000 (18:18 +0800)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 13 Oct 2010 03:38:12 +0000 (21:38 -0600)
commitb36ece832512c1a0afa54ff0a56d63492a1caf08
tree1c8a35d3dd485eb80a56355b5d5cb3bc4b4b2699
parent3272029fb33a88873b9b02224ebeb23bf3a4668e
spi/mpc8xxx: refactor the common code for SPI/eSPI controller

Refactor the common code in file spi_fsl_spi.c to spi_fsl_lib.c used
by SPI/eSPI controller driver as a library, and leave the QE/CPM SPI
controller code in the SPI controller driver spi_fsl_spi.c.

Because the register map of the SPI controller and eSPI controller
is so different, also leave the code operated the register to the
driver code, not the common code.

Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/Kconfig
drivers/spi/Makefile
drivers/spi/spi_fsl_lib.c [new file with mode: 0644]
drivers/spi/spi_fsl_lib.h [new file with mode: 0644]
drivers/spi/spi_fsl_spi.c