[U-Boot] [PATCH 04/17] mvebu: Add board_pex_config()
Dirk Eibach
dirk.eibach at gdsys.cc
Thu Dec 1 11:55:30 CET 2016
2016-12-01 9:30 GMT+01:00 Stefan Roese <sr at denx.de>:
> On 23.11.2016 16:12, Mario Six wrote:
>>
>> Allow boards to do some initialization when PCIe comes up.
>
>
> What is it that your boards needs to do when PCIe comes up? Could
> you please give me an example here?
You might have a look at Patch 00 of this series. We have a quirky
FPGA as a PCIe device that needs some special treamtment when PCIe is
is coming up.
> ...
>> +void __board_pex_config(void)
>> +{
>> + /* nothing in this weak default implementation */
>> +}
>> +void board_pex_config(void)
>> + __attribute__((weak, alias("__board_pex_config")));
>> +
>
>
> Its easier to use this syntax instead:
>
> __weak board_pex_config(void)
> ...
>
> You don't need to add the __attribute this way.
Mario could you take car of this in V2?
Cheers
Dirk
More information about the U-Boot
mailing list