mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-14 06:35:12 +00:00
ARM: OMAP: hsmmc: Add support for AM3517EVM base-board MMC slot
Add support for base-board MMC slot Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com> Signed-off-by: Abhilash K V <abhilash.kv@ti.com> [tony@atomide.com: updated subject] Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
parent
e89715a7e4
commit
dd6facfc0e
1 changed files with 22 additions and 0 deletions
|
@ -24,6 +24,7 @@
|
||||||
#include <linux/i2c/pca953x.h>
|
#include <linux/i2c/pca953x.h>
|
||||||
#include <linux/can/platform/ti_hecc.h>
|
#include <linux/can/platform/ti_hecc.h>
|
||||||
#include <linux/davinci_emac.h>
|
#include <linux/davinci_emac.h>
|
||||||
|
#include <linux/mmc/host.h>
|
||||||
|
|
||||||
#include <mach/hardware.h>
|
#include <mach/hardware.h>
|
||||||
#include <mach/am35xx.h>
|
#include <mach/am35xx.h>
|
||||||
|
@ -40,6 +41,7 @@
|
||||||
|
|
||||||
#include "mux.h"
|
#include "mux.h"
|
||||||
#include "control.h"
|
#include "control.h"
|
||||||
|
#include "hsmmc.h"
|
||||||
|
|
||||||
#define AM35XX_EVM_MDIO_FREQUENCY (1000000)
|
#define AM35XX_EVM_MDIO_FREQUENCY (1000000)
|
||||||
|
|
||||||
|
@ -455,6 +457,23 @@ static void am3517_evm_hecc_init(struct ti_hecc_platform_data *pdata)
|
||||||
static struct omap_board_config_kernel am3517_evm_config[] __initdata = {
|
static struct omap_board_config_kernel am3517_evm_config[] __initdata = {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static struct omap2_hsmmc_info mmc[] = {
|
||||||
|
{
|
||||||
|
.mmc = 1,
|
||||||
|
.caps = MMC_CAP_4_BIT_DATA,
|
||||||
|
.gpio_cd = 127,
|
||||||
|
.gpio_wp = 126,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.mmc = 2,
|
||||||
|
.caps = MMC_CAP_4_BIT_DATA,
|
||||||
|
.gpio_cd = 128,
|
||||||
|
.gpio_wp = 129,
|
||||||
|
},
|
||||||
|
{} /* Terminator */
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
static void __init am3517_evm_init(void)
|
static void __init am3517_evm_init(void)
|
||||||
{
|
{
|
||||||
omap_board_config = am3517_evm_config;
|
omap_board_config = am3517_evm_config;
|
||||||
|
@ -483,6 +502,9 @@ static void __init am3517_evm_init(void)
|
||||||
|
|
||||||
/* MUSB */
|
/* MUSB */
|
||||||
am3517_evm_musb_init();
|
am3517_evm_musb_init();
|
||||||
|
|
||||||
|
/* MMC init function */
|
||||||
|
omap2_hsmmc_init(mmc);
|
||||||
}
|
}
|
||||||
|
|
||||||
MACHINE_START(OMAP3517EVM, "OMAP3517/AM3517 EVM")
|
MACHINE_START(OMAP3517EVM, "OMAP3517/AM3517 EVM")
|
||||||
|
|
Loading…
Reference in a new issue