1. 08 Jan, 2018 2 commits
    • Rob Herring's avatar
      of/fdt: use memblock_virt_alloc for early alloc · 0fa1c579
      Rob Herring authored
      memblock_virt_alloc() works for both memblock and bootmem, so use it and
      make early_init_dt_alloc_memory_arch a static function. The arches using
      bootmem define early_init_dt_alloc_memory_arch as either:
      
      __alloc_bootmem(size, align, __pa(MAX_DMA_ADDRESS))
      
      or:
      
      alloc_bootmem_align(size, align)
      
      Both of these evaluate to the same thing as does memblock_virt_alloc for
      bootmem. So we can disable the arch specific functions by making
      early_init_dt_alloc_memory_arch static and they can be removed in
      subsequent commits.
      
      Cc: Frank Rowand <frowand.list@gmail.com>
      Signed-off-by: Rob Herring's avatarRob Herring <robh@kernel.org>
      0fa1c579
    • Rob Herring's avatar
      of: Use SPDX license tag for DT files · af6074fc
      Rob Herring authored
      Convert remaining DT files to use SPDX-License-Identifier tags.
      
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
      Reviewed-by: default avatarFrank Rowand <frank.rowand@sony.com>
      Reviewed-by: default avatarPhilippe Ombredanne <pombredanne@nexb.com>
      Signed-off-by: Rob Herring's avatarRob Herring <robh@kernel.org>
      af6074fc
  2. 05 Jan, 2018 1 commit
  3. 22 Jun, 2017 1 commit
  4. 09 May, 2017 1 commit
  5. 13 Dec, 2016 1 commit
  6. 28 Sep, 2016 1 commit
  7. 06 Jul, 2016 1 commit
  8. 16 May, 2016 2 commits
  9. 07 Feb, 2016 1 commit
  10. 02 Jun, 2015 1 commit
  11. 28 May, 2015 1 commit
  12. 15 Apr, 2015 1 commit
  13. 30 Jul, 2014 2 commits
  14. 20 May, 2014 1 commit
  15. 30 Apr, 2014 8 commits
  16. 11 Mar, 2014 1 commit
    • Marek Szyprowski's avatar
      drivers: of: add initialization code for static reserved memory · e8d9d1f5
      Marek Szyprowski authored
      This patch adds support for static (defined by 'reg' property) reserved
      memory regions declared in device tree.
      
      Memory blocks can be reliably reserved only during early boot. This must
      happen before the whole memory management subsystem is initialized,
      because we need to ensure that the given contiguous blocks are not yet
      allocated by kernel. Also it must happen before kernel mappings for the
      whole low memory are created, to ensure that there will be no mappings
      (for reserved blocks). Typically, all this happens before device tree
      structures are unflattened, so we need to get reserved memory layout
      directly from fdt.
      
      Based on previous code provided by Josh Cartwright <joshc@codeaurora.org>
      Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
      Signed-off-by: default avatarGrant Likely <grant.likely@linaro.org>
      e8d9d1f5
  17. 09 Jan, 2014 1 commit
    • Kevin Hao's avatar
      powerpc: introduce early_get_first_memblock_info · b27652dd
      Kevin Hao authored
      For a relocatable kernel since it can be loaded at any place, there
      is no any relation between the kernel start addr and the memstart_addr.
      So we can't calculate the memstart_addr from kernel start addr. And
      also we can't wait to do the relocation after we get the real
      memstart_addr from device tree because it is so late. So introduce
      a new function we can use to get the first memblock address and size
      in a very early stage (before machine_init).
      Signed-off-by: Kevin Hao's avatarKevin Hao <haokexin@gmail.com>
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      b27652dd
  18. 10 Oct, 2013 1 commit
  19. 09 Oct, 2013 3 commits
  20. 27 Aug, 2013 1 commit
  21. 24 Jul, 2013 1 commit
  22. 27 Dec, 2011 1 commit
  23. 04 Aug, 2011 1 commit
  24. 03 Aug, 2011 1 commit
  25. 16 Jan, 2011 1 commit
  26. 09 Jan, 2011 1 commit
  27. 01 Jan, 2011 1 commit
  28. 30 Dec, 2010 1 commit