-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mmc: tmio: convert the SDHI MMC driver from MFD to a platform driver
On sh-mobile platforms the SDHI driver was using the tmio_mmc SD/SDIO MFD cell driver. Now that the tmio_mmc driver has been split into a core and a separate MFD glue, we can support SDHI natively without the need to emulate an MFD controller. This also allows to support systems with an on-SoC SDHI controller and a separate MFD with a TMIO core. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Acked-by: Paul Mundt <lethal@linux-sh.org> Signed-off-by: Chris Ball <cjb@laptop.org>
- Loading branch information
Guennadi Liakhovetski
authored and
Chris Ball
committed
Mar 25, 2011
1 parent
4fbc5ec
commit 42051e8
Showing
8 changed files
with
68 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,7 @@ | ||
#ifndef __SH_MOBILE_SDHI_H__ | ||
#define __SH_MOBILE_SDHI_H__ | ||
#ifndef MFD_SH_MOBILE_SDHI_H | ||
#define MFD_SH_MOBILE_SDHI_H | ||
|
||
#include <linux/types.h> | ||
/* Compatibility header - will disappear once all platforms are converted */ | ||
#include <linux/mmc/sh_mobile_sdhi.h> | ||
|
||
struct sh_mobile_sdhi_info { | ||
int dma_slave_tx; | ||
int dma_slave_rx; | ||
unsigned long tmio_flags; | ||
unsigned long tmio_caps; | ||
u32 tmio_ocr_mask; /* available MMC voltages */ | ||
void (*set_pwr)(struct platform_device *pdev, int state); | ||
int (*get_cd)(struct platform_device *pdev); | ||
}; | ||
|
||
#endif /* __SH_MOBILE_SDHI_H__ */ | ||
#endif /* MFD_SH_MOBILE_SDHI_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#ifndef __SH_MOBILE_SDHI_H__ | ||
#define __SH_MOBILE_SDHI_H__ | ||
|
||
#include <linux/types.h> | ||
|
||
struct sh_mobile_sdhi_info { | ||
int dma_slave_tx; | ||
int dma_slave_rx; | ||
unsigned long tmio_flags; | ||
unsigned long tmio_caps; | ||
u32 tmio_ocr_mask; /* available MMC voltages */ | ||
void (*set_pwr)(struct platform_device *pdev, int state); | ||
int (*get_cd)(struct platform_device *pdev); | ||
}; | ||
|
||
#endif /* __SH_MOBILE_SDHI_H__ */ |