Commit 5231ebf5 authored by David Brownell's avatar David Brownell Committed by Tony Lindgren

HSMMC: Build fixes for earlier patches

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: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent f7290550
...@@ -44,6 +44,9 @@ ...@@ -44,6 +44,9 @@
#include <asm/io.h> #include <asm/io.h>
#include "mmc-twl4030.h"
#define SDP2430_FLASH_CS 0 #define SDP2430_FLASH_CS 0
#define SDP2430_SMC91X_CS 5 #define SDP2430_SMC91X_CS 5
......
...@@ -41,6 +41,9 @@ ...@@ -41,6 +41,9 @@
#include <asm/delay.h> #include <asm/delay.h>
#include <mach/control.h> #include <mach/control.h>
#include "mmc-twl4030.h"
#define CONFIG_DISABLE_HFCLK 1 #define CONFIG_DISABLE_HFCLK 1
#define ENABLE_VAUX1_DEDICATED 0x03 #define ENABLE_VAUX1_DEDICATED 0x03
......
...@@ -41,6 +41,9 @@ ...@@ -41,6 +41,9 @@
#include <mach/mcspi.h> #include <mach/mcspi.h>
#include <mach/mux.h> #include <mach/mux.h>
#include "mmc-twl4030.h"
#define GPMC_OFF_CONFIG1_0 0x60 #define GPMC_OFF_CONFIG1_0 0x60
static struct mtd_partition omap2evm_nand_partitions[] = { static struct mtd_partition omap2evm_nand_partitions[] = {
......
...@@ -44,6 +44,8 @@ ...@@ -44,6 +44,8 @@
#include <mach/mux.h> #include <mach/mux.h>
#include "twl4030-generic-scripts.h" #include "twl4030-generic-scripts.h"
#include "mmc-twl4030.h"
#define GPMC_CS0_BASE 0x60 #define GPMC_CS0_BASE 0x60
#define GPMC_CS_SIZE 0x30 #define GPMC_CS_SIZE 0x30
......
...@@ -40,6 +40,8 @@ ...@@ -40,6 +40,8 @@
#include "sdram-micron-mt46h32m32lf-6.h" #include "sdram-micron-mt46h32m32lf-6.h"
#include "twl4030-generic-scripts.h" #include "twl4030-generic-scripts.h"
#include "mmc-twl4030.h"
static struct resource omap3evm_smc911x_resources[] = { static struct resource omap3evm_smc911x_resources[] = {
[0] = { [0] = {
......
...@@ -47,6 +47,8 @@ ...@@ -47,6 +47,8 @@
#include <mach/usb-musb.h> #include <mach/usb-musb.h>
#include "sdram-micron-mt46h32m32lf-6.h" #include "sdram-micron-mt46h32m32lf-6.h"
#include "mmc-twl4030.h"
#define NAND_BLOCK_SIZE SZ_128K #define NAND_BLOCK_SIZE SZ_128K
#define GPMC_CS0_BASE 0x60 #define GPMC_CS0_BASE 0x60
......
...@@ -6,20 +6,20 @@ ...@@ -6,20 +6,20 @@
* published by the Free Software Foundation. * 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 { struct twl4030_hsmmc_info {
u8 mmc; /* controller 1/2/3 */ u8 mmc; /* controller 1/2/3 */
u8 wires; /* 1/4/8 wires */ u8 wires; /* 1/4/8 wires */
int gpio_cd; /* or -EINVAL */ 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 *); void hsmmc_init(struct twl4030_hsmmc_info *);
#else #else
static inline void hsmmc_init(struct twl4030_hsmmc_info *) static inline void hsmmc_init(struct twl4030_hsmmc_info *info)
{ {
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment