From patchwork Sat Nov 29 14:15:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kachhap X-Patchwork-Id: 5406661 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 04D819F443 for ; Sat, 29 Nov 2014 14:21:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3726320165 for ; Sat, 29 Nov 2014 14:21:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 075932015E for ; Sat, 29 Nov 2014 14:21:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751209AbaK2OVv (ORCPT ); Sat, 29 Nov 2014 09:21:51 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:37727 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751173AbaK2OVu (ORCPT ); Sat, 29 Nov 2014 09:21:50 -0500 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NFT0021418DI6A0@mailout3.samsung.com> for linux-samsung-soc@vger.kernel.org; Sat, 29 Nov 2014 23:21:49 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.123]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 2D.D1.18484.D76D9745; Sat, 29 Nov 2014 23:21:49 +0900 (KST) X-AuditID: cbfee68f-f791c6d000004834-1e-5479d67ded8a Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id FD.21.09430.D76D9745; Sat, 29 Nov 2014 23:21:49 +0900 (KST) Received: from chromebld-server.sisodomain.com ([107.108.73.106]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NFT00ENK17RUY00@mmp2.samsung.com>; Sat, 29 Nov 2014 23:21:49 +0900 (KST) From: Amit Daniel Kachhap To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Cc: kgene.kim@samsung.com, b.zolnierkie@samsung.com, pankaj.dubey@samsung.com, Amit Daniel Kachhap Subject: [PATCH v5 4/6] driver: soc: exynos-pmu: Add a new structure to allow u32 conf data Date: Sat, 29 Nov 2014 19:45:06 +0530 Message-id: <1417270508-11174-5-git-send-email-amit.daniel@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1417270508-11174-1-git-send-email-amit.daniel@samsung.com> References: <1417270508-11174-1-git-send-email-amit.daniel@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrOLMWRmVeSWpSXmKPExsWyRsSkWrf2WmWIwe07GhYNV0MsNs5Yz2rR u+Aqm8Wmx9dYLWac38dksWjrF3YHNo/NS+o9+rasYvT4vEkugDmKyyYlNSezLLVI3y6BK+Pf jy/MBV3cFU9O32VsYJzF2cXIySEhYCJxc+c1FghbTOLCvfVsXYxcHEICSxklzi09wwhT9HzG XGaIxHRGifkTHzJCOBOYJNY+6mUDqWITMJb4uXM/excjB4eIgLfE8muKIGFmgTqJ3rmPmUBs YYFYifvPTjCClLAIqEo8mi0DEuYVcJe4u/ozK0hYQkBBYs4kG5Awp4CHxIHJB1hAwkJAJS1H lUGWSgg0s0vcvt8LdjOLgIDEt8mHWCBaZSU2HWCGuFhS4uCKGywTGIUXMDKsYhRNLUguKE5K LzLWK07MLS7NS9dLzs/dxAgM39P/nvXvYLx7wPoQowAHoxIPb4J1ZYgQa2JZcWXuIUZToA0T maVEk/OBUZJXEm9obGZkYWpiamx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m2pxFKckWioxVxUnAgAHjCaOqQCAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 Commit b04fa9f "ARM: EXYNOS: use u8 for val[] in struct exynos_pmu_conf" modifies the structure to allow only u8 type configuration data. To support SoC's which need u32 type data a new structure is added. Signed-off-by: Amit Daniel Kachhap --- drivers/soc/samsung/exynos-pmu.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/soc/samsung/exynos-pmu.c b/drivers/soc/samsung/exynos-pmu.c index c3307eb..e1a4884 100644 --- a/drivers/soc/samsung/exynos-pmu.c +++ b/drivers/soc/samsung/exynos-pmu.c @@ -26,9 +26,14 @@ struct exynos_pmu_conf { u8 val[NUM_SYS_POWERDOWN]; }; +struct exynos_pmu_conf_extra { + u32 offset; + u32 val[NUM_SYS_POWERDOWN]; +}; + struct exynos_pmu_data { const struct exynos_pmu_conf *pmu_config; - const struct exynos_pmu_conf *pmu_config_extra; + const struct exynos_pmu_conf_extra *pmu_config_extra; void (*pmu_init)(void); void (*powerdown_conf)(enum sys_powerdown); @@ -324,7 +329,7 @@ static const struct exynos_pmu_conf exynos4x12_pmu_config[] = { { PMU_TABLE_END,}, }; -static const struct exynos_pmu_conf exynos4412_pmu_config[] = { +static const struct exynos_pmu_conf_extra exynos4412_pmu_config[] = { { S5P_ARM_CORE2_LOWPWR, { 0x0, 0x0, 0x2 } }, { S5P_DIS_IRQ_CORE2, { 0x0, 0x0, 0x0 } }, { S5P_DIS_IRQ_CENTRAL2, { 0x0, 0x0, 0x0 } },