1. 30 Sep, 2016 1 commit
  2. 26 Jun, 2016 1 commit
  3. 08 Apr, 2016 1 commit
  4. 31 Dec, 2015 2 commits
  5. 06 Dec, 2015 5 commits
  6. 06 Nov, 2015 3 commits
  7. 24 Sep, 2015 1 commit
  8. 13 Aug, 2015 1 commit
  9. 15 Jun, 2015 1 commit
  10. 03 Apr, 2015 1 commit
  11. 16 Mar, 2015 1 commit
  12. 04 Nov, 2014 2 commits
    • Rafael J. Wysocki's avatar
      Driver core: Unified interface for firmware node properties · 8a0662d9
      Rafael J. Wysocki authored
      Add new generic routines are provided for retrieving properties from
      device description objects in the platform firmware in case there are
      no struct device objects for them (either those objects have not been
      created yet or they do not exist at all).
      
      The following functions are provided:
      
      fwnode_property_present()
      fwnode_property_read_u8()
      fwnode_property_read_u16()
      fwnode_property_read_u32()
      fwnode_property_read_u64()
      fwnode_property_read_string()
      fwnode_property_read_u8_array()
      fwnode_property_read_u16_array()
      fwnode_property_read_u32_array()
      fwnode_property_read_u64_array()
      fwnode_property_read_string_array()
      
      in analogy with the corresponding functions for struct device added
      previously.  For all of them, the first argument is a pointer to struct
      fwnode_handle (new type) that allows a device description object
      (depending on what platform firmware interface is in use) to be
      obtained.
      
      Add a new macro device_for_each_child_node() for iterating over the
      children of the device description object associated with a given
      device and a new function device_get_child_node_count() returning the
      number of a given device's child nodes.
      
      The interface covers both ACPI and Device Trees.
      Suggested-by: default avatarGrant Likely <grant.likely@linaro.org>
      Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Acked-by: default avatarGrant Likely <grant.likely@linaro.org>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      8a0662d9
    • Rafael J. Wysocki's avatar
      Driver core: Unified device properties interface for platform firmware · b31384fa
      Rafael J. Wysocki authored
      Add a uniform interface by which device drivers can request device
      properties from the platform firmware by providing a property name
      and the corresponding data type.  The purpose of it is to help to
      write portable code that won't depend on any particular platform
      firmware interface.
      
      The following general helper functions are added:
      
      device_property_present()
      device_property_read_u8()
      device_property_read_u16()
      device_property_read_u32()
      device_property_read_u64()
      device_property_read_string()
      device_property_read_u8_array()
      device_property_read_u16_array()
      device_property_read_u32_array()
      device_property_read_u64_array()
      device_property_read_string_array()
      
      The first one allows the caller to check if the given property is
      present.  The next 5 of them allow single-valued properties of
      various types to be retrieved in a uniform way.  The remaining 5 are
      for reading properties with multiple values (arrays of either numbers
      or strings).
      
      The interface covers both ACPI and Device Trees.
      
      This change set includes material from Mika Westerberg and Aaron Lu.
      Signed-off-by: default avatarAaron Lu <aaron.lu@intel.com>
      Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
      Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Acked-by: default avatarGrant Likely <grant.likely@linaro.org>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      b31384fa