* [U-Boot] [PATCH] sh: sh7757lcr: add supporting for MMCIF
@ 2012-03-06 6:11 Shimoda, Yoshihiro
2012-03-13 8:00 ` Nobuhiro Iwamatsu
0 siblings, 1 reply; 2+ messages in thread
From: Shimoda, Yoshihiro @ 2012-03-06 6:11 UTC (permalink / raw)
To: u-boot
The sh7757lcr has 2GByte eMMC chip. This patch supports it.
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
board/renesas/sh7757lcr/sh7757lcr.c | 5 +++++
doc/README.sh7757lcr | 1 +
include/configs/sh7757lcr.h | 11 +++++++++++
3 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/board/renesas/sh7757lcr/sh7757lcr.c b/board/renesas/sh7757lcr/sh7757lcr.c
index a62be24..adae9ce 100644
--- a/board/renesas/sh7757lcr/sh7757lcr.c
+++ b/board/renesas/sh7757lcr/sh7757lcr.c
@@ -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;
diff --git a/doc/README.sh7757lcr b/doc/README.sh7757lcr
index 37c1a7a..3e9c1c1 100644
--- a/doc/README.sh7757lcr
+++ b/doc/README.sh7757lcr
@@ -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:
diff --git a/include/configs/sh7757lcr.h b/include/configs/sh7757lcr.h
index c1f9ce8..73d2a87 100644
--- a/include/configs/sh7757lcr.h
+++ b/include/configs/sh7757lcr.h
@@ -49,6 +49,10 @@
#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
@@ -123,6 +127,13 @@
#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
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* [U-Boot] [PATCH] sh: sh7757lcr: add supporting for MMCIF
2012-03-06 6:11 [U-Boot] [PATCH] sh: sh7757lcr: add supporting for MMCIF Shimoda, Yoshihiro
@ 2012-03-13 8:00 ` Nobuhiro Iwamatsu
0 siblings, 0 replies; 2+ messages in thread
From: Nobuhiro Iwamatsu @ 2012-03-13 8:00 UTC (permalink / raw)
To: u-boot
Applied, thanks.
Nobuhiro
2012/3/6 Shimoda, Yoshihiro <yoshihiro.shimoda.uh@renesas.com>:
> The sh7757lcr has 2GByte eMMC chip. This patch supports it.
>
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
> ---
> ?board/renesas/sh7757lcr/sh7757lcr.c | ? ?5 +++++
> ?doc/README.sh7757lcr ? ? ? ? ? ? ? ?| ? ?1 +
> ?include/configs/sh7757lcr.h ? ? ? ? | ? 11 +++++++++++
> ?3 files changed, 17 insertions(+), 0 deletions(-)
>
> diff --git a/board/renesas/sh7757lcr/sh7757lcr.c b/board/renesas/sh7757lcr/sh7757lcr.c
> index a62be24..adae9ce 100644
> --- a/board/renesas/sh7757lcr/sh7757lcr.c
> +++ b/board/renesas/sh7757lcr/sh7757lcr.c
> @@ -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;
> diff --git a/doc/README.sh7757lcr b/doc/README.sh7757lcr
> index 37c1a7a..3e9c1c1 100644
> --- a/doc/README.sh7757lcr
> +++ b/doc/README.sh7757lcr
> @@ -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:
> diff --git a/include/configs/sh7757lcr.h b/include/configs/sh7757lcr.h
> index c1f9ce8..73d2a87 100644
> --- a/include/configs/sh7757lcr.h
> +++ b/include/configs/sh7757lcr.h
> @@ -49,6 +49,10 @@
> ?#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
> @@ -123,6 +127,13 @@
> ?#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
> --
> 1.7.1
--
Nobuhiro Iwamatsu
?? iwamatsu at {nigauri.org / debian.org}
?? GPG ID: 40AD1FA6
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-13 8:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-06 6:11 [U-Boot] [PATCH] sh: sh7757lcr: add supporting for MMCIF Shimoda, Yoshihiro
2012-03-13 8:00 ` Nobuhiro Iwamatsu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox