1. 19 2月, 2018 5 次提交
    • M
      sandbox: Add 64-bit sandbox · c6b89f31
      Mario Six 提交于
      To debug device tree issues involving 32- and 64-bit platforms, it is useful to
      have a generic 64-bit platform available.
      
      Add a version of the sandbox that uses 64-bit integers for its physical
      addresses as well as a modified device tree.
      Signed-off-by: NMario Six <mario.six@gdsys.cc>
      Added CONFIG_SYS_TEXT_BASE to configs/sandbox64_defconfig
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      c6b89f31
    • S
      sandbox: Rename 'num-gpios' property to avoid dtc warning · 995b60b5
      Simon Glass 提交于
      At present dtc produces these warnings when compiling sandbox:
      
      arch/sandbox/dts/test.dtb: Warning (gpios_property):
      	Could not get phandle node for /base-gpios:num-gpios(cell 0)
      arch/sandbox/dts/test.dtb: Warning (gpios_property):
      	Missing property '#gpio-cells' in node /reset-ctl or bad phandle
      	(referred from /extra-gpios:num-gpios[0])
      
      Both are due to it assuming that the 'num-gpios' property holds a phandle
      pointing to a GPIO node.
      
      To avoid these warnings, rename the sandbox property so that it does not
      include the string 'gpios'.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      995b60b5
    • S
      sandbox: Correct dtc warning in /chosen node · 7e87816c
      Simon Glass 提交于
      At present dtc produces these warnings when compiling sandbox:
      
      arch/sandbox/dts/test.dtb: Warning (reg_format): "reg" property in /chosen/chosen-test has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)
      arch/sandbox/dts/test.dtb: Warning (avoid_default_addr_size): Relying on default #address-cells value for /chosen/chosen-test
      arch/sandbox/dts/test.dtb: Warning (avoid_default_addr_size): Relying on default #size-cells value for /chosen/chosen-test
      
      Add the missing properties to avoid this.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      Fixes: f2006808 (dm: core: parse chosen node)
      7e87816c
    • T
      fdt: Fixup only valid memory banks · 6d29cc7d
      Thierry Reding 提交于
      Memory banks with address 0 and size 0 are empty and should not be
      passed to the OS via device tree.
      Signed-off-by: NThierry Reding <treding@nvidia.com>
      Acked-by: NStephen Warren <swarren@nvidia.com>
      6d29cc7d
    • A
      fdt: Implement weak arch_fixup_fdt() · 4280342a
      Alexey Brodkin 提交于
      Only ARM and in some configs MIPS really implement arch_fixup_fdt().
      Others just use the same boilerplate which is not good by itself,
      but what's worse if we try to build with disabled CONFIG_CMD_BOOTM
      and enabled CONFIG_OF_LIBFDT we'll hit an unknown symbol which was
      apparently implemented in arch/xxx/lib/bootm.c.
      
      Now with weak arch_fixup_fdt() right in image-fdt.c where it is
      used we get both items highlighted above fixed.
      Signed-off-by: NAlexey Brodkin <abrodkin@synopsys.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: York Sun <york.sun@nxp.com>
      Cc: Stefan Roese <sr@denx.de>
      Reviewed-by: NTom Rini <trini@konsulko.com>
      Reviewed-by: NDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
      4280342a
  2. 16 2月, 2018 1 次提交
  3. 15 2月, 2018 16 次提交
  4. 14 2月, 2018 18 次提交