[U-Boot] [PATCH v2] board/BuR/zynq/brsmarc2: initial commit

Hannes Schmelzer hannes at schmelzer.or.at
Fri May 3 11:17:42 UTC 2019



On 5/2/19 9:03 PM, Tom Rini wrote:
> On Thu, May 02, 2019 at 08:34:32PM +0200, Hannes Schmelzer wrote:
>> On 5/2/19 6:06 PM, Michal Simek wrote:
>>> Hi,
>> Hi Michal,
>>> On 02. 05. 19 5:14, Hannes Schmelzer wrote:
>>>> diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
>>>> index dfa5b02..2b00129 100644
>>>> --- a/arch/arm/dts/Makefile
>>>> +++ b/arch/arm/dts/Makefile
>>>> @@ -208,6 +208,8 @@ dtb-$(CONFIG_ARCH_ZYNQ) += \
>>>>   	zynq-zc770-xm011-x16.dtb \
>>>>   	zynq-zc770-xm012.dtb \
>>>>   	zynq-zc770-xm013.dtb \
>>>> +	zynq-brsmarc2.dtb \
>>>> +	zynq-brsmarc2_r512.dtb \
>>> Can't you detect it if you have 512M version?
>>> u-boot itself has code for these kind of detection.
>>>
>>> long get_ram_size(long *base, long maxsize)
>> I actually think not,
>> because i need different ps7_init stuff for the two different RAM chips.
>> (timing, adress lines, ...) But i will check if i even can drop the two
>> different dts files.
I just tried to get rid of this. But i'm still in trouble.

Actually i use the 'CONFIG_DEFAULT_DEVICE_TREE' variable within my makefile
to distinguish which zynq board variant is being built, since every of those
boards do have its own dts this works fine.

Does anybody know some better idea to handle this ?

cheers,
Hannes



More information about the U-Boot mailing list