1. 15 11月, 2018 1 次提交
    • B
      pinctrl: Remove DM_FLAG_PRE_RELOC flag in various drivers · ad0e8048
      Bin Meng 提交于
      When a driver declares DM_FLAG_PRE_RELOC flag, it wishes to be
      bound before relocation. However due to a bug in the DM core,
      the flag only takes effect when devices are statically declared
      via U_BOOT_DEVICE(). This bug has been fixed recently by commit
      "dm: core: Respect drivers with the DM_FLAG_PRE_RELOC flag in
      lists_bind_fdt()", but with the fix, it has a side effect that
      all existing drivers that declared DM_FLAG_PRE_RELOC flag will
      be bound before relocation now. This may expose potential boot
      failure on some boards due to insufficient memory during the
      pre-relocation stage.
      
      To mitigate this potential impact, the following changes are
      implemented:
      
      - Remove DM_FLAG_PRE_RELOC flag in the driver, if the driver
        only supports configuration from device tree (OF_CONTROL)
      - Keep DM_FLAG_PRE_RELOC flag in the driver only if the device
        is statically declared via U_BOOT_DEVICE()
      - Surround DM_FLAG_PRE_RELOC flag with OF_CONTROL check, for
        drivers that support both statically declared devices and
        configuration from device tree
      Signed-off-by: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      ad0e8048
  2. 07 5月, 2018 1 次提交
    • T
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini 提交于
      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: NTom Rini <trini@konsulko.com>
      83d290c5
  3. 23 8月, 2017 1 次提交
    • P
      pinctrl: imx7ulp: Add new info instance for iomuxc1 · 7a7bfec3
      Peng Fan 提交于
      To i.MX7ULP, we need to create two info instances for
      iomux0 and iomux1 respectively, otherwise iomuxc0/1 will
      share one info instance and use one base, because imx_pinctrl_probe
      will use info to store base address and etc. But iomuxc0/1
      actually have different base address.
      Signed-off-by: NPeng Fan <peng.fan@nxp.com>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Stefano Babic <sbabic@denx.de>
      7a7bfec3
  4. 01 6月, 2017 2 次提交
    • S
      dm: Fix up inclusion of common.h · 4af0d7e8
      Simon Glass 提交于
      It is good practice to include common.h as the first header. This ensures
      that required features like the DECLARE_GLOBAL_DATA_PTR macro,
      configuration options and common types are available.
      
      Fix up some files which currently don't do this. This is necessary because
      driver model will soon start using global data and configuration in the
      dm/read.h header file, included via dm.h. The gd->fdt_blob value will be
      used to access the device tree and CONFIG options will be used to
      determine whether to support inline functions in the header file.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      4af0d7e8
    • S
      dm: Use dm.h header when driver mode is used · 9d922450
      Simon Glass 提交于
      This header includes things that are needed to make driver build. Adjust
      existing users to include that always, even if other dm/ includes are
      present
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      9d922450
  5. 17 3月, 2017 1 次提交