[U-Boot] [PATCH 3/5] arm: omap3: Remove bootargs mem_size handling

Stefan Roese sr at denx.de
Tue Nov 12 13:15:01 CET 2013


The memory size is autodetected and is passed to the Linux kernel
either via ATAGs or device-tree (dtb). So there is no need to
pass it via the bootargs.

Signed-off-by: Stefan Roese <sr at denx.de>
Cc: Tapani Utriainen <tapani at technexion.com>
Cc: Thorsten Eisbein <thorsten.eisbein at head-acoustics.de>
Cc: Tom Rini <trini at ti.com>
---
 board/technexion/tao3530/tao3530.c | 12 ------------
 include/configs/tao3530.h          |  3 ---
 2 files changed, 15 deletions(-)

diff --git a/board/technexion/tao3530/tao3530.c b/board/technexion/tao3530/tao3530.c
index 7cf5aa6..f9ea131 100644
--- a/board/technexion/tao3530/tao3530.c
+++ b/board/technexion/tao3530/tao3530.c
@@ -133,18 +133,6 @@ int misc_init_r(void)
 
 	dieid_num_r();
 
-	/* Set memory size environment variable, depending on revision */
-	switch (tao3530_revision()) {
-	case 0x2:  /* Rev C1 -- 256MB */
-		 setenv("mem_size", "mem=256M");
-		 break;
-	case 0x3: /* Rev A2/B2 -- 128MB */
-		 setenv("mem_size", "mem=128M");
-		 break;
-	default:
-		 printf("Warning: Unknown TAO3530 rev, setting mem=128M\n");
-	}
-
 	return 0;
 }
 
diff --git a/include/configs/tao3530.h b/include/configs/tao3530.h
index 03eb85e..9c8e8cf 100644
--- a/include/configs/tao3530.h
+++ b/include/configs/tao3530.h
@@ -150,21 +150,18 @@
 	"video_mode=omapdss.def_disp=lcd vram=6M omapfb.vram=0:2M,1:2M,2:2M\0" \
 	"lcd_mode=omapfb.mode=lcd:800x480 at 60 \0" \
 	"extra_options= \0" \
-	"mem_size=mem=128M \0" \
 	"mmcdev=0\0" \
 	"mmcroot=/dev/mmcblk0p2 rw\0" \
 	"mmcrootfstype=ext3 rootwait\0" \
 	"nandroot=ubi0:rootfs ubi.mtd=4\0" \
 	"nandrootfstype=ubifs\0" \
 	"mmcargs=setenv bootargs console=${console} " \
-		"${mem_size} " \
 		"mpurate=${mpurate} " \
 		"${video_mode} " \
 		"root=${mmcroot} " \
 		"rootfstype=${mmcrootfstype} " \
 		"${extra_options}\0" \
 	"nandargs=setenv bootargs console=${console} " \
-		"${mem_size} " \
 		"mpurate=${mpurate} " \
 		"${video_mode} " \
 		"${network_setting} " \
-- 
1.8.4.3



More information about the U-Boot mailing list