diff options
Diffstat (limited to 'include/linux/mmc/sh_mmcif.h')
-rw-r--r-- | include/linux/mmc/sh_mmcif.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/include/linux/mmc/sh_mmcif.h b/include/linux/mmc/sh_mmcif.h new file mode 100644 index 000000000000..aafe832f18aa --- /dev/null +++ b/include/linux/mmc/sh_mmcif.h | |||
@@ -0,0 +1,39 @@ | |||
1 | /* | ||
2 | * include/linux/mmc/sh_mmcif.h | ||
3 | * | ||
4 | * platform data for eMMC driver | ||
5 | * | ||
6 | * Copyright (C) 2010 Renesas Solutions Corp. | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License as published by | ||
10 | * the Free Software Foundation; either version 2 of the License. | ||
11 | * | ||
12 | */ | ||
13 | |||
14 | #ifndef __SH_MMCIF_H__ | ||
15 | #define __SH_MMCIF_H__ | ||
16 | |||
17 | /* | ||
18 | * MMCIF : CE_CLK_CTRL [19:16] | ||
19 | * 1000 : Peripheral clock / 512 | ||
20 | * 0111 : Peripheral clock / 256 | ||
21 | * 0110 : Peripheral clock / 128 | ||
22 | * 0101 : Peripheral clock / 64 | ||
23 | * 0100 : Peripheral clock / 32 | ||
24 | * 0011 : Peripheral clock / 16 | ||
25 | * 0010 : Peripheral clock / 8 | ||
26 | * 0001 : Peripheral clock / 4 | ||
27 | * 0000 : Peripheral clock / 2 | ||
28 | * 1111 : Peripheral clock (sup_pclk set '1') | ||
29 | */ | ||
30 | |||
31 | struct sh_mmcif_plat_data { | ||
32 | void (*set_pwr)(struct platform_device *pdev, int state); | ||
33 | void (*down_pwr)(struct platform_device *pdev); | ||
34 | u8 sup_pclk; /* 1 :SH7757, 0: SH7724/SH7372 */ | ||
35 | unsigned long caps; | ||
36 | u32 ocr; | ||
37 | }; | ||
38 | |||
39 | #endif /* __SH_MMCIF_H__ */ | ||