-
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: atmel-mci: move mach header to platform_data
Move the mach header that can come either from arm/mach-at91 or avr32 to platform_data to be able to switch the AT91 platforms to multiplatform. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Ludovic Desroches <ludovic.desroches@atmel.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> [Ulf: Fixed compile error]
- Loading branch information
Alexandre Belloni
authored and
Ulf Hansson
committed
Nov 10, 2014
1 parent
0f76242
commit 9cbef73
Showing
2 changed files
with
23 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#ifndef __MMC_ATMEL_MCI_H | ||
#define __MMC_ATMEL_MCI_H | ||
|
||
#include <linux/platform_data/dma-atmel.h> | ||
#include <linux/platform_data/dma-dw.h> | ||
|
||
/** | ||
* struct mci_dma_data - DMA data for MCI interface | ||
*/ | ||
struct mci_dma_data { | ||
#ifdef CONFIG_ARM | ||
struct at_dma_slave sdata; | ||
#else | ||
struct dw_dma_slave sdata; | ||
#endif | ||
}; | ||
|
||
/* accessor macros */ | ||
#define slave_data_ptr(s) (&(s)->sdata) | ||
#define find_slave_dev(s) ((s)->sdata.dma_dev) | ||
|
||
#endif /* __MMC_ATMEL_MCI_H */ |