[U-Boot] [PATCH v3] nios2: convert nios2 cpu to driver model
Thomas Chou
thomas at wytron.com.tw
Thu Oct 1 04:14:28 CEST 2015
Hi Simon,
On 09/29/2015 10:08 PM, Simon Glass wrote:
>> + gd->arch.has_mmu = fdtdec_get_int(gd->fdt_blob, dev->of_offset,
>> + "altr,has-mmu", 0);
>
> Should that be fdtdec_get_bool()? Also is there a device tree binding
> file for these settings?
With fdtdec_get_bool(), a boolean properly is true if present in the
device tree and false if not present, regardless of its value.
It will be wrong if there is "altr,has-mmu = <0>;" .
A dts binding file will be added.
Thanks for your review.
Best regards,
Thomas
More information about the U-Boot
mailing list