Skip to contentSkip to conversation

mx31pdk: Remove dram_init_banksize()

PATCH New Fabio Estevam 3 participants 30 messages Sep 22, 2011 – Sep 23, 2011 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/13 mx31pdk: Remove dram_init_banksize()

As only one RAM bank is used we can rely on the code from arch/arm/lib/board.c

---
 board/freescale/mx31pdk/mx31pdk.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
board/freescale/mx31pdk/mx31pdk.c +0 -6
index f6e190a..b522cfa 100644
@@ -47,12 +47,6 @@ int dram_init(void)
 	return 0;
 }
 
-void dram_init_banksize(void)
-{
-	gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
-	gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
-}
-
 int board_early_init_f(void)
 {
 	/* CS5: CPLD incl. network controller */
Signature · 1 line
1.6.0.4
#1 lore raw

PATCH 2/13 mx25pdk: Remove dram_init_banksize()

As only one RAM bank is used we can rely on the code from arch/arm/lib/board.c

---
 board/freescale/mx25pdk/mx25pdk.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
board/freescale/mx25pdk/mx25pdk.c +0 -6
index 6b5d1fc..34a3811 100644
@@ -33,12 +33,6 @@ int dram_init(void)
 	return 0;
 }
 
-void dram_init_banksize(void)
-{
-	gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
-	gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
-}
-
 int board_early_init_f(void)
 {
 	mx25_uart1_init_pins();
Signature · 1 line
1.6.0.4
#2 lore raw

PATCH 3/13 mx31ads: Remove dram_init_banksize()

As only one RAM bank is used we can rely on the code from arch/arm/lib/board.c

---
 board/freescale/mx31ads/mx31ads.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
board/freescale/mx31ads/mx31ads.c +0 -6
index 7637c92..4d99f49 100644
@@ -36,12 +36,6 @@ int dram_init(void)
 	return 0;
 }
 
-void dram_init_banksize(void)
-{
-	gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
-	gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
-}
-
 int board_early_init_f(void)
 {
 	int i;
Signature · 1 line
1.6.0.4
#3 lore raw

PATCH 4/13 imx31_litekit: Remove dram_init_banksize()

As only one RAM bank is used we can rely on the code from arch/arm/lib/board.c

---
 board/logicpd/imx31_litekit/imx31_litekit.c |    6 ------
 include/configs/imx31_litekit.h             |    2 +-
 2 files changed, 1 insertions(+), 7 deletions(-)
board/logicpd/imx31_litekit/imx31_litekit.c +0 -6
index 09cc9c5..0402a0b 100644
@@ -37,12 +37,6 @@ int dram_init(void)
 	return 0;
 }
 
-void dram_init_banksize(void)
-{
-	gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
-	gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
-}
-
 int board_early_init_f(void)
 {
 	__REG(CSCR_U(0)) = 0x0000cf03; /* CS0: Nor Flash */
include/configs/imx31_litekit.h +1 -1
index b7f1cb3..2a02b3d 100644
@@ -150,7 +150,7 @@
 #define PHYS_SDRAM_1_SIZE	(128 * 1024 * 1024)
 #define CONFIG_BOARD_EARLY_INIT_F
 
-#define CONFIG_SYS_SDRAM_BASE		CSD0_BASE
+#define CONFIG_SYS_SDRAM_BASE		PHYS_SDRAM_1
 #define CONFIG_SYS_INIT_RAM_ADDR	IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE		IRAM_SIZE
 #define CONFIG_SYS_GBL_DATA_OFFSET	(CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
Signature · 1 line
1.6.0.4
#4 lore raw

PATCH 5/13 mx31pdk: Place machine ID into board config

Let common code set the machine ID.

---
 board/freescale/mx31pdk/mx31pdk.c |    1 -
 include/configs/mx31pdk.h         |    2 ++
 2 files changed, 2 insertions(+), 1 deletions(-)
board/freescale/mx31pdk/mx31pdk.c +0 -1
index b522cfa..276d451 100644
@@ -63,7 +63,6 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-	gd->bd->bi_arch_number = MACH_TYPE_MX31_3DS; /* board id for linux */
 	/* adress of boot parameters */
 	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 
include/configs/mx31pdk.h +2 -0
index 466dc5d..cd156d8 100644
@@ -45,6 +45,8 @@
 #define CONFIG_SETUP_MEMORY_TAGS
 #define CONFIG_INITRD_TAG
 
+#define CONFIG_MACH_TYPE	MACH_TYPE_MX31_3DS
+
 #if defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)
 #define CONFIG_SKIP_LOWLEVEL_INIT
 #endif
Signature · 1 line
1.6.0.4
#5 lore raw

PATCH 6/13 mx25pdk: Place machine ID into board config

Let common code set the machine ID.

---
 board/freescale/mx25pdk/mx25pdk.c |    1 -
 include/configs/mx25pdk.h         |    2 ++
 2 files changed, 2 insertions(+), 1 deletions(-)
board/freescale/mx25pdk/mx25pdk.c +0 -1
index 34a3811..4a8352f 100644
@@ -42,7 +42,6 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-	gd->bd->bi_arch_number = MACH_TYPE_MX25_3DS;
 	/* address of boot parameters */
 	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 
include/configs/mx25pdk.h +2 -0
index fc80a71..0afae24 100644
@@ -28,6 +28,8 @@
 #define CONFIG_SETUP_MEMORY_TAGS
 #define CONFIG_INITRD_TAG
 
+#define CONFIG_MACH_TYPE	MACH_TYPE_MX25_3DS
+
 /* Size of malloc() pool */
 #define CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SIZE + 2 * 1024 * 1024)
 
Signature · 1 line
1.6.0.4
#6 lore raw

PATCH 7/13 mx31ads: Place machine ID into board config

Let common code set the machine ID.

---
 board/freescale/mx31ads/mx31ads.c |    1 -
 include/configs/mx31ads.h         |    2 ++
 2 files changed, 2 insertions(+), 1 deletions(-)
board/freescale/mx31ads/mx31ads.c +0 -1
index 4d99f49..4dd1e63 100644
@@ -99,7 +99,6 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-	gd->bd->bi_arch_number = MACH_TYPE_MX31ADS;	/* board id for linux */
 	gd->bd->bi_boot_params = 0x80000100;	/* adress of boot parameters */
 
 	return 0;
include/configs/mx31ads.h +2 -0
index adb2ee1..0bea858 100644
@@ -35,6 +35,8 @@
 
 #define CONFIG_SYS_TEXT_BASE		0xA0000000
 
+#define CONFIG_MACH_TYPE	MACH_TYPE_MX31ADS
+
 /*
  * Disabled for now due to build problems under Debian and a significant increase
  * in the final file size: 144260 vs. 109536 Bytes.
Signature · 1 line
1.6.0.4
#7 lore raw

PATCH 8/13 imx31_litekit: Place machine ID into board config

Let common code set the machine ID.

---
 board/logicpd/imx31_litekit/imx31_litekit.c |    1 -
 include/configs/imx31_litekit.h             |    2 ++
 2 files changed, 2 insertions(+), 1 deletions(-)
board/logicpd/imx31_litekit/imx31_litekit.c +0 -1
index 0402a0b..7214008 100644
@@ -70,7 +70,6 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-	gd->bd->bi_arch_number = MACH_TYPE_MX31LITE; /* board id for linux */
 	gd->bd->bi_boot_params = (0x80000100);	/* adress of boot parameters */
 
 	return 0;
include/configs/imx31_litekit.h +2 -0
index 2a02b3d..5e976bc 100644
@@ -41,6 +41,8 @@
 
 #define CONFIG_SYS_TEXT_BASE	0xa0000000
 
+#define CONFIG_MACH_TYPE	MACH_TYPE_MX31LITE
+
 /* Temporarily disabled */
 #if 0
 #define CONFIG_OF_LIBFDT		1
Signature · 1 line
1.6.0.4
#8 lore raw

PATCH 9/13 mx51evk: Place machine ID into board config

Let common code set the machine ID.

---
 board/freescale/mx51evk/mx51evk.c |    1 -
 include/configs/mx51evk.h         |    1 +
 2 files changed, 1 insertions(+), 1 deletions(-)
board/freescale/mx51evk/mx51evk.c +0 -1
index 94ea1f2..8da1ee8 100644
@@ -403,7 +403,6 @@ int board_init(void)
 {
 	system_rev = get_cpu_rev();
 
-	gd->bd->bi_arch_number = MACH_TYPE_MX51_BABBAGE;
 	/* address of boot parameters */
 	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 
include/configs/mx51evk.h +1 -0
index 7d05dc8..39bf2a1 100644
@@ -48,6 +48,7 @@
 
 #define CONFIG_OF_LIBFDT		1
 
+#define CONFIG_MACH_TYPE	MACH_TYPE_MX51_BABBAGE	
 /*
  * Size of malloc() pool
  */
Signature · 1 line
1.6.0.4
#9 lore raw

PATCH 10/13 mx53loco: Place machine ID into board config

Let common code set the machine ID.

---
 board/freescale/mx53loco/mx53loco.c |    1 -
 include/configs/mx53loco.h          |    2 ++
 2 files changed, 2 insertions(+), 1 deletions(-)
board/freescale/mx53loco/mx53loco.c +0 -1
index ade1006..156f8b5 100644
@@ -288,7 +288,6 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-	gd->bd->bi_arch_number = MACH_TYPE_MX53_LOCO;
 	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 
 	return 0;
include/configs/mx53loco.h +2 -0
index cfb38a5..4091703 100644
@@ -30,6 +30,8 @@
 #define CONFIG_DISPLAY_CPUINFO
 #define CONFIG_DISPLAY_BOARDINFO
 
+#define CONFIG_MACH_TYPE	MACH_TYPE_MX53_LOCO
+
 #include <asm/arch/imx-regs.h>
 
 #define CONFIG_CMDLINE_TAG
Signature · 1 line
1.6.0.4
#10 lore raw

PATCH 11/13 mx53smd: Place machine ID into board config

Let common code set the machine ID.

---
 board/freescale/mx53smd/mx53smd.c |    1 -
 include/configs/mx53smd.h         |    4 +++-
 2 files changed, 3 insertions(+), 2 deletions(-)
board/freescale/mx53smd/mx53smd.c +0 -1
index 4a7ee55..776784f 100644
@@ -214,7 +214,6 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-	gd->bd->bi_arch_number = MACH_TYPE_MX53_SMD;
 	/* address of boot parameters */
 	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 
include/configs/mx53smd.h +3 -1
index 49f8c6e..261f0bc 100644
@@ -1,7 +1,7 @@
 /*
  * Copyright (C) 2011 Freescale Semiconductor, Inc.
  *
- * Configuration settings for the MX53-SMDFreescale board.
+ * Configuration settings for the MX53SMD Freescale board.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
@@ -29,6 +29,8 @@
 #define CONFIG_DISPLAY_CPUINFO
 #define CONFIG_DISPLAY_BOARDINFO
 
+#define CONFIG_MACH_TYPE	MACH_TYPE_MX53_SMD
+
 #include <asm/arch/imx-regs.h>
 
 #define CONFIG_CMDLINE_TAG			/* enable passing of ATAGs */
Signature · 1 line
1.6.0.4
#11 lore raw

PATCH 12/13 mx53ard: Place machine ID into board config

Let common code set the machine ID.

---
 board/freescale/mx53ard/mx53ard.c |    1 -
 include/configs/mx53ard.h         |    2 ++
 2 files changed, 2 insertions(+), 1 deletions(-)
board/freescale/mx53ard/mx53ard.c +0 -1
index 6e3360b..c89da13 100644
@@ -278,7 +278,6 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-	gd->bd->bi_arch_number = MACH_TYPE_MX53_ARD;
 	/* address of boot parameters */
 	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 
include/configs/mx53ard.h +2 -0
index c0b8d6a..26fc219 100644
@@ -29,6 +29,8 @@
 #define CONFIG_DISPLAY_CPUINFO
 #define CONFIG_DISPLAY_BOARDINFO
 
+#define CONFIG_MACH_TYPE	MACH_TYPE_MX53_ARD
+
 #include <asm/arch/imx-regs.h>
 
 #define CONFIG_CMDLINE_TAG			/* enable passing of ATAGs */
Signature · 1 line
1.6.0.4
#12 lore raw

PATCH 13/13 mx53evk: Place machine ID into board config

Let common code set the machine ID.

---
 board/freescale/mx53evk/mx53evk.c |    1 -
 include/configs/mx53evk.h         |    2 ++
 2 files changed, 2 insertions(+), 1 deletions(-)
board/freescale/mx53evk/mx53evk.c +0 -1
index 81857ff..fd821c0 100644
@@ -355,7 +355,6 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-	gd->bd->bi_arch_number = MACH_TYPE_MX53_EVK;
 	/* address of boot parameters */
 	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 
include/configs/mx53evk.h +2 -0
index 7fb1d9a..b127b06 100644
@@ -29,6 +29,8 @@
 #define CONFIG_DISPLAY_CPUINFO
 #define CONFIG_DISPLAY_BOARDINFO
 
+#define CONFIG_MACH_TYPE	MACH_TYPE_MX53_EVK
+
 #include <asm/arch/imx-regs.h>
 
 #define CONFIG_CMDLINE_TAG		1	/* enable passing of ATAGs */
Signature · 1 line
1.6.0.4
#13 lore raw

PATCH 13/13 mx53evk: Place machine ID into board config

Quoted 25 lines · Fabio Estevam

Let common code set the machine ID.

---
 board/freescale/mx53evk/mx53evk.c |    1 -
 include/configs/mx53evk.h         |    2 ++
 2 files changed, 2 insertions(+), 1 deletions(-)
board/freescale/mx53evk/mx53evk.c +0 -1
index 81857ff..fd821c0 100644
@@ -355,7 +355,6 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-	gd->bd->bi_arch_number = MACH_TYPE_MX53_EVK;
 	/* address of boot parameters */
 	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 
include/configs/mx53evk.h +0 -0
index 7fb1d9a..b127b06 100644

include/configs/mx53evk.h line 36

Quoted 8 lines
include/configs/mx53evk.h +2 -0
@@ -29,6 +29,8 @@
 #define CONFIG_DISPLAY_CPUINFO
 #define CONFIG_DISPLAY_BOARDINFO
 
+#define CONFIG_MACH_TYPE	MACH_TYPE_MX53_EVK
+
 #include <asm/arch/imx-regs.h>
 
 #define CONFIG_CMDLINE_TAG		1	/* enable passing of ATAGs */

Forwarded to Jason.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================
#14 lore raw

PATCH 13/13 mx53evk: Place machine ID into board config

Hi, Fabio,

Quoted 4 lines · Stefano Babic
Quoted 3 lines · Fabio Estevam

Let common code set the machine ID.

As Stefano said, please Cc me here.

Quoted 25 lines
Quoted 25 lines

---
?board/freescale/mx53evk/mx53evk.c | ? ?1 -
?include/configs/mx53evk.h ? ? ? ? | ? ?2 ++
?2 files changed, 2 insertions(+), 1 deletions(-)

board/freescale/mx53evk/mx53evk.c +0 -1
index 81857ff..fd821c0 100644
@@ -355,7 +355,6 @@ int board_early_init_f(void)
 
 ?int board_init(void)
 ?{
- ? ? gd->bd->bi_arch_number = MACH_TYPE_MX53_EVK;

? ? ? /* address of boot parameters */
? ? ? gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;

include/configs/mx53evk.h +0 -0
index 7fb1d9a..b127b06 100644
@@ -29,6 +29,8 @@

?#define CONFIG_DISPLAY_CPUINFO
?#define CONFIG_DISPLAY_BOARDINFO

Quoted 7 lines
Quoted 5 lines
include/configs/mx53evk.h +2 -0
+#define CONFIG_MACH_TYPE ? ? MACH_TYPE_MX53_EVK
+

?#include <asm/arch/imx-regs.h>

?#define CONFIG_CMDLINE_TAG ? ? ? ? ? 1 ? ? ? /* enable passing of ATAGs */

Forwarded to Jason.

Quoted 13 lines

Best regards,
Stefano Babic

--
=====================================================================
DENX Software Engineering GmbH, ? ? MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 ?Email: office at denx.de
=====================================================================

#15 lore raw

PATCH 13/13 mx53evk: Place machine ID into board config

In reply to Fabio Estevam
Quoted 25 lines · Fabio Estevam

Let common code set the machine ID.

---
 board/freescale/mx53evk/mx53evk.c |    1 -
 include/configs/mx53evk.h         |    2 ++
 2 files changed, 2 insertions(+), 1 deletions(-)
board/freescale/mx53evk/mx53evk.c +0 -1
index 81857ff..fd821c0 100644
@@ -355,7 +355,6 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-	gd->bd->bi_arch_number = MACH_TYPE_MX53_EVK;
 	/* address of boot parameters */
 	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 
include/configs/mx53evk.h +0 -0
index 7fb1d9a..b127b06 100644

include/configs/mx53evk.h line 36

Quoted 8 lines
include/configs/mx53evk.h +2 -0
@@ -29,6 +29,8 @@
 #define CONFIG_DISPLAY_CPUINFO
 #define CONFIG_DISPLAY_BOARDINFO
 
+#define CONFIG_MACH_TYPE	MACH_TYPE_MX53_EVK
+
 #include <asm/arch/imx-regs.h>
 
 #define CONFIG_CMDLINE_TAG		1	/* enable passing of ATAGs */

Applied to u-boot-imx, next branch, thanks.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================
#16 lore raw

PATCH 12/13 mx53ard: Place machine ID into board config

In reply to Fabio Estevam
Quoted 25 lines · Fabio Estevam

Let common code set the machine ID.

---
 board/freescale/mx53ard/mx53ard.c |    1 -
 include/configs/mx53ard.h         |    2 ++
 2 files changed, 2 insertions(+), 1 deletions(-)
board/freescale/mx53ard/mx53ard.c +0 -1
index 6e3360b..c89da13 100644
@@ -278,7 +278,6 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-	gd->bd->bi_arch_number = MACH_TYPE_MX53_ARD;
 	/* address of boot parameters */
 	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 
include/configs/mx53ard.h +0 -0
index c0b8d6a..26fc219 100644

include/configs/mx53ard.h line 36

Quoted 8 lines
include/configs/mx53ard.h +2 -0
@@ -29,6 +29,8 @@
 #define CONFIG_DISPLAY_CPUINFO
 #define CONFIG_DISPLAY_BOARDINFO
 
+#define CONFIG_MACH_TYPE	MACH_TYPE_MX53_ARD
+
 #include <asm/arch/imx-regs.h>
 
 #define CONFIG_CMDLINE_TAG			/* enable passing of ATAGs */

Applied to u-boot-imx, next branch, thanks.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================
#17 lore raw

PATCH 11/13 mx53smd: Place machine ID into board config

In reply to Fabio Estevam
Quoted 34 lines · Fabio Estevam

Let common code set the machine ID.

---
 board/freescale/mx53smd/mx53smd.c |    1 -
 include/configs/mx53smd.h         |    4 +++-
 2 files changed, 3 insertions(+), 2 deletions(-)
board/freescale/mx53smd/mx53smd.c +0 -1
index 4a7ee55..776784f 100644
@@ -214,7 +214,6 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-	gd->bd->bi_arch_number = MACH_TYPE_MX53_SMD;
 	/* address of boot parameters */
 	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 
include/configs/mx53smd.h +1 -1
index 49f8c6e..261f0bc 100644
@@ -1,7 +1,7 @@
 /*
  * Copyright (C) 2011 Freescale Semiconductor, Inc.
  *
- * Configuration settings for the MX53-SMDFreescale board.
+ * Configuration settings for the MX53SMD Freescale board.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as

include/configs/mx53smd.h line 36

Quoted 8 lines
include/configs/mx53smd.h +2 -0
@@ -29,6 +29,8 @@
 #define CONFIG_DISPLAY_CPUINFO
 #define CONFIG_DISPLAY_BOARDINFO
 
+#define CONFIG_MACH_TYPE	MACH_TYPE_MX53_SMD
+
 #include <asm/arch/imx-regs.h>
 
 #define CONFIG_CMDLINE_TAG			/* enable passing of ATAGs */

Applied to u-boot-imx, next branch, thanks.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================
#18 lore raw

PATCH 10/13 mx53loco: Place machine ID into board config

In reply to Fabio Estevam
Quoted 25 lines · Fabio Estevam

Let common code set the machine ID.

---
 board/freescale/mx53loco/mx53loco.c |    1 -
 include/configs/mx53loco.h          |    2 ++
 2 files changed, 2 insertions(+), 1 deletions(-)
board/freescale/mx53loco/mx53loco.c +0 -1
index ade1006..156f8b5 100644
@@ -288,7 +288,6 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-	gd->bd->bi_arch_number = MACH_TYPE_MX53_LOCO;
 	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 
 	return 0;
include/configs/mx53loco.h +0 -0
index cfb38a5..4091703 100644

include/configs/mx53loco.h line 37

Quoted 8 lines
include/configs/mx53loco.h +2 -0
@@ -30,6 +30,8 @@
 #define CONFIG_DISPLAY_CPUINFO
 #define CONFIG_DISPLAY_BOARDINFO
 
+#define CONFIG_MACH_TYPE	MACH_TYPE_MX53_LOCO
+
 #include <asm/arch/imx-regs.h>
 
 #define CONFIG_CMDLINE_TAG

No problem with the patch, but it should be sent to the board maintainer,too (Jason, in CC).

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================
#19 lore raw

PATCH 10/13 mx53loco: Place machine ID into board config

Quoted 4 lines · Stefano Babic
Quoted 3 lines · Fabio Estevam

Let common code set the machine ID.

As Stefano said, please Cc me here.

Quoted 29 lines
Quoted 29 lines

---
?board/freescale/mx53loco/mx53loco.c | ? ?1 -
?include/configs/mx53loco.h ? ? ? ? ?| ? ?2 ++
?2 files changed, 2 insertions(+), 1 deletions(-)

board/freescale/mx53loco/mx53loco.c +0 -1
index ade1006..156f8b5 100644
@@ -288,7 +288,6 @@ int board_early_init_f(void)
 
 ?int board_init(void)
 ?{
- ? ? gd->bd->bi_arch_number = MACH_TYPE_MX53_LOCO;
 ? ? ? gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 
 ? ? ? return 0;
include/configs/mx53loco.h +0 -0
index cfb38a5..4091703 100644
@@ -30,6 +30,8 @@

?#define CONFIG_DISPLAY_CPUINFO
?#define CONFIG_DISPLAY_BOARDINFO

include/configs/mx53loco.h +2 -0
+#define CONFIG_MACH_TYPE ? ? MACH_TYPE_MX53_LOCO
+

?#include <asm/arch/imx-regs.h>

Quoted 5 lines
Quoted 1 line

?#define CONFIG_CMDLINE_TAG

No problem with the patch, but it should be sent to the board maintainer,too (Jason, in CC).

+1, please

Quoted 11 lines

Best regards,
Stefano Babic

--
=====================================================================
DENX Software Engineering GmbH, ? ? MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 ?Email: office at denx.de
=====================================================================

#20 lore raw

PATCH 10/13 mx53loco: Place machine ID into board config

In reply to Fabio Estevam
Quoted 25 lines · Fabio Estevam

Let common code set the machine ID.

---
 board/freescale/mx53loco/mx53loco.c |    1 -
 include/configs/mx53loco.h          |    2 ++
 2 files changed, 2 insertions(+), 1 deletions(-)
board/freescale/mx53loco/mx53loco.c +0 -1
index ade1006..156f8b5 100644
@@ -288,7 +288,6 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-	gd->bd->bi_arch_number = MACH_TYPE_MX53_LOCO;
 	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 
 	return 0;
include/configs/mx53loco.h +0 -0
index cfb38a5..4091703 100644

include/configs/mx53loco.h line 37

Quoted 8 lines
include/configs/mx53loco.h +2 -0
@@ -30,6 +30,8 @@
 #define CONFIG_DISPLAY_CPUINFO
 #define CONFIG_DISPLAY_BOARDINFO
 
+#define CONFIG_MACH_TYPE	MACH_TYPE_MX53_LOCO
+
 #include <asm/arch/imx-regs.h>
 
 #define CONFIG_CMDLINE_TAG

Applied to u-boot-imx, next branch, thanks.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================
#21 lore raw

PATCH 9/13 mx51evk: Place machine ID into board config

In reply to Fabio Estevam
Quoted 25 lines · Fabio Estevam

Let common code set the machine ID.

---
 board/freescale/mx51evk/mx51evk.c |    1 -
 include/configs/mx51evk.h         |    1 +
 2 files changed, 1 insertions(+), 1 deletions(-)
board/freescale/mx51evk/mx51evk.c +0 -1
index 94ea1f2..8da1ee8 100644
@@ -403,7 +403,6 @@ int board_init(void)
 {
 	system_rev = get_cpu_rev();
 
-	gd->bd->bi_arch_number = MACH_TYPE_MX51_BABBAGE;
 	/* address of boot parameters */
 	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 
include/configs/mx51evk.h +0 -0
index 7d05dc8..39bf2a1 100644

include/configs/mx51evk.h line 54

Quoted 7 lines
include/configs/mx51evk.h +1 -0
@@ -48,6 +48,7 @@
 
 #define CONFIG_OF_LIBFDT		1
 
+#define CONFIG_MACH_TYPE	MACH_TYPE_MX51_BABBAGE	
 /*
  * Size of malloc() pool
  */

Applied to u-boot-imx, next branch, thanks.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================
#22 lore raw

PATCH 8/13 imx31_litekit: Place machine ID into board config

In reply to Fabio Estevam
Quoted 25 lines · Fabio Estevam

Let common code set the machine ID.

---
 board/logicpd/imx31_litekit/imx31_litekit.c |    1 -
 include/configs/imx31_litekit.h             |    2 ++
 2 files changed, 2 insertions(+), 1 deletions(-)
board/logicpd/imx31_litekit/imx31_litekit.c +0 -1
index 0402a0b..7214008 100644
@@ -70,7 +70,6 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-	gd->bd->bi_arch_number = MACH_TYPE_MX31LITE; /* board id for linux */
 	gd->bd->bi_boot_params = (0x80000100);	/* adress of boot parameters */
 
 	return 0;
include/configs/imx31_litekit.h +0 -0
index 2a02b3d..5e976bc 100644

include/configs/imx31_litekit.h line 48

Quoted 8 lines
include/configs/imx31_litekit.h +2 -0
@@ -41,6 +41,8 @@
 
 #define CONFIG_SYS_TEXT_BASE	0xa0000000
 
+#define CONFIG_MACH_TYPE	MACH_TYPE_MX31LITE
+
 /* Temporarily disabled */
 #if 0
 #define CONFIG_OF_LIBFDT		1

Applied to u-boot-imx, next branch, thanks.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================
#23 lore raw

PATCH 7/13 mx31ads: Place machine ID into board config

In reply to Fabio Estevam
Quoted 25 lines · Fabio Estevam

Let common code set the machine ID.

---
 board/freescale/mx31ads/mx31ads.c |    1 -
 include/configs/mx31ads.h         |    2 ++
 2 files changed, 2 insertions(+), 1 deletions(-)
board/freescale/mx31ads/mx31ads.c +0 -1
index 4d99f49..4dd1e63 100644
@@ -99,7 +99,6 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-	gd->bd->bi_arch_number = MACH_TYPE_MX31ADS;	/* board id for linux */
 	gd->bd->bi_boot_params = 0x80000100;	/* adress of boot parameters */
 
 	return 0;
include/configs/mx31ads.h +0 -0
index adb2ee1..0bea858 100644

include/configs/mx31ads.h line 42

Quoted 8 lines
include/configs/mx31ads.h +2 -0
@@ -35,6 +35,8 @@
 
 #define CONFIG_SYS_TEXT_BASE		0xA0000000
 
+#define CONFIG_MACH_TYPE	MACH_TYPE_MX31ADS
+
 /*
  * Disabled for now due to build problems under Debian and a significant increase
  * in the final file size: 144260 vs. 109536 Bytes.

Applied to u-boot-imx, next branch, thanks.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================
#24 lore raw

PATCH 6/13 mx25pdk: Place machine ID into board config

In reply to Fabio Estevam
Quoted 25 lines · Fabio Estevam

Let common code set the machine ID.

---
 board/freescale/mx25pdk/mx25pdk.c |    1 -
 include/configs/mx25pdk.h         |    2 ++
 2 files changed, 2 insertions(+), 1 deletions(-)
board/freescale/mx25pdk/mx25pdk.c +0 -1
index 34a3811..4a8352f 100644
@@ -42,7 +42,6 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-	gd->bd->bi_arch_number = MACH_TYPE_MX25_3DS;
 	/* address of boot parameters */
 	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 
include/configs/mx25pdk.h +0 -0
index fc80a71..0afae24 100644

include/configs/mx25pdk.h line 35

Quoted 8 lines
include/configs/mx25pdk.h +2 -0
@@ -28,6 +28,8 @@
 #define CONFIG_SETUP_MEMORY_TAGS
 #define CONFIG_INITRD_TAG
 
+#define CONFIG_MACH_TYPE	MACH_TYPE_MX25_3DS
+
 /* Size of malloc() pool */
 #define CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SIZE + 2 * 1024 * 1024)
 

Applied to u-boot-imx, next branch, thanks.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================
#25 lore raw

PATCH 5/13 mx31pdk: Place machine ID into board config

In reply to Fabio Estevam
Quoted 25 lines · Fabio Estevam

Let common code set the machine ID.

---
 board/freescale/mx31pdk/mx31pdk.c |    1 -
 include/configs/mx31pdk.h         |    2 ++
 2 files changed, 2 insertions(+), 1 deletions(-)
board/freescale/mx31pdk/mx31pdk.c +0 -1
index b522cfa..276d451 100644
@@ -63,7 +63,6 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-	gd->bd->bi_arch_number = MACH_TYPE_MX31_3DS; /* board id for linux */
 	/* adress of boot parameters */
 	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 
include/configs/mx31pdk.h +0 -0
index 466dc5d..cd156d8 100644

include/configs/mx31pdk.h line 52

Quoted 8 lines
include/configs/mx31pdk.h +2 -0
@@ -45,6 +45,8 @@
 #define CONFIG_SETUP_MEMORY_TAGS
 #define CONFIG_INITRD_TAG
 
+#define CONFIG_MACH_TYPE	MACH_TYPE_MX31_3DS
+
 #if defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)
 #define CONFIG_SKIP_LOWLEVEL_INIT
 #endif

Applied to u-boot-imx, next branch, thanks.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================
#26 lore raw

PATCH 4/13 imx31_litekit: Remove dram_init_banksize()

In reply to Fabio Estevam
Quoted 30 lines · Fabio Estevam

As only one RAM bank is used we can rely on the code from arch/arm/lib/board.c

---
 board/logicpd/imx31_litekit/imx31_litekit.c |    6 ------
 include/configs/imx31_litekit.h             |    2 +-
 2 files changed, 1 insertions(+), 7 deletions(-)
board/logicpd/imx31_litekit/imx31_litekit.c +0 -6
index 09cc9c5..0402a0b 100644
@@ -37,12 +37,6 @@ int dram_init(void)
 	return 0;
 }
 
-void dram_init_banksize(void)
-{
-	gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
-	gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
-}
-
 int board_early_init_f(void)
 {
 	__REG(CSCR_U(0)) = 0x0000cf03; /* CS0: Nor Flash */
include/configs/imx31_litekit.h +0 -0
index b7f1cb3..2a02b3d 100644

include/configs/imx31_litekit.h line 156

Quoted 8 lines
include/configs/imx31_litekit.h +1 -1
@@ -150,7 +150,7 @@
 #define PHYS_SDRAM_1_SIZE	(128 * 1024 * 1024)
 #define CONFIG_BOARD_EARLY_INIT_F
 
-#define CONFIG_SYS_SDRAM_BASE		CSD0_BASE
+#define CONFIG_SYS_SDRAM_BASE		PHYS_SDRAM_1
 #define CONFIG_SYS_INIT_RAM_ADDR	IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE		IRAM_SIZE
 #define CONFIG_SYS_GBL_DATA_OFFSET	(CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)

Applied to u-boot-imx, next branch, thanks.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================
#27 lore raw

PATCH 3/13 mx31ads: Remove dram_init_banksize()

In reply to Fabio Estevam
Quoted 14 lines · Fabio Estevam

As only one RAM bank is used we can rely on the code from arch/arm/lib/board.c

---
 board/freescale/mx31ads/mx31ads.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
board/freescale/mx31ads/mx31ads.c +0 -0
index 7637c92..4d99f49 100644
@@ -36,12 +36,6 @@ int dram_init(void)
 	return 0;
 }

board/freescale/mx31ads/mx31ads.c int dram_init(void) · line 41

Quoted 10 lines
board/freescale/mx31ads/mx31ads.c +0 -6
 
-void dram_init_banksize(void)
-{
-	gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
-	gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
-}
-
 int board_early_init_f(void)
 {
 	int i;

Applied to u-boot-imx, next branch, thanks.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================
#28 lore raw

PATCH 2/13 mx25pdk: Remove dram_init_banksize()

In reply to Fabio Estevam
Quoted 14 lines · Fabio Estevam

As only one RAM bank is used we can rely on the code from arch/arm/lib/board.c

---
 board/freescale/mx25pdk/mx25pdk.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
board/freescale/mx25pdk/mx25pdk.c +0 -0
index 6b5d1fc..34a3811 100644
@@ -33,12 +33,6 @@ int dram_init(void)
 	return 0;
 }

board/freescale/mx25pdk/mx25pdk.c int dram_init(void) · line 38

Quoted 10 lines
board/freescale/mx25pdk/mx25pdk.c +0 -6
 
-void dram_init_banksize(void)
-{
-	gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
-	gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
-}
-
 int board_early_init_f(void)
 {
 	mx25_uart1_init_pins();

Applied to u-boot-imx, next branch, thanks.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================
#29 lore raw

PATCH 1/13 mx31pdk: Remove dram_init_banksize()

In reply to Fabio Estevam
Quoted 14 lines · Fabio Estevam

As only one RAM bank is used we can rely on the code from arch/arm/lib/board.c

---
 board/freescale/mx31pdk/mx31pdk.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
board/freescale/mx31pdk/mx31pdk.c +0 -0
index f6e190a..b522cfa 100644
@@ -47,12 +47,6 @@ int dram_init(void)
 	return 0;
 }

board/freescale/mx31pdk/mx31pdk.c int dram_init(void) · line 52

Quoted 10 lines
board/freescale/mx31pdk/mx31pdk.c +0 -6
 
-void dram_init_banksize(void)
-{
-	gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
-	gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
-}
-
 int board_early_init_f(void)
 {
 	/* CS5: CPLD incl. network controller */

Applied to u-boot-imx, next branch, thanks.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================