Skip to content
Snippets Groups Projects
  1. Jan 25, 2020
  2. Jan 24, 2020
  3. Jan 17, 2020
  4. Dec 02, 2019
  5. Aug 11, 2019
  6. May 18, 2019
    • Trevor Woerner's avatar
      CONFIG_SPL_SYS_[DI]CACHE_OFF: add · 10015025
      Trevor Woerner authored
      
      While converting CONFIG_SYS_[DI]CACHE_OFF to Kconfig, there are instances
      where these configuration items are conditional on SPL. This commit adds SPL
      variants of these configuration items, uses CONFIG_IS_ENABLED(), and updates
      the configurations as required.
      
      Acked-by: default avatarAlexey Brodkin <abrodkin@synopsys.com>
      Signed-off-by: default avatarTrevor Woerner <trevor@toganlabs.com>
      [trini: Make the default depend on the setting for full U-Boot, update
      more zynq hardware]
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      10015025
    • Trevor Woerner's avatar
      CONFIG_SYS_[DI]CACHE_OFF: convert to Kconfig · a0aba8a2
      Trevor Woerner authored
      
      CONFIG_SYS_[DI]CACHE_OFF had been partially converted to Kconfig
      parameters; only for the ARC architecture. This patch turns these two
      parameters into Kconfig items everywhere else they are found.
      
      All of the include/configs/* and defconfig changes in this patch are
      for arm machines only. The Kconfig changes for arc, nds32, riscv,
      and xtensa have been included since these symbols are found in code
      under arch/{arc,nds32,riscv,xtensa}, however, no currently-defined
      include/configs/* or defconfigs for these architectures exist which
      include these symbols.
      
      These results have been confirmed with tools/moveconfig.py.
      
      Acked-by: default avatarAlexey Brodkin <abrodkin@snopsys.com>
      Signed-off-by: default avatarTrevor Woerner <trevor@toganlabs.com>
      [trini: Re-migrate for a few more boards]
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      a0aba8a2
    • Trevor Woerner's avatar
      CONFIG_SYS_[ID]CACHE_OFF: unify the 'any' case · b7b4af0e
      Trevor Woerner authored
      According to De Morgan's Law[1]:
      	!(A && B) = !A || !B
      	!(A || B) = !A && !B
      
      There are 5 places in the code where we find:
      	#if !(defined(CONFIG_SYS_ICACHE_OFF) && defined(CONFIG_SYS_DCACHE_OFF))
      and 4 places in the code where we find:
      	#if (!defined(CONFIG_SYS_ICACHE_OFF) || !defined(CONFIG_SYS_DCACHE_OFF))
      
      In words, the construct:
      	!defined(CONFIG_SYS_[DI]CACHE_OFF)
      means:
      	"is the [DI]CACHE on?"
      and the construct:
      	defined(CONFIG_SYS_[DI]CACHE_OFF)
      means:
      	"is the [DI]CACHE off?"
      
      Therefore
      	!(defined(CONFIG_SYS_ICACHE_OFF) && defined(CONFIG_SYS_DCACHE_OFF))
      means:
      	"the opposite of 'are they both off?'"
      in other words:
      	"are either or both on?"
      and:
      	(!defined(CONFIG_SYS_ICACHE_OFF) || !defined(CONFIG_SYS_DCACHE_OFF)
      means:
      	"are either or both on?"
      
      As a result, I've converted the 4 instances of '(!A || !B)' to '!(A && B)' for
      consistency.
      
      [1] https://en.wikipedia.org/wiki/De_Morgan%27s_laws
      
      
      
      Signed-off-by: default avatarTrevor Woerner <trevor@toganlabs.com>
      b7b4af0e
  7. Apr 12, 2019
  8. Jan 22, 2019
  9. Nov 26, 2018
  10. Nov 18, 2018
  11. Sep 26, 2018
  12. Sep 11, 2018
  13. May 16, 2018
    • Bryan O'Donoghue's avatar
      nds32: Define PLATFORM__CLEAR_BIT for generic_clear_bit() · 73171c8d
      Bryan O'Donoghue authored
      
      nds2 bitops.h provides a __clear_bit() but does not define
      PLATFORM__CLEAR_BIT as a result generic_clear_bit() is used instead of the
      architecturally provided __clear_bit().
      
      This patch defines PLATFORM__CLEAR_BIT which means that __clear_bit() in
      nds32 bitops.h will be called whenever generic_clear_bit() is called - as
      opposed to the default cross-platform generic_clear_bit().
      
      Signed-off-by: default avatarBryan O'Donoghue <pure.logic@nexus-software.ie>
      Cc: Macpaul Lin <macpaul@andestech.com>
      73171c8d
    • Bryan O'Donoghue's avatar
      nds32: Define PLATFORM__SET_BIT for generic_set_bit() · 76b916f2
      Bryan O'Donoghue authored
      
      nds32 bitops.h provides a __set_bit() but does not define PLATFORM__SET_BIT
      as a result generic_set_bit() is used instead of the architecturally
      provided __set_bit().
      
      This patch defines PLATFORM__SET_BIT which means that __set_bit() in nds32
      bitops.h will be called whenever generic_set_bit() is called - as opposed
      to the default cross-platform generic_set_bit().
      
      Signed-off-by: default avatarBryan O'Donoghue <pure.logic@nexus-software.ie>
      Cc: Macpaul Lin <macpaul@andestech.com>
      76b916f2
  14. May 07, 2018
    • Tom Rini's avatar
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini authored
      
      When U-Boot started using SPDX tags we were among the early adopters and
      there weren't a lot of other examples to borrow from.  So we picked the
      area of the file that usually had a full license text and replaced it
      with an appropriate SPDX-License-Identifier: entry.  Since then, the
      Linux Kernel has adopted SPDX tags and they place it as the very first
      line in a file (except where shebangs are used, then it's second line)
      and with slightly different comment styles than us.
      
      In part due to community overlap, in part due to better tag visibility
      and in part for other minor reasons, switch over to that style.
      
      This commit changes all instances where we have a single declared
      license in the tag as both the before and after are identical in tag
      contents.  There's also a few places where I found we did not have a tag
      and have introduced one.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      83d290c5
  15. Apr 27, 2018
  16. Mar 30, 2018
  17. Feb 18, 2018
    • Alexey Brodkin's avatar
      fdt: Implement weak arch_fixup_fdt() · 4280342a
      Alexey Brodkin authored
      
      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: default avatarAlexey 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: default avatarTom Rini <trini@konsulko.com>
      Reviewed-by: default avatarDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
      4280342a
  18. Nov 30, 2017
  19. Oct 03, 2017
    • Paul Burton's avatar
      nds32: Use asm-generic/io.h · b3666a69
      Paul Burton authored
      
      Convert the nds32 architecture to make use of the new asm-generic/io.h
      to provide address mapping functions. As the generic implementations are
      suitable for nds32 this is primarily a matter of removing code.
      
      Feedback from architecture maintainers is welcome.
      
      Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>
      Cc: Macpaul Lin <macpaul@andestech.com>
      b3666a69
  20. Sep 28, 2017
  21. Sep 21, 2017
  22. Sep 12, 2017
Loading