1. 15 12月, 2019 2 次提交
    • S
      dm: pci: Move pci_get_devfn() into a common file · 6dd4b014
      Simon Glass 提交于
      Early in boot it is necessary to decode the PCI device/function values for
      particular peripherals in the device tree or of-platdata. This is needed
      in TPL where CONFIG_PCI is not defined.
      
      To handle this, move pci_get_devfn() into a file that is built even when
      CONFIG_PCI is not defined.
      
      Also add a function for use by of-platdata, to convert a reg property to
      a pci_dev_t.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
      6dd4b014
    • S
      dm: pci: Allow delaying auto-config until after relocation · 2206ac24
      Simon Glass 提交于
      At present PCI auto-configuration happens in U-Boot both before and after
      relocation. This is a waste of time and may mess up static addresses used
      in board_init_f(). Adjust the code to supporting doing auto-configuration
      once, after relocation, under control of a device-tree property.
      
      This is needed for Apollo Lake for debugging the silicon-init code. Once
      the UART is moved to a different MMIO address the debug UART does not work
      and any debug output in Apollo Lake's arch_fsp_init_r() causes a hang.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
      2206ac24
  2. 11 10月, 2019 1 次提交
  3. 08 10月, 2019 3 次提交
  4. 11 7月, 2019 3 次提交
  5. 08 5月, 2019 1 次提交
    • S
      Revert "pci: Scale MAX_PCI_REGIONS based on CONFIG_NR_DRAM_BANKS" · 62c72995
      Simon Glass 提交于
      This reverts commit aec4298c.
      
      Unfortunately this has a dramatic impact on the pre-relocation memory
      used on x86 platforms (increasing it by 2KB) since it increases the
      overhead for each PCI device from 220 bytes to 412 bytes.
      
      The offending line is in UCLASS_DRIVER(pci):
      
      	.per_device_auto_alloc_size = sizeof(struct pci_controller),
      
      This means that all PCI devices have the controller struct associated
      with them. The solution is to move the regions[] member out of the array,
      makes its size dynamic, or split UCLASS_PCI into controllers and
      non-controllers, as the comment suggests.
      
      For now, revert the commit to get things running again.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
      62c72995
  6. 24 4月, 2019 2 次提交
  7. 23 3月, 2019 1 次提交
  8. 20 2月, 2019 2 次提交
  9. 05 2月, 2019 1 次提交
  10. 15 11月, 2018 1 次提交
  11. 08 8月, 2018 4 次提交
  12. 27 5月, 2018 2 次提交
  13. 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
  14. 20 3月, 2018 1 次提交
  15. 06 10月, 2017 1 次提交
  16. 31 5月, 2017 1 次提交
  17. 22 3月, 2016 1 次提交
  18. 17 3月, 2016 2 次提交
  19. 05 2月, 2016 1 次提交
  20. 24 1月, 2016 1 次提交
  21. 13 1月, 2016 8 次提交