public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] armv8: ls1043a: remove redundant code in board files
@ 2016-04-26  4:51 Gong Qianyu
  2016-04-26  4:51 ` [U-Boot] [PATCH 2/2] armv8: ls1043ardb: fix types of variables Gong Qianyu
  2016-05-24 17:15 ` [U-Boot] [PATCH 1/2] armv8: ls1043a: remove redundant code in board files York Sun
  0 siblings, 2 replies; 4+ messages in thread
From: Gong Qianyu @ 2016-04-26  4:51 UTC (permalink / raw)
  To: u-boot

gd->env_addr will be initialized in env_init() in
common/env_nowhere.c if CONFIG_ENV_IS_NOWHERE is defined.
So no need to do it again.

Signed-off-by: Gong Qianyu <Qianyu.Gong@nxp.com>
---
 board/freescale/ls1043aqds/ls1043aqds.c | 4 ----
 board/freescale/ls1043ardb/ls1043ardb.c | 5 -----
 2 files changed, 9 deletions(-)

diff --git a/board/freescale/ls1043aqds/ls1043aqds.c b/board/freescale/ls1043aqds/ls1043aqds.c
index fba6b88..a59b8f4 100644
--- a/board/freescale/ls1043aqds/ls1043aqds.c
+++ b/board/freescale/ls1043aqds/ls1043aqds.c
@@ -325,10 +325,6 @@ int board_init(void)
 #ifdef CONFIG_LAYERSCAPE_NS_ACCESS
 	enable_layerscape_ns_access();
 #endif
-
-#ifdef CONFIG_ENV_IS_NOWHERE
-	gd->env_addr = (ulong)&default_environment[0];
-#endif
 	return 0;
 }
 
diff --git a/board/freescale/ls1043ardb/ls1043ardb.c b/board/freescale/ls1043ardb/ls1043ardb.c
index ec5fdbf..f1d4c39 100644
--- a/board/freescale/ls1043ardb/ls1043ardb.c
+++ b/board/freescale/ls1043ardb/ls1043ardb.c
@@ -19,7 +19,6 @@
 #include <fsl_csu.h>
 #include <fsl_esdhc.h>
 #include <fsl_ifc.h>
-#include <environment.h>
 #include <fsl_sec.h>
 #include "cpld.h"
 #ifdef CONFIG_U_QE
@@ -95,10 +94,6 @@ int board_init(void)
 	init_final_memctl_regs();
 #endif
 
-#ifdef CONFIG_ENV_IS_NOWHERE
-	gd->env_addr = (ulong)&default_environment[0];
-#endif
-
 #ifdef CONFIG_LAYERSCAPE_NS_ACCESS
 	enable_layerscape_ns_access();
 #endif
-- 
2.1.0.27.g96db324

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

* [U-Boot] [PATCH 2/2] armv8: ls1043ardb: fix types of variables
  2016-04-26  4:51 [U-Boot] [PATCH 1/2] armv8: ls1043a: remove redundant code in board files Gong Qianyu
@ 2016-04-26  4:51 ` Gong Qianyu
  2016-05-24 17:15   ` York Sun
  2016-05-24 17:15 ` [U-Boot] [PATCH 1/2] armv8: ls1043a: remove redundant code in board files York Sun
  1 sibling, 1 reply; 4+ messages in thread
From: Gong Qianyu @ 2016-04-26  4:51 UTC (permalink / raw)
  To: u-boot

Using u16 for cfg_rcw_src and u8 for sd1refclk_sel is enough.

Signed-off-by: Gong Qianyu <Qianyu.Gong@nxp.com>
---
 board/freescale/ls1043ardb/ls1043ardb.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/board/freescale/ls1043ardb/ls1043ardb.c b/board/freescale/ls1043ardb/ls1043ardb.c
index f1d4c39..2685dac 100644
--- a/board/freescale/ls1043ardb/ls1043ardb.c
+++ b/board/freescale/ls1043ardb/ls1043ardb.c
@@ -30,12 +30,12 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int checkboard(void)
 {
-	static const char *freq[3] = {"100.00MHZ", "156.25MHZ"};
+	static const char *freq[2] = {"100.00MHZ", "156.25MHZ"};
 #ifndef CONFIG_SD_BOOT
 	u8 cfg_rcw_src1, cfg_rcw_src2;
-	u32 cfg_rcw_src;
+	u16 cfg_rcw_src;
 #endif
-	u32 sd1refclk_sel;
+	u8 sd1refclk_sel;
 
 	printf("Board: LS1043ARDB, boot from ");
 
-- 
2.1.0.27.g96db324

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

* [U-Boot] [PATCH 1/2] armv8: ls1043a: remove redundant code in board files
  2016-04-26  4:51 [U-Boot] [PATCH 1/2] armv8: ls1043a: remove redundant code in board files Gong Qianyu
  2016-04-26  4:51 ` [U-Boot] [PATCH 2/2] armv8: ls1043ardb: fix types of variables Gong Qianyu
@ 2016-05-24 17:15 ` York Sun
  1 sibling, 0 replies; 4+ messages in thread
From: York Sun @ 2016-05-24 17:15 UTC (permalink / raw)
  To: u-boot

On 04/25/2016 10:01 PM, Gong Qianyu wrote:
> gd->env_addr will be initialized in env_init() in
> common/env_nowhere.c if CONFIG_ENV_IS_NOWHERE is defined.
> So no need to do it again.
> 
> Signed-off-by: Gong Qianyu <Qianyu.Gong@nxp.com>
> ---
>  board/freescale/ls1043aqds/ls1043aqds.c | 4 ----
>  board/freescale/ls1043ardb/ls1043ardb.c | 5 -----
>  2 files changed, 9 deletions(-)
> 

Applied to u-boot-fsl-qoriq master, awaiting upstream.

Thanks.

York

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

* [U-Boot] [PATCH 2/2] armv8: ls1043ardb: fix types of variables
  2016-04-26  4:51 ` [U-Boot] [PATCH 2/2] armv8: ls1043ardb: fix types of variables Gong Qianyu
@ 2016-05-24 17:15   ` York Sun
  0 siblings, 0 replies; 4+ messages in thread
From: York Sun @ 2016-05-24 17:15 UTC (permalink / raw)
  To: u-boot

On 04/25/2016 10:01 PM, Gong Qianyu wrote:
> Using u16 for cfg_rcw_src and u8 for sd1refclk_sel is enough.
> 
> Signed-off-by: Gong Qianyu <Qianyu.Gong@nxp.com>
> ---
>  board/freescale/ls1043ardb/ls1043ardb.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 

Applied to u-boot-fsl-qoriq master, awaiting upstream.

Thanks.

York

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

end of thread, other threads:[~2016-05-24 17:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-26  4:51 [U-Boot] [PATCH 1/2] armv8: ls1043a: remove redundant code in board files Gong Qianyu
2016-04-26  4:51 ` [U-Boot] [PATCH 2/2] armv8: ls1043ardb: fix types of variables Gong Qianyu
2016-05-24 17:15   ` York Sun
2016-05-24 17:15 ` [U-Boot] [PATCH 1/2] armv8: ls1043a: remove redundant code in board files York Sun

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