[PATCH 3/3] ARM: webasto-marvel: share the run-time setup with the ccbv2 variant
Oleksij Rempel
linux at rempel-privat.de
Tue Feb 22 06:13:59 PST 2022
Am 22.02.22 um 12:19 schrieb Ahmad Fatoum:
> On 22.02.22 11:48, Juergen Borleis wrote:
>> Signed-off-by: Juergen Borleis <jbe at pengutronix.de>
>> ---
>> arch/arm/boards/webasto-ccbv2/board.c | 6 +++++-
>> arch/arm/boards/webasto-ccbv2/lowlevel.c | 24 ++++++++++++++++++------
>> images/Makefile.imx | 2 ++
>> 3 files changed, 25 insertions(+), 7 deletions(-)
>>
>> diff --git a/arch/arm/boards/webasto-ccbv2/board.c b/arch/arm/boards/webasto-ccbv2/board.c
>> index 4777713..fd6ea6f 100644
>> --- a/arch/arm/boards/webasto-ccbv2/board.c
>> +++ b/arch/arm/boards/webasto-ccbv2/board.c
>> @@ -22,7 +22,10 @@ static int ccbv2_probe(struct device_d *dev)
>> imx6_bbu_internal_mmcboot_register_handler("emmc", "/dev/mmc1",
>> BBU_HANDLER_FLAG_DEFAULT);
>>
>> - barebox_set_hostname("weabsto-ccbv2");
>> + if (of_machine_is_compatible("webasto,imx6ul-marvel"))
>> + barebox_set_hostname("webasto-marvel");
>
> Nitpick: barebox_set_hostname(device_get_match_data(dev));
If host name is not set by board code, it will be automatically generated by barebox from devicetree
compatible.
--
Regards,
Oleksij
More information about the barebox
mailing list