public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/2] devkit8000: add spl mmc boot
@ 2011-09-30 10:41 Simon Schwarz
  2011-09-30 10:41 ` [U-Boot] [PATCH 1/2] devkit8000: protect board_mmc_init Simon Schwarz
  2011-09-30 10:41 ` [U-Boot] [PATCH 2/2] devkit8000: Add config to enable SPL MMC boot Simon Schwarz
  0 siblings, 2 replies; 5+ messages in thread
From: Simon Schwarz @ 2011-09-30 10:41 UTC (permalink / raw)
  To: u-boot

Add MMC booting to devkit8000 SPL.

Based on: u-boot-ti/next

Simon Schwarz (2):
  devkit8000: protect board_mmc_init
  devkit8000: Add config to enable SPL MMC boot

 board/timll/devkit8000/devkit8000.c |    2 +-
 include/configs/devkit8000.h        |    5 +++++
 2 files changed, 6 insertions(+), 1 deletions(-)

-- 
1.7.4.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH 1/2] devkit8000: protect board_mmc_init
  2011-09-30 10:41 [U-Boot] [PATCH 0/2] devkit8000: add spl mmc boot Simon Schwarz
@ 2011-09-30 10:41 ` Simon Schwarz
  2011-10-14 19:58   ` Albert ARIBAUD
  2011-09-30 10:41 ` [U-Boot] [PATCH 2/2] devkit8000: Add config to enable SPL MMC boot Simon Schwarz
  1 sibling, 1 reply; 5+ messages in thread
From: Simon Schwarz @ 2011-09-30 10:41 UTC (permalink / raw)
  To: u-boot

This function is also defined in omap-common/spl_mmc.de so the implementation
in devkit8000.c was protected by a ifdef.

Signed-off-by: Simon Schwarz <simonschwarzcor@gmail.com>
---
 board/timll/devkit8000/devkit8000.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/board/timll/devkit8000/devkit8000.c b/board/timll/devkit8000/devkit8000.c
index 9124569..dc99afb 100644
--- a/board/timll/devkit8000/devkit8000.c
+++ b/board/timll/devkit8000/devkit8000.c
@@ -125,7 +125,7 @@ void set_muxconf_regs(void)
 	MUX_DEVKIT8000();
 }
 
-#ifdef CONFIG_GENERIC_MMC
+#if defined(CONFIG_GENERIC_MMC) && !defined(CONFIG_SPL_BUILD)
 int board_mmc_init(bd_t *bis)
 {
 	omap_mmc_init(0);
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH 2/2] devkit8000: Add config to enable SPL MMC boot
  2011-09-30 10:41 [U-Boot] [PATCH 0/2] devkit8000: add spl mmc boot Simon Schwarz
  2011-09-30 10:41 ` [U-Boot] [PATCH 1/2] devkit8000: protect board_mmc_init Simon Schwarz
@ 2011-09-30 10:41 ` Simon Schwarz
  2011-10-14 19:59   ` Albert ARIBAUD
  1 sibling, 1 reply; 5+ messages in thread
From: Simon Schwarz @ 2011-09-30 10:41 UTC (permalink / raw)
  To: u-boot

Add MMC boot configs to devkit8000 config.

Signed-off-by: Simon Schwarz <simonschwarzcor@gmail.com>
---
 include/configs/devkit8000.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/include/configs/devkit8000.h b/include/configs/devkit8000.h
index 5d1014b..cb68169 100644
--- a/include/configs/devkit8000.h
+++ b/include/configs/devkit8000.h
@@ -325,7 +325,12 @@
 #define CONFIG_SPL_SERIAL_SUPPORT
 #define CONFIG_SPL_POWER_SUPPORT
 #define CONFIG_SPL_NAND_SUPPORT
+#define CONFIG_SPL_MMC_SUPPORT
+#define CONFIG_SPL_FAT_SUPPORT
 #define CONFIG_SPL_LDSCRIPT		"$(CPUDIR)/omap-common/u-boot-spl.lds"
