Commit 566f63d5cfdf5e706a5f1304a475d35e71cd6065

Authored by Yoshihiro Shimoda
Committed by Nobuhiro Iwamatsu
1 parent 7cb30b13f1

sh: sh7757lcr: add supporting for MMCIF

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>

Showing 3 changed files with 17 additions and 0 deletions Side-by-side Diff

board/renesas/sh7757lcr/sh7757lcr.c
... ... @@ -263,6 +263,11 @@
263 263 return 0;
264 264 }
265 265  
  266 +int board_mmc_init(bd_t *bis)
  267 +{
  268 + return mmcif_mmc_init();
  269 +}
  270 +
266 271 static int get_sh_eth_mac_raw(unsigned char *buf, int size)
267 272 {
268 273 struct spi_flash *spi;
doc/README.sh7757lcr
... ... @@ -12,6 +12,7 @@
12 12 - SPI ROM 8MB
13 13 - 2D Graphic controller
14 14 - Ethernet controller
  15 + - eMMC 2GB
15 16  
16 17  
17 18 configuration for This board:
include/configs/sh7757lcr.h
... ... @@ -49,6 +49,10 @@
49 49 #define CONFIG_CMD_MD5SUM
50 50 #define CONFIG_MD5
51 51 #define CONFIG_CMD_LOADS
  52 +#define CONFIG_CMD_MMC
  53 +#define CONFIG_CMD_EXT2
  54 +#define CONFIG_DOS_PARTITION
  55 +#define CONFIG_MAC_PARTITION
52 56  
53 57 #define CONFIG_BAUDRATE 115200
54 58 #define CONFIG_BOOTDELAY 3
... ... @@ -122,6 +126,13 @@
122 126 #define CONFIG_SH_SPI_BASE 0xfe002000
123 127 #define CONFIG_SPI_FLASH
124 128 #define CONFIG_SPI_FLASH_STMICRO 1
  129 +
  130 +/* MMCIF */
  131 +#define CONFIG_MMC 1
  132 +#define CONFIG_GENERIC_MMC 1
  133 +#define CONFIG_SH_MMCIF 1
  134 +#define CONFIG_SH_MMCIF_ADDR 0xffcb0000
  135 +#define CONFIG_SH_MMCIF_CLK 48000000
125 136  
126 137 /* SH7757 board */
127 138 #define SH7757LCR_SDRAM_PHYS_TOP 0x40000000