[PATCH v2] devicetree support

Sascha Hauer s.hauer at pengutronix.de
Tue Oct 18 07:56:55 EDT 2011


This is the second version of devicetree support for ARM.
Changes since v1:

- Move most code except the command from commands/oftree.c to common/oftree.c
  so that the code can be used independent of the command
- add a function to fixup the memory nodes

Next step would be to rework the ppc code to use the new libfdt support
and remove the old (so far ppc only) devicetree support.

Sascha Hauer (4):
      initial libfdt support
      initial oftree command support
      ARM Linux: Add device tree support
      oftree: add fixup for memory nodes

 arch/arm/lib/armlinux.c   |   15 +-
 commands/Kconfig          |    6 +
 commands/Makefile         |    1 +
 commands/oftree.c         |  135 +++++
 common/Makefile           |    1 +
 common/memory.c           |   80 +++
 common/oftree.c           |  312 ++++++++++++
 include/fdt.h             |   60 +++
 include/libfdt.h          | 1235 +++++++++++++++++++++++++++++++++++++++++++++
 include/libfdt_env.h      |   24 +
 include/of.h              |   21 +
 lib/Kconfig               |    6 +
 lib/Makefile              |    4 +
 lib/fdt/Makefile          |    2 +
 lib/fdt/TODO              |    3 +
 lib/fdt/fdt.c             |  222 ++++++++
 lib/fdt/fdt_ro.c          |  574 +++++++++++++++++++++
 lib/fdt/fdt_rw.c          |  465 +++++++++++++++++
 lib/fdt/fdt_strerror.c    |   96 ++++
 lib/fdt/fdt_sw.c          |  256 ++++++++++
 lib/fdt/fdt_wip.c         |  118 +++++
 lib/fdt/libfdt_internal.h |   95 ++++
 22 files changed, 3728 insertions(+), 3 deletions(-)
 create mode 100644 commands/oftree.c
 create mode 100644 common/oftree.c
 create mode 100644 include/fdt.h
 create mode 100644 include/libfdt.h
 create mode 100644 include/libfdt_env.h
 create mode 100644 include/of.h
 create mode 100644 lib/fdt/Makefile
 create mode 100644 lib/fdt/TODO
 create mode 100644 lib/fdt/fdt.c
 create mode 100644 lib/fdt/fdt_ro.c
 create mode 100644 lib/fdt/fdt_rw.c
 create mode 100644 lib/fdt/fdt_strerror.c
 create mode 100644 lib/fdt/fdt_sw.c
 create mode 100644 lib/fdt/fdt_wip.c
 create mode 100644 lib/fdt/libfdt_internal.h



More information about the barebox mailing list