public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] SMDK5250: Remove reduntant code
@ 2013-06-25 13:47 Rajeshwari Shinde
  2013-06-25 13:55 ` Simon Glass
  2013-06-28  0:20 ` Minkyu Kang
  0 siblings, 2 replies; 4+ messages in thread
From: Rajeshwari Shinde @ 2013-06-25 13:47 UTC (permalink / raw)
  To: u-boot

enum boot_mode is defined twice once in spl.h and also in
spl_boot.c, hence removing the same from spl_boot.c and including
the header file.

Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
---
 arch/arm/include/asm/arch-exynos/spl.h |    1 +
 board/samsung/smdk5250/spl_boot.c      |   10 +---------
 2 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/arch/arm/include/asm/arch-exynos/spl.h b/arch/arm/include/asm/arch-exynos/spl.h
index 46b25a6..59bb7e0 100644
--- a/arch/arm/include/asm/arch-exynos/spl.h
+++ b/arch/arm/include/asm/arch-exynos/spl.h
@@ -32,6 +32,7 @@ enum boot_mode {
 	 * pin values are the same across Exynos4 and Exynos5.
 	 */
 	BOOT_MODE_MMC = 4,
+	BOOT_MODE_EMMC = 8,     /* EMMC4.4 */
 	BOOT_MODE_SERIAL = 20,
 	/* Boot based on Operating Mode pin settings */
 	BOOT_MODE_OM = 32,
diff --git a/board/samsung/smdk5250/spl_boot.c b/board/samsung/smdk5250/spl_boot.c
index 98f2286..83275f1 100644
--- a/board/samsung/smdk5250/spl_boot.c
+++ b/board/samsung/smdk5250/spl_boot.c
@@ -26,6 +26,7 @@
 #include <asm/arch-exynos/dmc.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/clk.h>
+#include <asm/arch/spl.h>
 
 #include "clock_init.h"
 
@@ -48,15 +49,6 @@ u32 irom_ptr_table[] = {
 	[USB_INDEX] = 0x02020070,	/* iROM Function Pointer-USB boot*/
 	};
 
-enum boot_mode {
-	BOOT_MODE_MMC = 4,
-	BOOT_MODE_SERIAL = 20,
-	BOOT_MODE_EMMC = 8,     /* EMMC4.4 */
-	/* Boot based on Operating Mode pin settings */
-	BOOT_MODE_OM = 32,
-	BOOT_MODE_USB,	/* Boot using USB download */
-};
-
 void *get_irom_func(int index)
 {
 	return (void *)*(u32 *)irom_ptr_table[index];
-- 
1.7.4.4

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

* [U-Boot] [PATCH] SMDK5250: Remove reduntant code
  2013-06-25 13:47 [U-Boot] [PATCH] SMDK5250: Remove reduntant code Rajeshwari Shinde
@ 2013-06-25 13:55 ` Simon Glass
  2013-06-27  9:17   ` Rajeshwari Birje
  2013-06-28  0:20 ` Minkyu Kang
  1 sibling, 1 reply; 4+ messages in thread
From: Simon Glass @ 2013-06-25 13:55 UTC (permalink / raw)
  To: u-boot

On Tue, Jun 25, 2013 at 6:47 AM, Rajeshwari Shinde <rajeshwari.s@samsung.com
> wrote:

> enum boot_mode is defined twice once in spl.h and also in
> spl_boot.c, hence removing the same from spl_boot.c and including
> the header file.
>
> Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
>

Acked-by: Simon Glass <sjg@chromium.org>

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

* [U-Boot] [PATCH] SMDK5250: Remove reduntant code
  2013-06-25 13:55 ` Simon Glass
@ 2013-06-27  9:17   ` Rajeshwari Birje
  0 siblings, 0 replies; 4+ messages in thread
From: Rajeshwari Birje @ 2013-06-27  9:17 UTC (permalink / raw)
  To: u-boot

Hi Minkyu,

Please do let me know your coments on the same. If no comments can we
get this patch merged.

On Tue, Jun 25, 2013 at 7:25 PM, Simon Glass <sjg@chromium.org> wrote:
> On Tue, Jun 25, 2013 at 6:47 AM, Rajeshwari Shinde <rajeshwari.s@samsung.com
>> wrote:
>
>> enum boot_mode is defined twice once in spl.h and also in
>> spl_boot.c, hence removing the same from spl_boot.c and including
>> the header file.
>>
>> Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
>>
>
> Acked-by: Simon Glass <sjg@chromium.org>
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
-- 
Regards,
Rajeshwari Shinde

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

* [U-Boot] [PATCH] SMDK5250: Remove reduntant code
  2013-06-25 13:47 [U-Boot] [PATCH] SMDK5250: Remove reduntant code Rajeshwari Shinde
  2013-06-25 13:55 ` Simon Glass
@ 2013-06-28  0:20 ` Minkyu Kang
  1 sibling, 0 replies; 4+ messages in thread
From: Minkyu Kang @ 2013-06-28  0:20 UTC (permalink / raw)
  To: u-boot

On 25/06/13 22:47, Rajeshwari Shinde wrote:
> enum boot_mode is defined twice once in spl.h and also in
> spl_boot.c, hence removing the same from spl_boot.c and including
> the header file.
> 
> Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
> ---
>  arch/arm/include/asm/arch-exynos/spl.h |    1 +
>  board/samsung/smdk5250/spl_boot.c      |   10 +---------
>  2 files changed, 2 insertions(+), 9 deletions(-)
> 
> diff --git a/arch/arm/include/asm/arch-exynos/spl.h b/arch/arm/include/asm/arch-exynos/spl.h
> index 46b25a6..59bb7e0 100644
> --- a/arch/arm/include/asm/arch-exynos/spl.h
> +++ b/arch/arm/include/asm/arch-exynos/spl.h
> @@ -32,6 +32,7 @@ enum boot_mode {
>  	 * pin values are the same across Exynos4 and Exynos5.
>  	 */
>  	BOOT_MODE_MMC = 4,
> +	BOOT_MODE_EMMC = 8,     /* EMMC4.4 */
>  	BOOT_MODE_SERIAL = 20,
>  	/* Boot based on Operating Mode pin settings */
>  	BOOT_MODE_OM = 32,
> diff --git a/board/samsung/smdk5250/spl_boot.c b/board/samsung/smdk5250/spl_boot.c
> index 98f2286..83275f1 100644
> --- a/board/samsung/smdk5250/spl_boot.c
> +++ b/board/samsung/smdk5250/spl_boot.c
> @@ -26,6 +26,7 @@
>  #include <asm/arch-exynos/dmc.h>
>  #include <asm/arch/clock.h>
>  #include <asm/arch/clk.h>
> +#include <asm/arch/spl.h>
>  
>  #include "clock_init.h"
>  
> @@ -48,15 +49,6 @@ u32 irom_ptr_table[] = {
>  	[USB_INDEX] = 0x02020070,	/* iROM Function Pointer-USB boot*/
>  	};
>  
> -enum boot_mode {
> -	BOOT_MODE_MMC = 4,
> -	BOOT_MODE_SERIAL = 20,
> -	BOOT_MODE_EMMC = 8,     /* EMMC4.4 */
> -	/* Boot based on Operating Mode pin settings */
> -	BOOT_MODE_OM = 32,
> -	BOOT_MODE_USB,	/* Boot using USB download */
> -};
> -
>  void *get_irom_func(int index)
>  {
>  	return (void *)*(u32 *)irom_ptr_table[index];
> 

applied to u-boot-samsung.

Thanks,
Minkyu Kang.

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

end of thread, other threads:[~2013-06-28  0:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-25 13:47 [U-Boot] [PATCH] SMDK5250: Remove reduntant code Rajeshwari Shinde
2013-06-25 13:55 ` Simon Glass
2013-06-27  9:17   ` Rajeshwari Birje
2013-06-28  0:20 ` Minkyu Kang

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