1. 21 Feb, 2021 1 commit
    • 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
  2. 19 May, 2020 2 commits
  3. 11 Aug, 2019 1 commit
  4. 07 May, 2018 1 commit
    • 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: Tom Rini's avatarTom Rini <trini@konsulko.com>
  5. 27 Apr, 2018 1 commit
  6. 16 Aug, 2017 1 commit
  7. 03 Apr, 2017 3 commits
  8. 05 Dec, 2016 1 commit
  9. 25 May, 2016 1 commit
  10. 17 Dec, 2015 3 commits
  11. 22 Oct, 2014 2 commits
  12. 19 Jun, 2014 1 commit
  13. 13 May, 2014 1 commit
  14. 05 May, 2014 1 commit
    • Mateusz Zalega's avatar
      usb: dfu: fix boards wo USB cable detection · 75504e95
      Mateusz Zalega authored
      Former usb_cable_connected() patch broke compilation of boards which do
      not support this feature.
      I've renamed usb_cable_connected() to g_dnl_usb_cable_connected() and added
      its default implementation to gadget downloader driver code. There's
      only one driver of this kind and it's unlikely there'll be another, so
      there's no point in keeping it in /common.
      Previously this function was declared in usb.h. I've moved it, since
      it's more appropriate to keep it in g_dnl.h - usb.h seems to be intended
      for USB host implementation.
      Existing code, confronted with default -EOPNOTSUPP return value,
      continues as if the cable was connected.
      CONFIG_USB_CABLE_CHECK was removed.
      Change-Id: Ib9198621adee2811b391c64512f14646cefd0369
      Signed-off-by: default avatarMateusz Zalega <m.zalega@samsung.com>
      Acked-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
      Acked-by: default avatarLukasz Majewski <l.majewski@samsung.com>
  15. 12 Mar, 2014 1 commit
  16. 07 Feb, 2014 1 commit
  17. 03 Feb, 2014 3 commits
  18. 31 Dec, 2013 1 commit
  19. 05 Dec, 2013 1 commit
  20. 03 Dec, 2013 1 commit
  21. 08 Nov, 2013 3 commits
    • Przemyslaw Marczak's avatar
      usb: ums: move ums code from trats to Samsung common directory · 4b19ed6c
      Przemyslaw Marczak authored and Marek Vasut's avatar Marek Vasut committed
      UMS init was implemented in trats board file but mostly it comprises
      common code. Due to that it has been moved to common/ums.c to avoid
      code duplication in the future.
      - move ums initialization code from trats to common/ums.c
      - remove unused CONFIG_USB_GADGET_MASS_STORAGE from trats.h
      Changes v2:
      - move this patch at the top of code cleanups patches
      Signed-off-by: default avatarPrzemyslaw Marczak <p.marczak@samsung.com>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Minkyu Kang <mk7.kang@samsung.com>
    • Przemyslaw Marczak's avatar
      usb: ums: fix disk capacity miscalculation and code cleanup · 0697f206
      Przemyslaw Marczak authored and Marek Vasut's avatar Marek Vasut committed
      This patch prevents:
      - ums disk capacity miscalculation because of integer overflow
      Changes v2:
      - Prevents passing zero size disk capacity to ums gadget driver
      - Change function ums_get_capacity() to ums_disk_init() and do ums disk
        initialization before gadget init
      - Remove unnecessary code from mass storage driver
      Signed-off-by: default avatarPrzemyslaw Marczak <p.marczak@samsung.com>
      Cc: Marek Vasut <marex@denx.de>
    • Przemyslaw Marczak's avatar
      usb: ums: code refactoring to improve reusability on other boards. · 93c813b3
      Przemyslaw Marczak authored and Marek Vasut's avatar Marek Vasut committed
      This patch introduces some cleanups to ums code. Changes:
      ums common:
      - introduce UMS_START_SECTOR and UMS_NUM_SECTORS as defined in
        usb_mass_storage.h both default values as 0 if board config
        doesn't define them
      common cleanup changes:
      - change name of struct "ums_board_info" to "ums"
      - "ums_device" fields are moved to struct ums and "dev_num" is removed
      - change function name: board_ums_init to ums_init
      - remove "extern" prefixes from usb_mass_storage.h
      - change error() to printf() if need to print info message
      - change return values to command_ret_t type at ums command code
      - add command usage string
      Changes v2:
      ums common:
      - always returns number of read/write sectors
      - coding style clean-up
      ums gadget:
      - calculate amount of read/write from device returned value.
      Signed-off-by: default avatarPrzemyslaw Marczak <p.marczak@samsung.com>
      Cc: Marek Vasut <marek.vasut@gmail.com>
  22. 20 Oct, 2013 2 commits
  23. 20 Aug, 2013 1 commit
    • Łukasz Majewski's avatar
      i2c:samsung: Adjust Trats, GONI and Universal_c210 boards to work with new I2C framework · 2936df1f
      Łukasz Majewski authored and Heiko Schocher's avatar Heiko Schocher committed
      New I2C framework, introduced after v2013.07 final release, imposed I2C
      code adjustment for some Samsung boards - namely Trats, GONI and Universal_c210.
      Those boards were using schematic based I2C enumeration (I2C_5, I2C_9).
      However, new I2C framework imposes usage of logical I2C adapters numbering
      (e.g. I2C_0, I2C_1, etc).
      Additionally, I2C_GET_* macros were replaced with i2c_*_bus_num() functions.
      Trats board gained definition of second soft I2C adapter.
      Signed-off-by: default avatarLukasz Majewski <l.majewski@samsung.com>
      Cc: Minkyu Kang <mk7.kang@samsung.com>
      Cc: Heiko Schocher <hs@denx.de>
  24. 24 Jul, 2013 1 commit
  25. 16 Jul, 2013 1 commit
  26. 27 Mar, 2013 1 commit
  27. 18 Mar, 2013 1 commit
  28. 03 Jan, 2013 1 commit
  29. 15 Nov, 2012 1 commit