1. 31 3月, 2018 1 次提交
  2. 04 2月, 2018 1 次提交
  3. 22 1月, 2018 1 次提交
  4. 12 7月, 2017 2 次提交
  5. 01 6月, 2017 1 次提交
  6. 11 10月, 2016 1 次提交
  7. 26 7月, 2016 1 次提交
  8. 15 3月, 2016 1 次提交
  9. 20 11月, 2015 1 次提交
  10. 31 8月, 2015 1 次提交
  11. 06 8月, 2015 2 次提交
  12. 23 4月, 2015 3 次提交
  13. 17 4月, 2015 1 次提交
    • S
      dm: core: Add a uclass pre_probe() method for devices · 02c07b37
      Simon Glass 提交于
      Some uclasses want to set up a device before it is probed. Add a method
      for this.
      
      An example is with PCI, where a PCI uclass wants to set up its private
      data for later use. This allows the device's uclass() method to make calls
      whcih use that data (for example, read PCI memory regions from device
      tree, set up bus numbers).
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      02c07b37
  14. 30 1月, 2015 6 次提交
  15. 23 10月, 2014 1 次提交
  16. 23 7月, 2014 3 次提交
    • S
      dm: Tidy up some header file comments · 0040b944
      Simon Glass 提交于
      Fix up the style of a few comments and add/clarify a few others.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      0040b944
    • S
      dm: Allow a device to be found by its FDT offset · f4cdead2
      Simon Glass 提交于
      Each device that was bound from a device tree has an node that caused it to
      be bound. Add functions that find and return a device based on a device tree
      offset.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      f4cdead2
    • S
      dm: Introduce device sequence numbering · 5a66a8ff
      Simon Glass 提交于
      In U-Boot it is pretty common to number devices from 0 and access them
      on the command line using this numbering. While it may come to pass that
      we will move away from this numbering, the possibility seems remote at
      present.
      
      Given that devices within a uclass will have an implied numbering, it
      makes sense to build this into driver model as a core feature. The cost
      is fairly small in terms of code and data space.
      
      With each uclass having numbered devices we can ask for SPI port 0 or
      serial port 1 and receive a single device.
      
      Devices typically request a sequence number using aliases in the device
      tree. These are resolved when the device is probed, to deal with conflicts.
      Sequence numbers need not be sequential and holes are permitted.
      
      At present there is no support for sequence numbers using static platform
      data. It could easily be added to 'struct driver_info' if needed, but it
      seems better to add features as we find a use for them, and the use of -1
      to mean 'no sequence' makes the default value somewhat painful.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      5a66a8ff
  17. 21 6月, 2014 1 次提交
  18. 27 5月, 2014 1 次提交
    • H
      dm: rename device struct to udevice · 54c5d08a
      Heiko Schocher 提交于
      using UBI and DM together leads in compiler error, as
      both define a "struct device", so rename "struct device"
      in include/dm/device.h to "struct udevice", as we use
      linux code (MTD/UBI/UBIFS some USB code,...) and cannot
      change the linux "struct device"
      Signed-off-by: NHeiko Schocher <hs@denx.de>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Marek Vasut <marex@denx.de>
      54c5d08a
  19. 05 3月, 2014 1 次提交