Configure RAM size on iMX53 board
Jose Luis Zabalza
jlz.3008 at gmail.com
Fri Nov 4 23:39:53 PDT 2016
Thanks Sascha, but something I do wrong
I tried set fixed size to 512M, but neither works.
With these changes does not work or 512MB board or 1GB board.
=========<cut lowlevel.c>===============
#include <common.h>
#include <mach/imx53-regs.h>
#include <mach/esdctl.h>
#include <mach/generic.h>
#include <asm/barebox-arm-head.h>
#include <asm/barebox-arm.h>
void __naked barebox_arm_reset_vector(void)
{
imx5_cpu_lowlevel_init();
arm_setup_stack(MX53_IRAM_BASE_ADDR + MX53_IRAM_SIZE - 8);
// imx53_barebox_entry(NULL);
barebox_arm_entry(MX53_CSD0_BASE_ADDR,SZ_512M,NULL);
}
=========================================
==========<cut board.c>==================
#include <common.h>
#include <environment.h>
#include <fcntl.h>
#include <platform_data/eth-fec.h>
#include <fs.h>
#include <init.h>
#include <nand.h>
#include <net.h>
#include <partition.h>
#include <linux/sizes.h>
#include <gpio.h>
#include <mci.h>
#include <generated/mach-types.h>
#include <mach/imx53-regs.h>
#include <mach/iomux-mx53.h>
#include <mach/devices-imx53.h>
#include <mach/generic.h>
#include <mach/imx-nand.h>
#include <mach/iim.h>
#include <mach/imx5.h>
#include <mach/esdctl.h>
#include <asm/armlinux.h>
#include <io.h>
#include <asm/mmu.h>
........ other device init functions ......
static int myboard_init(void)
{
imx_esdctl_disable();
arm_add_mem_device("ram0", MX53_CSD0_BASE_ADDR, SZ_512M);
return 0;
}
core_initcall(myboard_init);
========================================
Thanks in advanced.
More information about the barebox
mailing list