Skip to content

x86: enable common clk and add support for Lynxpoint clocks

Mika Westerberg linux-acpi lkml 2 versions – In review

Get series with b4
b4 am 1358516761-20981-1-git-send-email-mika.westerberg@linux.intel.com

Versions newest first · linked by author and title

  1. v2 Latest3 patches 3 repliesIn review
  2. v13 patches 8 repliesSuperseded

Changes to previous version from the cover letter

- add config option CONFIG_X86_INTEL_LPSS
- pass flags to acpi_create_platform_device() instead of calling function in drivers/acpi/scan.c
- create the clock platform devices in drivers/acpi/acpi_platform.c

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3x86: add support for Intel Low Power Subsystemarch/x86/Kconfig+10 -00 replies
2/3clk: x86: add support for Lynxpoint LPSS clocksdrivers/clk/Makefile drivers/clk/x86/Makefile drivers/clk/x86/clk-lpss.c +2 more+224 -02 replies
3/3ACPI / platform: create LPSS clocks if Lynxpoint devices are found during scandrivers/acpi/acpi_platform.c drivers/acpi/internal.h drivers/acpi/scan.c+41 -120 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchMark BrownMike Turquette
1/3
2/3R-b A-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] x86: enable common clk and add support for Lynxpoint clocks

This is second iteration of the series. First revision is available here:

	https://lkml.org/lkml/2013/1/14/213

Idea is to let the LPSS peripheral drivers to use common clk framework to get clock rate or enable/disable the functional clock. The discussion started in this thread:

	http://thread.gmane.org/gmane.linux.kernel/1417691

In summary, there is no point in adding a special case code to the drivers in order to pass them a fixed clock rate, but instead x86 should just enable common clk subsystem and take advantage of it.

We try to address that in this series. Instead of enabling the common clk framework by default we place it under CONFIG_X86_INTEL_LPSS config option. This option then selects what is necessary to support the LPSS peripheral drivers.

We then create the Lynxpoint clock tree and populate it accordingly.

Changes to previous version:
- add config option CONFIG_X86_INTEL_LPSS
- pass flags to acpi_create_platform_device() instead of calling function in drivers/acpi/scan.c
- create the clock platform devices in drivers/acpi/acpi_platform.c

Please review.

Mika Westerberg (3):
x86: add support for Intel Low Power Subsystem
clk: x86: add support for Lynxpoint LPSS clocks
ACPI / platform: create LPSS clocks if Lynxpoint devices are found
during scan

 arch/x86/Kconfig             |   10 +++++
 drivers/acpi/acpi_platform.c |   25 ++++++++++-
 drivers/acpi/internal.h      |    6 ++-
 drivers/acpi/scan.c          |   22 +++++-----
 drivers/clk/Makefile         |    1 +
 drivers/clk/x86/Makefile     |    2 +
 drivers/clk/x86/clk-lpss.c   |   99 ++++++++++++++++++++++++++++++++++++++++++
 drivers/clk/x86/clk-lpss.h   |   36 +++++++++++++++
 drivers/clk/x86/clk-lpt.c    |   86 ++++++++++++++++++++++++++++++++++++
 9 files changed, 275 insertions(+), 12 deletions(-)
 create mode 100644 drivers/clk/x86/Makefile
 create mode 100644 drivers/clk/x86/clk-lpss.c
 create mode 100644 drivers/clk/x86/clk-lpss.h
 create mode 100644 drivers/clk/x86/clk-lpt.c
Signature · 1 line
1.7.10.4