mx35-3stack 124MiByte RAM
Hello,
I just stumbled over this patch:
git show f928efa8 arch/arm/boards/freescale-mx35-3-stack/3stack.c
Quoted 23 lines
commit
f928efa818adfe56a08350569a9b0f3c2fb791d2Author: Sascha Hauer <[email protected]> Date: Tue Jul 19 09:58:32 2011 +0200add a
add_mem_devicefunctionAdd a helper function for boards to register their memory devices. This makes the board code smaller and also helps getting rid of
map_baseand structmemory_platform_data.And switch all of the memory to it
Signed-off-by Sascha Hauer <[email protected]>Signed-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>arch/arm/boards/freescale-mx35-3-stack/3stack.c +0
-0@@ -71,19 +71,6 @@ static struct fec_platform_data fec_info = { .phy_addr = 0x1F, };
arch/arm/boards/freescale-mx35-3-stack/3stack.c static struct fec_platform_data fec_info = { · line 83
Quoted 10 lines
arch/arm/boards/freescale-mx35-3-stack/3stack.c +0
-10-static struct memory_platform_data sdram_pdata = { - .name ="ram0" , - .flags =IORESOURCE_MEM_WRITEABLE , -}; - -static struct device_d sdram_dev = { - .id =-1 , - .name ="mem" , - .map_base =IMX_SDRAM_CS0 , - .size =128 *1024 *1024 ,
^^^
Quoted 15 lines
arch/arm/boards/freescale-mx35-3-stack/3stack.c +1
-3- .platform_data = &sdram_pdata, -}; -struct imx_nand_platform_data nand_info = { .hw_ecc =1 , .flash_bbt =1 ,@@ -165,6 +152,7 @@ static void set_board_rev(int rev)static int f3s_devices_init (void ) {uint32_t reg; +struct device_d *sdram_dev;/* CS0: Nor Flash */ writel (0x0000cf03 ,CSCR_U (0 ));
arch/arm/boards/freescale-mx35-3-stack/3stack.c static int f3s_devices_init(void) · line 200
Quoted 5 lines
arch/arm/boards/freescale-mx35-3-stack/3stack.c +1
-1@@ -209,10 +197,11 @@ static int f3s_devices_init(void)imx35_add_mmc0 (NULL ); -register_device (&sdram_dev); + sdram_dev = add_mem_device("ram0", IMX_SDRAM_CS0, 124 * 1024 * 1024,
^^^
What happened to the upper 4 MiByte?
arch/arm/boards/freescale-mx35-3-stack/3stack.c static int f3s_devices_init(void) · line 207
Quoted 8 lines
arch/arm/boards/freescale-mx35-3-stack/3stack.c +2
-1+ IORESOURCE_MEM_WRITEABLE); +armlinux_add_dram (sdram_dev);imx35_add_fb (&ipu_fb_data); -armlinux_add_dram (&sdram_dev);armlinux_set_bootparams ((void *)0x80000100 );armlinux_set_architecture (MACH_TYPE_MX35_3DS );
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 6 lines · Marc Kleine-Budde
Review
Quoted 3 lines
(quoted diff) +1
-1- register_device(&sdram_dev); + sdram_dev = add_mem_device("ram0", IMX_SDRAM_CS0, 124 * 1024 * 1024,^^^What happened to the upper 4 MiByte?
This was changed in a unrelated patch. Probably a type. This is fixed in -next since:
commit fc3a2cdcabbbd57c5b1aa018368efd1905256dc1
Author: Roman Fietze <[email protected]> Date: Wed Apr 27 10:38:46 2011 +0200
ARM i.MX freescale-mx35-3-stack: support 256 MiB RAM
Extend DCD table and low level init routines. Add barebox SDRAM device. Also, fix the memory size for bank 0 to 128MB. It was accidently changed to 124MB here:
commit f928efa818adfe56a08350569a9b0f3c2fb791d2
Author: Sascha Hauer <[email protected]>
Date: Tue Jul 19 09:58:32 2011 +0200
add a add_mem_device function
Add a helper function for boards to register their memory devices. This makes the board code smaller and also helps getting rid of map_base and struct memory_platform_data.
And switch all of the memory to it
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 10 lines · Sascha Hauer
Quoted 6 lines · Marc Kleine-Budde
Review
Quoted 3 lines
(quoted diff) +1
-1- register_device(&sdram_dev); + sdram_dev = add_mem_device("ram0", IMX_SDRAM_CS0, 124 * 1024 * 1024,^^^What happened to the upper 4 MiByte?
This was changed in a unrelated patch. Probably a type. This is fixed in -next since:
Thanks...
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox