mmc: Tegra2: SD/MMC driver for Seaboard - eMMC on SDMMC4, SDIO on SDMMC3
Subsystems (3)
PATCH 1/2 mmc: Tegra2: SD/MMC driver for Seaboard - eMMC on SDMMC4, SDIO on SDMMC3
Signed-off-by Tom Warren <[email protected]>
--- arch/arm/include/asm/arch-tegra2/clk_rst.h | 5 + arch/arm/include/asm/arch-tegra2/pinmux.h | 6 + board/nvidia/common/board.c | 147 ++++++++ board/nvidia/common/board.h | 1 + drivers/mmc/Makefile | 1 + drivers/mmc/tegra2_mmc.c | 510 ++++++++++++++++++++++++++++ drivers/mmc/tegra2_mmc.h | 81 +++++ 7 files changed, 751 insertions(+), 0 deletions(-) create mode 100644 drivers/mmc/tegra2_mmc.c create mode 100644 drivers/mmc/tegra2_mmc.h
arch/arm/include/asm/arch-tegra2/clk_rst.h +5 -0
@@ -191,4 +191,9 @@ struct clk_rst_ctlr {#define CPCON (1 << 8) +#define SWR_SDMMC4_RST (1 << 15) +#define CLK_ENB_SDMMC4 (1 << 15) +#define SWR_SDMMC3_RST (1 << 5) +#define CLK_ENB_SDMMC3 (1 << 5) +#endif /* CLK_RST_H */
arch/arm/include/asm/arch-tegra2/pinmux.h +6 -0
@@ -51,5 +51,11 @@ struct pmux_tri_ctlr {#define Z_GMC (1 << 29)#define Z_IRRX (1 << 20)#define Z_IRTX (1 << 19) +#define Z_GMA (1 << 28) +#define Z_GME (1 << 0) +#define Z_ATB (1 << 1) +#define Z_SDB (1 << 15) +#define Z_SDC (1 << 1) +#define Z_SDD (1 << 2)#endif /* PINMUX_H */
board/nvidia/common/board.c +147 -0
162 lines not on this page · raw message
board/nvidia/common/board.h +1 -0
@@ -29,5 +29,6 @@ void clock_init(void);void pinmux_init (void );void gpio_init (void );void gpio_config_uart (void ); +int tegra2_mmc_init (int dev_index,int bus_width);#endif /* BOARD_H */
drivers/mmc/Makefile +1 -0
@@ -38,6 +38,7 @@ COBJS-$(CONFIG_OMAP3_MMC) += omap3_mmc.o COBJS-$(CONFIG_OMAP_HSMMC) += omap_hsmmc.o COBJS-$(CONFIG_PXA_MMC) += pxa_mmc.o COBJS-$(CONFIG_S5P_MMC) += s5p_mmc.o +COBJS-$(CONFIG_TEGRA2_MMC) += tegra2_mmc.o COBJS := $(COBJS-y) SRCS := $(COBJS:.o=.c)
drivers/mmc/tegra2_mmc.c new file +510 -0
510 lines not on this page · raw message
drivers/mmc/tegra2_mmc.h new file +81 -0
81 lines not on this page · raw message
Signature · 1 line
1.7.5.1
PATCH 2/2 mmc: Tegra2: Enable SD/MMC driver for Seaboard and Harmony
Signed-off-by Tom Warren <[email protected]>
--- include/configs/harmony.h | 11 +++++++++++ include/configs/seaboard.h | 11 +++++++++++ 2 files changed, 22 insertions(+), 0 deletions(-)
include/configs/harmony.h +11 -0
@@ -47,4 +47,15 @@#define CONFIG_SYS_BOARD_ODMDATA 0x300d8011/* lp1, 1GB */ #define CONFIG_BOARD_EARLY_INIT_F + +/* SD/MMC */ +#define CONFIG_MMC +#define CONFIG_GENERIC_MMC +#define CONFIG_TEGRA2_MMC +#define CONFIG_CMD_MMC + +#define CONFIG_DOS_PARTITION +#define CONFIG_EFI_PARTITION +#define CONFIG_CMD_EXT2 +#define CONFIG_CMD_FAT #endif /* __CONFIG_H */
include/configs/seaboard.h +11 -0
@@ -41,4 +41,15 @@#define CONFIG_SYS_BOARD_ODMDATA 0x300d8011/* lp1, 1GB */ #define CONFIG_BOARD_EARLY_INIT_F + +/* SD/MMC */ +#define CONFIG_MMC +#define CONFIG_GENERIC_MMC +#define CONFIG_TEGRA2_MMC +#define CONFIG_CMD_MMC + +#define CONFIG_DOS_PARTITION +#define CONFIG_EFI_PARTITION +#define CONFIG_CMD_EXT2 +#define CONFIG_CMD_FAT #endif /* __CONFIG_H */
Signature · 1 line
1.7.5.1