Skip to content
Snippets Groups Projects
  1. Feb 21, 2021
    • Igor Opaniuk's avatar
      dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO · 2147a169
      Igor Opaniuk authored and Heiko Schocher's avatar Heiko Schocher committed
      
      Use CONFIG_IS_ENABLED() macro, which provides more convenient
      way to check $(SPL)DM_I2C/$(SPL)DM_I2C_GPIO configs
      for both SPL and U-Boot proper.
      
      CONFIG_IS_ENABLED(DM_I2C) expands to:
      - 1 if CONFIG_SPL_BUILD is undefined and CONFIG_DM_I2C is set to 'y',
      - 1 if CONFIG_SPL_BUILD is defined and CONFIG_SPL_DM_I2C is set to 'y',
      - 0 otherwise.
      
      All occurences were replaced automatically using these bash cmds:
      $ find . -type f -exec sed -i
           's/ifndef CONFIG_DM_I2C/if !CONFIG_IS_ENABLED(DM_I2C)/g' {} +
      $ find . -type f -exec sed -i
          's/ifdef CONFIG_DM_I2C/if CONFIG_IS_ENABLED(DM_I2C)/g' {} +
      $ find . -type f -exec sed -i
          's/defined(CONFIG_DM_I2C)/CONFIG_IS_ENABLED(DM_I2C)/g' {} +
      $ find . -type f -exec sed -i
          's/ifndef CONFIG_DM_I2C_GPIO/if !CONFIG_IS_ENABLED(DM_I2C_GPIO)/g' {} +
      $ find . -type f -exec sed -i
          's/ifdef CONFIG_DM_I2C_GPIO/if CONFIG_IS_ENABLED(DM_I2C_GPIO)/g' {} +
      $ find . -type f -exec sed -i
          's/defined(CONFIG_DM_I2C_GPIO)/CONFIG_IS_ENABLED(DM_I2C_GPIO)/g' {} +
      
      Reviewed-by: default avatarHeiko Schocher <hs@denx.de>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      Signed-off-by: default avatarIgor Opaniuk <igor.opaniuk@foundries.io>
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      Reviewed-by: Priyanka Jain's avatarPriyanka Jain <priyanka.jain@nxp.com>
      2147a169
  2. May 19, 2020
  3. May 04, 2020
  4. 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
  5. Dec 05, 2014
    • Shaohui Xie's avatar
      powerpc/b4860qds: add workaround for XFI · b24f6d40
      Shaohui Xie authored
      
      XFI does not work stable on current board, it's due to heat sink issue,
      to make it work stable the board needs additional heat sink, enable two
      XFI lanes only. Right now we do not have such an erratum for the issue,
      so use a define CONFIG_SYS_FSL_B4860QDS_XFI_ERR to identify it.
      The workaround will only be used in XFI protocols and only if the
      hwconfig indicates that XFI is prefered.
      
      A new VSC3308 config function is used instead of re-use the original
      function, to avoid making the function complex and ugly.
      
      Signed-off-by: default avatarShaohui Xie <Shaohui.Xie@freescale.com>
      Reviewed-by: default avatarYork Sun <yorksun@freescale.com>
      b24f6d40
  6. Aug 20, 2013
  7. Jul 24, 2013
  8. Oct 22, 2012
Loading