1. 19 5月, 2019 10 次提交
  2. 18 5月, 2019 5 次提交
    • T
      CONFIG_SPL_SYS_[DI]CACHE_OFF: add · 10015025
      Trevor Woerner 提交于
      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: NAlexey Brodkin <abrodkin@synopsys.com>
      Signed-off-by: NTrevor Woerner <trevor@toganlabs.com>
      [trini: Make the default depend on the setting for full U-Boot, update
      more zynq hardware]
      Signed-off-by: NTom Rini <trini@konsulko.com>
      10015025
    • T
      CONFIG_SYS_[DI]CACHE_OFF: convert to Kconfig · a0aba8a2
      Trevor Woerner 提交于
      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: NAlexey Brodkin <abrodkin@snopsys.com>
      Signed-off-by: NTrevor Woerner <trevor@toganlabs.com>
      [trini: Re-migrate for a few more boards]
      Signed-off-by: NTom Rini <trini@konsulko.com>
      a0aba8a2
    • T
      CONFIG_SYS_[DI]CACHE_OFF: remove commented lines · c5091c5f
      Trevor Woerner 提交于
      Eventually these configuration items will be converted to Kconfig,
      therefore there's little point in leaving commented-out versions of
      them in include/configs.
      Signed-off-by: NTrevor Woerner <trevor@toganlabs.com>
      c5091c5f
    • T
      CONFIG_SYS_[DI]CACHE_OFF: remove superfluous "1" · 18592cc4
      Trevor Woerner 提交于
      This config is the only config that uses:
      	#define CONFIG_SYS_DCACHE_OFF 1
      in its #define.
      
      Remove the superfluous "1" so this cache #define is like all the others.
      Signed-off-by: NTrevor Woerner <trevor@toganlabs.com>
      18592cc4
    • T
      CONFIG_SYS_[ID]CACHE_OFF: unify the 'any' case · b7b4af0e
      Trevor Woerner 提交于
      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_lawsSigned-off-by: NTrevor Woerner <trevor@toganlabs.com>
      b7b4af0e
  3. 16 5月, 2019 7 次提交
  4. 15 5月, 2019 13 次提交
  5. 13 5月, 2019 5 次提交