On 12/19/2017 05:28 AM, Patrick Brünn wrote: >> From: Marek Vasut [mailto:ma...@denx.de] >> Sent: Montag, 18. Dezember 2017 13:30 >> On 12/18/2017 01:16 PM, Patrick Brünn wrote: >>>> From: Marek Vasut [mailto:ma...@denx.de] >>>> Sent: Montag, 18. Dezember 2017 12:52 >>>> On 12/18/2017 12:40 PM, Patrick Brünn wrote: > [...] >>>> btw do you use SPL ? If not, you should ... >>> I will read more about SPL. Until now, I thought I will only benefit, >>> if my initial boot media is limited in size. As we boot from sdcard, >>> that wasn't a problem to store 360k u-boot. >> >> The other is that you can ie. skip the whole u-boot altogether and boot >> linux directly. >> > Okay, I will try that. >> I wonder if it would be better to keep the static variable and avoid >> calling the get_ram_size() twice, it can save some CPU cycles. Besides >> that, thanks for the explanation/discussion !1 >> > The pleasure was all mine. I will test SPL on my board and in case that's > working I think it still makes sense to move our common code into one file. > Is arch/arm/mach-imx/mx53_dram.c the best location for it? > At first I tried board/freescale/common/ but in that case I needed to use > ugly relative pathes in the Makefiles "../../"
I think arch/arm/mach-imx/ is good , yes . We already have some imx6 ddr there too, maybe you can follow that scheme. > Regards, Patrick > > --- > Beckhoff Automation GmbH & Co. KG | Managing Director: Dipl. Phys. Hans > Beckhoff > Registered office: Verl, Germany | Register court: Guetersloh HRA 7075 > > -- Best regards, Marek Vasut _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot