Skip to content
Snippets Groups Projects
  1. Oct 06, 2017
  2. Oct 04, 2017
    • Masahiro Yamada's avatar
      linux/bitfield.h: import <linux/bitfield.h> from Linux 4.13 · 6990e91f
      Masahiro Yamada authored
      
      Copied from Linux 4.13.
      
      Commit log of 3e9b3112ec74 of Linux explains well why this header
      is useful.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      6990e91f
    • Masahiro Yamada's avatar
      dm: define dev_*() log functions in DM header · c898cba4
      Masahiro Yamada authored
      
      Many drivers had started to use dev_err, dev_info, etc. for log
      functions.  Currently, we are relying on <linux/compat.h>, but I
      guess the best home is <dm/device.h>, taking into account that
      Linux defines them in <linux/device.h>.
      
      For now, I am leaving the ones in <linux/compat.h> because lots of
      Linux-originated code uses dev_*(), but the first argument is not
      struct udevice, so we need to ignore the bogus argument.  More
      efforts are needed to iron out the issues.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      c898cba4
    • Masahiro Yamada's avatar
      bug.h: move runtime BUG/WARN macros into <linux/bug.h> · 0a70fb4c
      Masahiro Yamada authored
      
      Collect runtime BUG/WARN into a self-contained header <linux/bug.h>
      to make these macros easier to use.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      0a70fb4c
    • Masahiro Yamada's avatar
      bug.h: sync BUILD_BUG stuff with Linux 4.13 · 059a4809
      Masahiro Yamada authored
      
      As commit 84b8bf6d ("bug.h: move BUILD_BUG_* defines to
      include/linux/bug.h") noted, include/linux/bug.h was locally
      modified for U-Boot because the name conflict of error() caused
      build errors at that time.
      
      Now error() is gone, so we can fully sync BUILD_BUG* with Linux.
      These macros are just compile-time utilities.  Nothing depends on
      platform code, so it should make sense to simply copy Linux's ones.
      
      Please note Linux split BUILD_BUG stuff out into <linux/build_bug.h>
      by commit bc6245e5efd7.  Let's follow it.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      059a4809
    • Masahiro Yamada's avatar
      printk: collect printk stuff into <linux/printk.h> with loglevel support · b44b3026
      Masahiro Yamada authored
      
      When we import code from Linux, with regular re-sync planned, we want
      to use printk() and pr_*().  U-Boot does not support them in a clean
      way.  So, people end up with local macros, or compat headers here and
      there, then we occasionally see build errors of definition conflicts.
      
      We have include/linux/compat.h, but putting all sorts of unrelated
      things into a single header is just a temporal workaround.  Hence this
      patch, to find the best home for all printk variants.  If you want to
      use printk() and friends, please include <linux/printk.h>.  This header
      is self-contained, and pulls in only a few headers.
      
      When I was testing this clean-up, I noticed the image size exceeded
      its platform limit on some boards.  This is because all pr_*() that
      were previously defined as no-op in include/linux/mtd/mtd.h (unless
      CONFIG_MTD_DEBUG is set), are now enabled.
      
      To make such boards happy, this commit also implements CONFIG_LOGLEVEL.
      The concept is similar to the kernel parameter "loglevel".  (Actually,
      the Kconfig help message was taken from kernel-paremeter.txt of Linux)
      Messages with a loglevel smaller than console loglevel will be printed.
      
      The difference is the loglevel is build-time determined.  To save the
      image size, lower priority pr_*() are compiled out.  I set the default
      of CONFIG_LOGLEVEL to 6, i.e. pr_notice and higher priority messages
      are compiled in.
      
      I adjusted CONFIG_LOGLEVEL to avoid build error for some boards.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      [trini: Add in SPL_LOGLEVEL that is the same as LOGLEVEL]
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      b44b3026
  3. Oct 01, 2017
    • Bin Meng's avatar
      usb: xhci: Honor endpoint's interval · f51966bf
      Bin Meng authored
      
      USB endpoint reports the period between consecutive requests to send
      or receive data as bInverval in its endpoint descriptor. So far this
      is ignored by xHCI driver and the 'Interval' field in xHC's endpoint
      context is always programmed to zero which means 1ms for low speed
      or full speed , or 125us for high speed or super speed. We should
      honor the interval by getting it from endpoint descriptor.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      f51966bf
  4. Sep 12, 2017
  5. Aug 14, 2017
  6. Aug 13, 2017
  7. Jul 06, 2017
  8. Jun 16, 2017
  9. Jun 01, 2017
  10. May 08, 2017
  11. Apr 27, 2017
  12. Apr 18, 2017
  13. Apr 17, 2017
  14. Apr 13, 2017
  15. Apr 05, 2017
    • Tom Rini's avatar
      Blackfin: Remove · ea3310e8
      Tom Rini authored
      
      The architecture is currently unmaintained, remove.
      
      Cc: Benjamin Matthews <mben12@gmail.com>
      Cc: Chong Huang <chuang@ucrobotics.com>
      Cc: Dimitar Penev <dpn@switchfin.org>
      Cc: Haitao Zhang <hzhang@ucrobotics.com>
      Cc: I-SYST Micromodule <support@i-syst.com>
      Cc: M.Hasewinkel (MHA) <info@ssv-embedded.de>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Martin Strubel <strubel@section5.ch>
      Cc: Peter Meerwald <devel@bct-electronic.com>
      Cc: Sonic Zhang <sonic.adi@gmail.com>
      Cc: Valentin Yakovenkov <yakovenkov@niistt.ru>
      Cc: Wojtek Skulski <info@skutek.com>
      Cc: Wojtek Skulski <skulski@pas.rochester.edu>
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      ea3310e8
  16. Mar 29, 2017
  17. Jan 18, 2017
  18. Jan 14, 2017
  19. Dec 03, 2016
  20. Nov 28, 2016
    • mario.six@gdsys.cc's avatar
      linux/compat.h: Properly implement ndelay fallback · ca388143
      mario.six@gdsys.cc authored
      
      Commit c68c62 ("i2c: mvtwsi: Make delay times frequency-dependent")
      extensively used the ndelay function with a calculated parameter
      which is dependant on the configured frequency of the I2C bus. If
      standard speed is employed, the parameter is usually 10000 (10000ns
      period length for 100kHz frequency).
      
      But, since the arm architecture does not implement a proper version of
      ndelay, the fallback default from include/linux/compat.h is used,
      which defines every ndelay as udelay(1). This causes problems for
      slower speeds on arm, since the delay time is now 9us too short for
      the desired frequency, which leads to random failures of the I2C
      interface.
      
      To remedy this, we implement a proper, parameter-aware ndelay fallback
      for architectures that don't implement a real ndelay function.
      
      Reported-By: default avatarJason Brown <Jason.brown@apcon.com>
      To: Tom Rini <trini@konsulko.com>
      To: Heiko Schocher <hs@denx.de>
      Signed-off-by: default avatarMario Six <mario.six@gdsys.cc>
      ca388143
  21. Nov 18, 2016
    • Jagan Teki's avatar
      sf: Adopt flash table INFO macro from Linux · f790ca7c
      Jagan Teki authored
      
      INFO macro make flash table entries more adjustable like
      adding new flash_info attributes, update ID length bytes
      and so on and more over it will sync to Linux way of defining
      flash_info attributes.
      
      - Add JEDEC_ID
      - Add JEDEC_EXT macro
      - Add JEDEC_MFR
      - spi_flash_params => spi_flash_info
      - params => info
      
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Bin Meng <bmeng.cn@gmail.com>
      Cc: York Sun <york.sun@nxp.com>
      Cc: Vignesh R <vigneshr@ti.com>
      Cc: Mugunthan V N <mugunthanvnm@ti.com>
      Cc: Michal Simek <michal.simek@xilinx.com>
      Cc: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
      Reviewed-by: default avatarJagan Teki <jagan@openedev.com>
      Tested-by: default avatarJagan Teki <jagan@openedev.com>
      Signed-off-by: default avatarJagan Teki <jagan@openedev.com>
      f790ca7c
  22. Oct 11, 2016
  23. Sep 27, 2016
  24. Sep 26, 2016
  25. Sep 24, 2016
Loading