ACPI / platform: create LPSS clocks if Lynxpoint devices are found during scan
authorMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 18 Jan 2013 13:46:01 +0000 (13:46 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 23 Jan 2013 20:14:22 +0000 (21:14 +0100)
commite375325ce55eb841ccda54a4472cf3b0139ea5f2
tree79a9a12a6d18d86d24011909904f82d476a304da
parent701190fd7419f6757c19cdc6473830c79debb3ae
ACPI / platform: create LPSS clocks if Lynxpoint devices are found during scan

Intel Lynxpoint LPSS peripheral drivers depend on LPSS clock tree being
created in order to function properly. The clock tree is exposed as a
platform driver that binds to a device named 'clk-lpt'.

To support this we modify the acpi_create_platform_device() to take one
additional parameter called flags. This is passed from
acpi_platform_device_ids[] array when acpi_create_platform_device() is
called.

We then introduce a new flag ACPI_PLATFORM_CLK which is used to tell
acpi_create_platform_device() to create the platform clocks as well.

Finally we set the ACPI_PLATFORM_CLK flags for all the Lynxpoint LPSS
devices and make sure that when this flag is set we create the
corresponding clock tree platform device.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_platform.c
drivers/acpi/internal.h
drivers/acpi/scan.c