From patchwork Tue Jul 21 11:07:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaibhav Hiremath X-Patchwork-Id: 6834741 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A3542C05AC for ; Tue, 21 Jul 2015 11:19:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D214F2061A for ; Tue, 21 Jul 2015 11:19:07 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BC73420601 for ; Tue, 21 Jul 2015 11:19:06 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZHVXz-0001nd-Qr; Tue, 21 Jul 2015 11:17:19 +0000 Received: from mail-pd0-f179.google.com ([209.85.192.179]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZHVXp-0001bq-3j for linux-arm-kernel@lists.infradead.org; Tue, 21 Jul 2015 11:17:10 +0000 Received: by pdbnt7 with SMTP id nt7so48317240pdb.0 for ; Tue, 21 Jul 2015 04:16:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=HuVo1jFCZ/7LV0K+Cp6GAi2nNcZ3F4KjbA8qJE7Sr8I=; b=IB6/d+j4oNP08jVKv5ZMwg4C97xLDl8ZgFDFawaYgPC1xN8j2m5dBwOrNn7bs3m32g r/SA4oagRXqElb7wO6VF9JIGhokSB3Wy7ySw7Haqygrack1cy6KGAI0vihioJTgyIS5T lLtLiTSyXrb8zjHxpLGfBtlcjD71BdVaXAYNRR0H0PckMGocIkkz74rhYlvjpVRQ8BtQ 0NZLrBWiX36FIRC173iqGQOSb9iEQAWzbr8Ig1PC/XkiF0WRdMqJzCQ89q0oDiuo2YLN sGyuxlhiazGeEYXs4pvZsCsPgCCmJ8c39IAZ7FBGpWWN3AcZ4mzbzQJSle+65qJZOD0y viyA== X-Gm-Message-State: ALoCoQkVOWLp3O5gusGXlhSsnEE4rN5y/QvfNcDRk9PUvT45zoK3sFW1rLd0OSlO69wUWqRkV2Is X-Received: by 10.66.121.163 with SMTP id ll3mr73545707pab.100.1437477408258; Tue, 21 Jul 2015 04:16:48 -0700 (PDT) Received: from localhost.localdomain ([202.62.77.106]) by smtp.gmail.com with ESMTPSA id v9sm1900399pdr.96.2015.07.21.04.16.43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Jul 2015 04:16:47 -0700 (PDT) From: Vaibhav Hiremath To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/4] mfd: 88pm800: Update the header file with 32K clk related macros Date: Tue, 21 Jul 2015 16:37:00 +0530 Message-Id: <1437476823-3358-2-git-send-email-vaibhav.hiremath@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1437476823-3358-1-git-send-email-vaibhav.hiremath@linaro.org> References: <1437476823-3358-1-git-send-email-vaibhav.hiremath@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150721_041709_220656_B9A5CD0C X-CRM114-Status: GOOD ( 11.38 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, k.kozlowski@samsung.com, mturquette@baylibre.com, linux-kernel@vger.kernel.org, Vaibhav Hiremath , robh+dt@kernel.org, lee.jones@linaro.org, linux-clk@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Update header file with required macros for 32KHz buffered clock output of 88PM800 family of device. These macros will be used in clk provider driver. Signed-off-by: Vaibhav Hiremath --- include/linux/mfd/88pm80x.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/linux/mfd/88pm80x.h b/include/linux/mfd/88pm80x.h index 05d9bad..680e4eb 100644 --- a/include/linux/mfd/88pm80x.h +++ b/include/linux/mfd/88pm80x.h @@ -91,6 +91,7 @@ enum { /* Referance and low power registers */ #define PM800_LOW_POWER1 (0x20) #define PM800_LOW_POWER2 (0x21) +#define PM800_LOW_POWER2_XO_LJ_EN BIT(5) #define PM800_LOW_POWER_CONFIG3 (0x22) #define PM800_LDOBK_FREEZE BIT(7) @@ -138,6 +139,13 @@ enum { #define PM800_ALARM BIT(5) #define PM800_RTC1_USE_XO BIT(7) +#define PM800_32K_OUTX_SEL_MASK (0x3) +/* 32KHz clk output sel mode */ +#define PM800_32K_OUTX_SEL_ZERO (0x0) +#define PM800_32K_OUTX_SEL_INT_32KHZ (0x1) +#define PM800_32K_OUTX_SEL_XO_32KHZ (0x2) +#define PM800_32K_OUTX_SEL_HIZ (0x3) + /* Regulator Control Registers: BUCK1,BUCK5,LDO1 have DVC */ /* buck registers */ @@ -208,6 +216,10 @@ enum { #define PM800_PMOD_MEAS1 0x52 #define PM800_PMOD_MEAS2 0x53 +/* Oscillator control */ +#define PM800_OSC_CNTRL1 (0x50) +#define PM800_OSC_CNTRL1_OSC_FREERUN_EN BIT(1) + #define PM800_GPADC0_MEAS1 0x54 #define PM800_GPADC0_MEAS2 0x55 #define PM800_GPADC1_MEAS1 0x56