mmc: spi: Pull out parts shared between MMC and SPI

Abstract out the common part of private data shared between MMC
and SPI. These shall later allow to use common clock configuration
function.

Signed-off-by: Marek Vasut <marex@denx.de>
Acked-by: Chris Ball <cjb@laptop.org>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
Marek Vasut
2012-08-03 17:26:09 +02:00
committed by Mark Brown
parent f83b738065
commit 829c1bf40b
2 changed files with 67 additions and 48 deletions

View File

@@ -128,4 +128,12 @@ enum mxs_ssp_id {
IMX28_SSP,
};
struct mxs_ssp {
struct device *dev;
void __iomem *base;
struct clk *clk;
unsigned int clk_rate;
enum mxs_ssp_id devid;
};
#endif /* __LINUX_SPI_MXS_SPI_H__ */