Uwe Kleine-König wrote: > The amount of available ram is determined by the ESDCTL register, so > better don't hardcode the value. > > This commit provides a command that can be used instead of > arm_add_mem_device and convertes pcm043 (on which this patch was tested) > to it. > > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx> > --- > Hello, > > maybe better move the new function into a new file > arch/arm/mach-imx/esdctl.c and the prototype into <mach/esdctl.h>? > > Also imx_add_ram1() is still missing. I will implement that when we > agree the patch's idea is useful. It is a really good idea. I is useful for all my Samsung targets, too. Maybe it should be a generic feature, because *most* of the supported SoCs are able to detect the available RAM size in such a way. jbe -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox