difference between fdtdec and fdt_support ?

Marek Behún marek.behun at nic.cz
Thu Jan 6 13:21:00 CET 2022


Hi Simon,

I am a little confused.

We have
  common/fdt_support.c
and
  lib/fdtdec.c

The second one implements for example fdtdec_get_is_enabled(), which I
would rather expect in fdt_support by name fdt_node_is_available(), or
something like that.

Also fdtdec does a strange thing with compatible strings: it declares
an enum for compatible strings and then a map which maps this enum
values to compatible strings... Why not just use the compatible strings?

What is the purpose of having two files implementing fdt stuff?

Marek


More information about the U-Boot mailing list