From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756131Ab3AODLh (ORCPT ); Mon, 14 Jan 2013 22:11:37 -0500 Received: from opensource.wolfsonmicro.com ([80.75.67.52]:53362 "EHLO opensource.wolfsonmicro.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751206Ab3AODLf (ORCPT ); Mon, 14 Jan 2013 22:11:35 -0500 Date: Tue, 15 Jan 2013 12:11:19 +0900 From: Mark Brown To: Mika Westerberg Cc: linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Len Brown , "Rafael J. Wysocki" , Mike Turquette , Arnd Bergmann , Linus Walleij , Heikki Krogerus , linux-acpi@vger.kernel.org Subject: Re: [PATCH 2/3] clk: x86: add support for Lynxpoint LPSS clocks Message-ID: <20130115031118.GC5701@opensource.wolfsonmicro.com> References: <1358174788-24439-1-git-send-email-mika.westerberg@linux.intel.com> <1358174788-24439-3-git-send-email-mika.westerberg@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1358174788-24439-3-git-send-email-mika.westerberg@linux.intel.com> X-Cookie: Be cautious in your daily affairs. User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 14, 2013 at 04:46:27PM +0200, Mika Westerberg wrote: > Intel Lynxpoint Low Power Subsystem hosts peripherals like UART, I2C and > SPI controllers. For most of these there is a configuration register that > allows software to enable and disable the functional clock. Disabling the > clock while the peripheral is not used saves power. > > In order to take advantage of this we add a new clock gate of type > 'lpss_gate' that just re-uses the ordinary clk_gate but in addition is able > to enumerate the base address register of the device using ACPI. > > We then create a clock tree that models the Lynxpoint LPSS clocks using > these gates and fixed clocks so that we can pass clock rate to the drivers > as well. Reviewed-by: Mark Brown