1. 21 Jul, 2015 6 commits
    • Simon Glass's avatar
      fdt: Add fdtgrep tool · 1043d0a0
      Simon Glass authored
      
      
      This tool allows us to extract subsets of a device tree file. It is used by
      the SPL vuild, which needs to cut down the device tree size for use in
      limited memory.
      
      This tool was originally written for libfdt but it has not been accepted
      upstream, so for now, include it in U-Boot. Several utilfdt library
      functions been included inline here.
      
      If fdtgrep is eventually accepted in libfdt then we can bring that version
      of libfdt in here, and drop fdtgrep (requiring that fdtgrep is provided by
      the user).
      
      If it is not accepted then another approach would be to write a special
      tool for chopping down device tree files for SPL. While it would use the
      same libfdt support, it would be less code than fdtgrep.c because it would
      not have general-purpose functions.
      
      Another approach (which was used with v1 of this series) is to sprinkler all
      the device tree files with #ifdef. I don't like that idea.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      1043d0a0
    • Simon Glass's avatar
      fdt: Add fdt_first/next_region() functions · c3c4c005
      Simon Glass authored
      
      
      These have been sent upstream but not accepted to libfdt. For now, bring
      these into U-Boot to enable fdtgrep to operate. We will use fdtgrep to
      cut device tree files down for SPL.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      c3c4c005
    • Simon Glass's avatar
      fdt: Add a function to remove unused strings from a device tree · 8f6e2e1e
      Simon Glass authored
      
      
      Property names are stored in a string table. When a node property is
      removed, the string table is not updated since other nodes may have a
      property with the same name.
      
      Thus it is possible for the string table to build up a number of unused
      strings. Add a function to remove these. This works by building a new device
      tree from the old one, adding strings one by one as needed.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      8f6e2e1e
    • Simon Glass's avatar
      mkimage: Display a better list of available image types · 5b9d44df
      Simon Glass authored
      
      
      Offer to display the available image types in help. Also, rather than
      hacking the genimg_get_type_id() function to display a list of types,
      do this in the tool. Also, sort the list.
      
      The list of image types is quite long, and hard to discover. Print it out
      when we show help information.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      5b9d44df
    • Simon Glass's avatar
      sandbox: Enable dhry command · a3c3cff0
      Simon Glass authored
      
      
      Provide access to the dhrystone benchmark command.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      a3c3cff0
    • Simon Glass's avatar
      Add a dhrystone benchmark command · d1389403
      Simon Glass authored
      
      
      Drystone provides a convenient sanity check that the CPU is running at full
      speed. Add this as a command which can be enabled as needed.
      
      Note: I investigated using Coremark for this but there was a license
      agreement and I could not work out if it was GPL-compatible.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      d1389403
  2. 20 Jul, 2015 34 commits