Build fixes for "HSMMC: Improve the interface for hsmmc_init()".
The header file needs to work without MMC support enabled, and
some board files needed to include it.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
#include <asm/io.h>
+#include "mmc-twl4030.h"
+
+
#define SDP2430_FLASH_CS 0
#define SDP2430_SMC91X_CS 5
#include <asm/delay.h>
#include <mach/control.h>
+#include "mmc-twl4030.h"
+
+
#define CONFIG_DISABLE_HFCLK 1
#define ENABLE_VAUX1_DEDICATED 0x03
#include <mach/mcspi.h>
#include <mach/mux.h>
+#include "mmc-twl4030.h"
+
+
#define GPMC_OFF_CONFIG1_0 0x60
static struct mtd_partition omap2evm_nand_partitions[] = {
#include <mach/mux.h>
#include "twl4030-generic-scripts.h"
+#include "mmc-twl4030.h"
+
#define GPMC_CS0_BASE 0x60
#define GPMC_CS_SIZE 0x30
#include "sdram-micron-mt46h32m32lf-6.h"
#include "twl4030-generic-scripts.h"
+#include "mmc-twl4030.h"
+
static struct resource omap3evm_smc911x_resources[] = {
[0] = {
#include <mach/usb-musb.h>
#include "sdram-micron-mt46h32m32lf-6.h"
+#include "mmc-twl4030.h"
+
#define NAND_BLOCK_SIZE SZ_128K
#define GPMC_CS0_BASE 0x60
* published by the Free Software Foundation.
*/
-#if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) || \
- defined(CONFIG_MMC_OMAP_HS) || defined(CONFIG_MMC_OMAP_HS_MODULE)
-
struct twl4030_hsmmc_info {
u8 mmc; /* controller 1/2/3 */
u8 wires; /* 1/4/8 wires */
int gpio_cd; /* or -EINVAL */
};
+#if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) || \
+ defined(CONFIG_MMC_OMAP_HS) || defined(CONFIG_MMC_OMAP_HS_MODULE)
+
void hsmmc_init(struct twl4030_hsmmc_info *);
#else
-static inline void hsmmc_init(struct twl4030_hsmmc_info *)
+static inline void hsmmc_init(struct twl4030_hsmmc_info *info)
{
}