From patchwork Mon Aug 24 18:56:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaibhav Hiremath X-Patchwork-Id: 7066081 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 E3E95C05AC for ; Mon, 24 Aug 2015 19:01:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 15AF820741 for ; Mon, 24 Aug 2015 19:01:26 +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 30E5C20671 for ; Mon, 24 Aug 2015 19:01:25 +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 1ZTwy2-000297-3h; Mon, 24 Aug 2015 18:59:38 +0000 Received: from mail-pa0-f46.google.com ([209.85.220.46]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZTwxo-0001yM-73 for linux-arm-kernel@lists.infradead.org; Mon, 24 Aug 2015 18:59:25 +0000 Received: by pacgr6 with SMTP id gr6so2381909pac.3 for ; Mon, 24 Aug 2015 11:59:03 -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=kXYu12Nl90DcBwRQbBqvkGo2UxkjMKIYY6+Jd8trSX4=; b=Fqtgic0wBa9LfcO9dI8vUsBhcwa2g4tFvAhF568r8cBn4G6xCZPV0JDCLw6L2s8H/s CADSZ1vmjmrZteA/0eRTibItk/A8DsPZeSim2nl1d29/uMhv2V4DBnSRJYC9NquL/S/r N+zsONMUprfnZ/3hRh57cZXQ7LMEZcxfwbrS0LXyyx4MKuQGSykv1nPHVgeOnOwj5nTy /Qk+M/3h8xzQ5oGUztrdrDvUAxf4LsJqFLswsXtvpbDBTZNw2d0Gwqgb8xxYjADh/pLx WfiDjsgUs+sVHR3DUdwd5yziMcFVWVbQcEzPMaNbNPPVobcKYSLogqcUxZ8pLJCD0z8M CpNA== X-Gm-Message-State: ALoCoQkf8sH8tCMEh9xAUsAE5XVT9KSYs79/wN6HDezLNLdpHZOGq6d+b8OS/CftAiRltKbWjg3R X-Received: by 10.66.193.73 with SMTP id hm9mr49487955pac.105.1440442743373; Mon, 24 Aug 2015 11:59:03 -0700 (PDT) Received: from localhost.localdomain ([202.62.77.106]) by smtp.gmail.com with ESMTPSA id hh3sm18260418pbc.8.2015.08.24.11.58.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Aug 2015 11:59:02 -0700 (PDT) From: Vaibhav Hiremath To: linux-arm-kernel@lists.infradead.org Subject: [PATCH-v2 2/5] mfd: 88pm800: Update the header file with 32K clk related macros Date: Tue, 25 Aug 2015 00:26:31 +0530 Message-Id: <1440442594-3102-4-git-send-email-vaibhav.hiremath@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1440442594-3102-1-git-send-email-vaibhav.hiremath@linaro.org> References: <1440442594-3102-1-git-send-email-vaibhav.hiremath@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150824_115924_310060_4DF4CF8F X-CRM114-Status: GOOD ( 10.70 ) 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.6 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 122cfd2..0215d5f 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