+#define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME        "u-boot.img"
+#define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION    1
+#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
 
 #define CONFIG_SPL_TEXT_BASE		0x40200000 /*CONFIG_SYS_SRAM_START*/
 #define CONFIG_SPL_MAX_SIZE		0xB400  /* 45 K */
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH 1/2] devkit8000: protect board_mmc_init
  2011-09-30 10:41 ` [U-Boot] [PATCH 1/2] devkit8000: protect board_mmc_init Simon Schwarz
@ 2011-10-14 19:58   ` Albert ARIBAUD
  0 siblings, 0 replies; 5+ messages in thread
From: Albert ARIBAUD @ 2011-10-14 19:58 UTC (permalink / raw)
  To: u-boot

Hi Simon,

Le 30/09/2011 12:41, Simon Schwarz a ?crit :
> This function is also defined in omap-common/spl_mmc.de so the implementation
> in devkit8000.c was protected by a ifdef.
>
> Signed-off-by: Simon Schwarz<simonschwarzcor@gmail.com>
> ---
>   board/timll/devkit8000/devkit8000.c |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/board/timll/devkit8000/devkit8000.c b/board/timll/devkit8000/devkit8000.c
> index 9124569..dc99afb 100644
> --- a/board/timll/devkit8000/devkit8000.c
> +++ b/board/timll/devkit8000/devkit8000.c
> @@ -125,7 +125,7 @@ void set_muxconf_regs(void)
>   	MUX_DEVKIT8000();
>   }
>
> -#ifdef CONFIG_GENERIC_MMC
> +#if defined(CONFIG_GENERIC_MMC)&&  !defined(CONFIG_SPL_BUILD)
>   int board_mmc_init(bd_t *bis)
>   {
>   	omap_mmc_init(0);

Applied to u-boot-arm/master, thanks!

Amicalement,
-- 
Albert.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH 2/2] devkit8000: Add config to enable SPL MMC boot
  2011-09-30 10:41 ` [U-Boot] [PATCH 2/2] devkit8000: Add config to enable SPL MMC boot Simon Schwarz
@ 2011-10-14 19:59   ` Albert ARIBAUD
  0 siblings, 0 replies; 5+ messages in thread
From: Albert ARIBAUD @ 2011-10-14 19:59 UTC (permalink / raw)
  To: u-boot

Hi Simon,

Le 30/09/2011 12:41, Simon Schwarz a ?crit :
> Add MMC boot configs to devkit8000 config.
>
> Signed-off-by: Simon Schwarz<simonschwarzcor@gmail.com>
> ---
>   include/configs/devkit8000.h |    5 +++++
>   1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/include/configs/devkit8000.h b/include/configs/devkit8000.h
> index 5d1014b..cb68169 100644
> --- a/include/configs/devkit8000.h
> +++ b/include/configs/devkit8000.h
> @@ -325,7 +325,12 @@
>   #define CONFIG_SPL_SERIAL_SUPPORT
>   #define CONFIG_SPL_POWER_SUPPORT
>   #define CONFIG_SPL_NAND_SUPPORT
> +#define CONFIG_SPL_MMC_SUPPORT
> +#define CONFIG_SPL_FAT_SUPPORT
>   #define CONFIG_SPL_LDSCRIPT		"$(CPUDIR)/omap-common/u-boot-spl.lds"
> +#define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME        "u-boot.img"
> +#define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION    1
> +#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
>
>   #define CONFIG_SPL_TEXT_BASE		0x40200000 /*CONFIG_SYS_SRAM_START*/
>   #define CONFIG_SPL_MAX_SIZE		0xB400  /* 45 K */

Applied to u-boot-arm/master, thanks!

Amicalement,
-- 
Albert.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-10-14 19:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-30 10:41 [U-Boot] [PATCH 0/2] devkit8000: add spl mmc boot Simon Schwarz
2011-09-30 10:41 ` [U-Boot] [PATCH 1/2] devkit8000: protect board_mmc_init Simon Schwarz
2011-10-14 19:58   ` Albert ARIBAUD
2011-09-30 10:41 ` [U-Boot] [PATCH 2/2] devkit8000: Add config to enable SPL MMC boot Simon Schwarz
2011-10-14 19:59   ` Albert ARIBAUD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox