[U-Boot] [Question] Driver-Model UART on NOR-boot ? Work?

Simon Glass sjg at chromium.org
Sat Oct 4 04:19:03 CEST 2014


Hi Masahiro,

On 1 October 2014 23:18, Masahiro Yamada <yamada.m at jp.panasonic.com> wrote:
> Hi Simon,
>
>
>
> On Wed, 1 Oct 2014 17:43:19 -0600
> Simon Glass <sjg at chromium.org> wrote:
>
>>
>> >
>> > > The pre-reloc malloc() area goes below global_data so uses the same mechanism.
>> > >
>> > > Yes it is true that strictly speaking we should not use data before
>> > > relocation. I suppose we could move cur_dev to global_data instead for
>> > > this particular case. It doesn't really scale to other drivers, but
>> > > then I expect that only serial needs to keep a 'current' pointer
>> > > before relocation, and even that will eventually go away once the
>> > > serial stuff is cleaned up.
>
>
>
> Do you expect any other drivers that must be bound before relocation?
> (except DEMO driver of sandbox)
>
> Only UART?

Mostly UART, but as more boards are added there may be others. For
example, SPI and I2C, But none will need the 'current device' concept
I think. And remember that serial likely only needs it for legacy
reasons.

Regards,
Simon


More information about the U-Boot mailing list