Skip to content
Snippets Groups Projects
  1. Nov 10, 2022
  2. Dec 27, 2021
    • Tom Rini's avatar
      Convert CONFIG_SYS_IMMR to Kconfig · be7dbb60
      Tom Rini authored
      
      This converts the following to Kconfig:
         CONFIG_SYS_IMMR
      
      We do this by consolidating the SYS_IMMR options we have and providing
      defaults.
      
      We also, in the few places where M68K was also sharing code with these
      platforms, define it within the file to CONFIG_SYS_MBAR to match usage.
      This should be cleaned up longer term.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      be7dbb60
  3. Aug 30, 2021
    • Tom Rini's avatar
      i2c: fsl_i2c: Migrate to Kconfig · 6d5d0c95
      Tom Rini authored
      
      - As there are no boards that use different values for speed / slave on
        different buses, use a single option.
      - Switch to using the common SYS_I2C_SPEED / SYS_I2C_SLAVE options.
      - Introduce _HAS_ options for additional buses as only the first one is
        common to all users.
      - Convert all remaining symbols to Kconfig.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      6d5d0c95
  4. 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
  5. Feb 02, 2021
    • Simon Glass's avatar
      common: Drop asm/global_data.h from common header · 401d1c4f
      Simon Glass authored and Tom Rini's avatar Tom Rini committed
      
      Move this out of the common header and include it only where needed.  In
      a number of cases this requires adding "struct udevice;" to avoid adding
      another large header or in other cases replacing / adding missing header
      files that had been pulled in, very indirectly.   Finally, we have a few
      cases where we did not need to include <asm/global_data.h> at all, so
      remove that include.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      401d1c4f
  6. Dec 13, 2020
  7. May 19, 2020
  8. Jan 27, 2020
  9. Dec 02, 2019
  10. 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
  11. Apr 11, 2018
  12. Feb 06, 2018
  13. May 15, 2017
  14. Feb 17, 2017
  15. Feb 08, 2017
    • Simon Glass's avatar
      dm: core: Replace of_offset with accessor · e160f7d4
      Simon Glass authored
      
      At present devices use a simple integer offset to record the device tree
      node associated with the device. In preparation for supporting a live
      device tree, which uses a node pointer instead, refactor existing code to
      access this field through an inline function.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      e160f7d4
  16. Aug 12, 2016
  17. Jul 26, 2016
    • Mario Six's avatar
      i2c: fsl: Fix driver initialization · 27059c3e
      Mario Six authored
      
      Due to a oversight in testing, the initialization of the recently
      introduced Freescale I2C DM driver works only for 36 bit mode of e.g.
      the MPC85XX SoCs (specifically, if the physical addresses are 64 bit
      wide and the DT addresses 32 bit wide).
      
      This patch corrects the initialization so that it will work in a more
      general setting.
      
      Signed-off-by: Mario Six's avatarMario Six <mario.six@gdsys.cc>
      Reviewed-by: default avatarYork Sun <york.sun@nxp.com>
      27059c3e
  18. May 17, 2016
  19. Jan 19, 2016
  20. Nov 23, 2014
  21. Nov 10, 2014
  22. Jul 16, 2014
  23. Apr 29, 2014
    • Shaveta Leekha's avatar
      drivers/i2c/fsl_i2c: modify i2c_read to handle multi-byte write · a405764c
      Shaveta Leekha authored and Heiko Schocher's avatar Heiko Schocher committed
      
      Most of the I2C slaves support accesses in the typical style
      that is : read/write series of bytes at particular address offset.
      These transactions look like:"
      (1) START:Address:Tx:Offset:RESTART:Address[0..4]:Tx/Rx:data[0..n]:STOP"
      
      However there are certain devices which support accesses in
      terms of the transactions as follows:
      (2) "START:Address:Tx:Txdata[0..n1]:Clock_stretching:
              RESTART:Address:Rx:data[0..n2]"
      Here Txdata is typically a command and some associated data,
      similarly Rxdata could be command status plus some data received
      as a response to the command sent.
      
      Type (1) transactions are currently supportd in the
      i2c driver using i2c_read and i2c_write APIs. I2C EEPROMs,
      RTC, etc fall in this category.
      
      To handle type (2) along with type (1) transactions,
      i2c_read() function has been modified.
      
      Signed-off-by: default avatarShaveta Leekha <shaveta@freescale.com>
      Signed-off-by: default avatarPoonam Aggrwal <poonam.aggrwal@freescale.com>
      a405764c
  24. Aug 20, 2013
    • Chunhe Lan's avatar
      fsl_i2c: add workaround for the erratum I2C A004447 · 9c3f77eb
      Chunhe Lan authored and Heiko Schocher's avatar Heiko Schocher committed
      
      This workaround is for the erratum I2C A004447. Device reference
      manual provides a scheme that allows the I2C master controller
      to generate nine SCL pulses, which enable an I2C slave device
      that held SDA low to release SDA. However, due to this erratum,
      this scheme no longer works. In addition, when I2C is used as
      a source of the PBL, the state machine is not able to recover.
      
      At the same time, delete the reduplicative definition of SVR_VER
      and SVR_REV. The SVR_REV is the low 8 bits rather than the low 16
      bits of svr. And we use the CONFIG_SYS_FSL_A004447_SVR_REV macro
      instead of hard-code value 0x10, 0x11 and 0x20.
      
      The CONFIG_SYS_FSL_A004447_SVR_REV = 0x00 represents that one
      version of platform has this I2C errata. So enable this errata
      by IS_SVR_REV(svr, maj, min) function.
      
      Signed-off-by: default avatarZhao Chenhui <chenhui.zhao@freescale.com>
      Signed-off-by: default avatarChunhe Lan <Chunhe.Lan@freescale.com>
      Cc: Scott Wood <scottwood@freescale.com>
      Cc: Heiko Schocher <hs@denx.de>
      9c3f77eb
    • Chunhe Lan's avatar
      fsl_i2c: generate nine pulses on SCL if the I2C bus is hung · b8ce3343
      Chunhe Lan authored and Heiko Schocher's avatar Heiko Schocher committed
      
      When the code detected that the bus is hung (e.g. SDA stuck low),
      send 9 pulses on SCL to try to fixup the bus.
      
      Signed-off-by: default avatarZhao Chenhui <chenhui.zhao@freescale.com>
      Signed-off-by: default avatarChunhe Lan <Chunhe.Lan@freescale.com>
      Cc: Scott Wood <scottwood@freescale.com>
      Cc: Heiko Schocher <hs@denx.de>
      b8ce3343
  25. Jul 23, 2013
  26. Jul 16, 2013
Loading