[U-Boot] [PATCH] RFC: dm: Add proposed timeline and guide for porting serial drivers

Simon Glass sjg at chromium.org
Sun Sep 6 01:47:33 CEST 2015


Hi Hans,

On 5 September 2015 at 07:52, Hans de Goede <hdegoede at redhat.com> wrote:
> Hi,
>
> On 05-09-15 15:45, Simon Glass wrote:
>>
>> Add a README with a brief guide to porting serial drivers over to use
>> driver model.
>>
>> Add a timeline also.
>>
>> Signed-off-by: Simon Glass <sjg at chromium.org>
>
>
> I assume that the purpose of the timeline is to retire the non dm
> serial drivers ?
>
> What about SPL use ?
>
> I do not see the SPL for sunxi move to dm / devicetree anytime soon,
> there simply does not seem to be enough space.

Yes I think device tree in SPL will only work for newer SoCs with
enough SRAM. With Rockchip the device tree added about 3KB of code. If
you are already hitting the limit then it isn't going to help!

Still, there is the option of adding platform data for the SPL case,
and still using driver model. That should work for most (but not all)
boards.

>
> With the new nand SPL support we have already been hitting the 24k
> limit without bringing in dm + a dtb + a dtb parser ...
>
> Which reminds me I still need to look at your version of the
> patch for only using malloc_simple.c in the SPL and not build
> in dl_malloc.c, that saves about 1k which we could use really
> well. I still have this on my todo list.

Yes - the down-side is when you want to use SDRAM for your malloc()
region in SPL's board_init_r(). Then it's nice to have the full
malloc().

>
> Regards,
>
> Hans
>
>

Regards,
Simon
[snip]


More information about the U-Boot mailing list