]> git.sur5r.net Git - u-boot/commitdiff
sh: sh7757lcr: add supporting for MMCIF
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Mon, 5 Mar 2012 20:11:12 +0000 (20:11 +0000)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Mon, 26 Mar 2012 01:09:30 +0000 (10:09 +0900)
The sh7757lcr has 2GByte eMMC chip. This patch supports it.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
board/renesas/sh7757lcr/sh7757lcr.c
doc/README.sh7757lcr
include/configs/sh7757lcr.h

index a62be24cd870ef7a6a0eca7380c1bd3862367098..adae9ce7fa5ca92698b33bd10cb3c48312ad9afd 100644 (file)
@@ -263,6 +263,11 @@ int dram_init(void)
        return 0;
 }
 
+int board_mmc_init(bd_t *bis)
+{
+       return mmcif_mmc_init();
+}
+
 static int get_sh_eth_mac_raw(unsigned char *buf, int size)
 {
        struct spi_flash *spi;
index 37c1a7a98a9e6f2c6144709b9c7d30f7924784fc..3e9c1c1a1e91dde5b10827c595a883ba82c06581 100644 (file)
@@ -12,6 +12,7 @@ The R0P7757LC0030RL(board config name:sh7757lcr) has the following device:
  - SPI ROM 8MB
  - 2D Graphic controller
  - Ethernet controller
+ - eMMC 2GB
 
 
 configuration for This board:
index c1f9ce8a227b612b4e139c7f484ffe51a6256139..73d2a8759678059f86ac5ee861cf3957c970f011 100644 (file)
 #define CONFIG_CMD_MD5SUM
 #define CONFIG_MD5
 #define CONFIG_CMD_LOADS
+#define CONFIG_CMD_MMC
+#define CONFIG_CMD_EXT2
+#define CONFIG_DOS_PARTITION
+#define CONFIG_MAC_PARTITION
 
 #define CONFIG_BAUDRATE                115200
 #define CONFIG_BOOTDELAY       3
 #define CONFIG_SPI_FLASH
 #define CONFIG_SPI_FLASH_STMICRO       1
 
+/* MMCIF */
+#define CONFIG_MMC                     1
+#define CONFIG_GENERIC_MMC             1
+#define CONFIG_SH_MMCIF                        1
+#define CONFIG_SH_MMCIF_ADDR           0xffcb0000
+#define CONFIG_SH_MMCIF_CLK            48000000
+
 /* SH7757 board */
 #define SH7757LCR_SDRAM_PHYS_TOP       0x40000000
 #define SH7757LCR_GRA_OFFSET           0x1f000000