1. 22 7月, 2015 7 次提交
    • S
      dm: Reduce SPL device tree size · fa78e0a3
      Simon Glass 提交于
      The SPL device tree size must be minimised to save memory. Only include
      properties that are needed by SPL - this is determined by the presence
      of the "u-boot,dm-pre-reloc" property. Also remove a predefined list of
      unused properties from the nodes that remain.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      fa78e0a3
    • S
      fdt: Add fdtgrep tool · 1043d0a0
      Simon Glass 提交于
      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: NSimon Glass <sjg@chromium.org>
      1043d0a0
    • S
      fdt: Add fdt_first/next_region() functions · c3c4c005
      Simon Glass 提交于
      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: NSimon Glass <sjg@chromium.org>
      c3c4c005
    • S
      fdt: Add a function to remove unused strings from a device tree · 8f6e2e1e
      Simon Glass 提交于
      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: NSimon Glass <sjg@chromium.org>
      8f6e2e1e
    • S
      mkimage: Display a better list of available image types · 5b9d44df
      Simon Glass 提交于
      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: NSimon Glass <sjg@chromium.org>
      5b9d44df
    • S
      sandbox: Enable dhry command · a3c3cff0
      Simon Glass 提交于
      Provide access to the dhrystone benchmark command.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      a3c3cff0
    • S
      Add a dhrystone benchmark command · d1389403
      Simon Glass 提交于
      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: NSimon Glass <sjg@chromium.org>
      d1389403
  2. 21 7月, 2015 33 次提交