From patchwork Tue Jul 1 08:10:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 32847 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f71.google.com (mail-oa0-f71.google.com [209.85.219.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B6E8120DCC for ; Tue, 1 Jul 2014 08:10:36 +0000 (UTC) Received: by mail-oa0-f71.google.com with SMTP id n16sf59039938oag.6 for ; Tue, 01 Jul 2014 01:10:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=ZjUsYtvVHpkTQ45aYeJV35pxA05kqAFkj66J0AWMeH4=; b=ELP+O46Lz2eRJ8nq/NSLEiXkdu6oK/I+R4ljiXrxs7n5xGSozYEv/xCCF8MHttO5o3 Wn9zE5meCXek4N6nfJVoGT/soiitY2Q9PaNkc6sUKPycFM+pOjhX1HY5kPK1bCSzrjBb v8PvntJidDBxf74Rmh2sqQzzVMqANbuNpLdamSsBjansPGO39qkqPJTlcNxb1DPNZsdz ObWyBofUvSsoGE12K0XCKX9ca5a+/zj/muiuEEm9L3CWFB91NsPXRZTlG20tMqwZNpCx llhZmOFdSGFkBcpG00ToWpn2PuPynizCZRcZ4dcP1ilipVEgc5hxPu3seNXvrQ0ecQu/ rwvQ== X-Gm-Message-State: ALoCoQmvHvVyDJhHo08TjXTgXo5SNEhl+zSOEWnrlWUbhuZEATJg/MzikMJZnscwqQ4strwPM/dH X-Received: by 10.182.252.166 with SMTP id zt6mr24051154obc.17.1404202236389; Tue, 01 Jul 2014 01:10:36 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.34.196 with SMTP id l62ls1793045qgl.35.gmail; Tue, 01 Jul 2014 01:10:36 -0700 (PDT) X-Received: by 10.52.72.39 with SMTP id a7mr35887401vdv.13.1404202236304; Tue, 01 Jul 2014 01:10:36 -0700 (PDT) Received: from mail-ve0-f179.google.com (mail-ve0-f179.google.com [209.85.128.179]) by mx.google.com with ESMTPS id wa10si11127725veb.79.2014.07.01.01.10.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 01 Jul 2014 01:10:36 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.179 as permitted sender) client-ip=209.85.128.179; Received: by mail-ve0-f179.google.com with SMTP id sa20so9362569veb.10 for ; Tue, 01 Jul 2014 01:10:36 -0700 (PDT) X-Received: by 10.58.245.134 with SMTP id xo6mr29031226vec.14.1404202236206; Tue, 01 Jul 2014 01:10:36 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp197863vcb; Tue, 1 Jul 2014 01:10:35 -0700 (PDT) X-Received: by 10.50.73.228 with SMTP id o4mr38023899igv.6.1404202235535; Tue, 01 Jul 2014 01:10:35 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id so9si25090523pac.191.2014.07.01.01.10.34; Tue, 01 Jul 2014 01:10:35 -0700 (PDT) Received-SPF: none (google.com: linux-samsung-soc-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755768AbaGAIKe (ORCPT + 8 others); Tue, 1 Jul 2014 04:10:34 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:58779 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754949AbaGAIKb (ORCPT ); Tue, 1 Jul 2014 04:10:31 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N80005KYXDCGL80@mailout1.w1.samsung.com> for linux-samsung-soc@vger.kernel.org; Tue, 01 Jul 2014 09:10:24 +0100 (BST) X-AuditID: cbfec7f4-b7fac6d000006cfe-6d-53b26cf4feaa Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 76.C5.27902.4FC62B35; Tue, 01 Jul 2014 09:10:28 +0100 (BST) Received: from amdc1339.digital.local ([106.116.147.30]) by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0N8000A5SXDBMY80@eusync2.samsung.com>; Tue, 01 Jul 2014 09:10:28 +0100 (BST) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: Marek Szyprowski , Kukjin Kim , Tobias Jakobi , Daniel Drake , Andrzej Hajda , Inki Dae , Tomasz Stanislawski , Tomasz Figa , Mike Turquette Subject: [PATCH 1/7] clk: exynos4: add support for MOUT_HDMI and MOUT_MIXER clocks Date: Tue, 01 Jul 2014 10:10:05 +0200 Message-id: <1404202211-15788-2-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 In-reply-to: <1404202211-15788-1-git-send-email-m.szyprowski@samsung.com> References: <1404202211-15788-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupjluLIzCtJLcpLzFFi42I5/e/4Fd0vOZuCDZa947a4te4cq8Wj+Y+Z La58fc9mMen+BBaL3gVX2SxmnN/HZNH18yebxdojd9ktnk64yGaxfsZrFot57S9ZHbg9Fn3P 8li8aT+bx51re9g87ncfZ/Lo27KK0ePzJrkAtigum5TUnMyy1CJ9uwSujPnrJzMX9AhVtOy+ y9TAeIi/i5GTQ0LAROLPiinsELaYxIV769m6GLk4hASWMkp0Tt3KCOH0MUlsvHaOEaSKTcBQ outtF1AVB4eIgJvErP+sIDXMAk+ZJC48mA1WIywQItG9vB/MZhFQlWjYtZkVxOYV8JCYvv8o 1DY5if8vVzCB2JwCnhJ7rh4EiwsB1ez/voVpAiPvAkaGVYyiqaXJBcVJ6bmGesWJucWleel6 yfm5mxghYfhlB+PiY1aHGAU4GJV4eBtXbAgWYk0sK67MPcQowcGsJMLLnrYpWIg3JbGyKrUo P76oNCe1+BAjEwenVANj5jz3j9V/0/dcObdeqCdKKsf9gYFkzWKtY/sO7Qhtv2r93Prd2sPJ 1w9kvn5X1CItYCW9VLb1OLPzBZs+10t6D/dHmbOmPonrs/2n8nXuuseivK8t3MzTFikmTYo6 x3vz6Gq5uiWp7tGcSm5bT8+1sk/95l5ibzV9Vv/yLxMD+qVXTRF4bquhxFKckWioxVxUnAgA 01hb6iECAAA= Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: m.szyprowski@samsung.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.179 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This patch adds support for exporting mout_hdmi and mout_mixer to device tree. Access to those clocks is required to correctly setup HDMI module on Exynos 4210 and 4x12 SoCs. Signed-off-by: Marek Szyprowski CC: Mike Turquette CC: Tomasz Figa --- drivers/clk/samsung/clk-exynos4.c | 4 ++-- include/dt-bindings/clock/exynos4.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/clk/samsung/clk-exynos4.c b/drivers/clk/samsung/clk-exynos4.c index 4f150c9dd38c..a30a779869eb 100644 --- a/drivers/clk/samsung/clk-exynos4.c +++ b/drivers/clk/samsung/clk-exynos4.c @@ -440,7 +440,7 @@ static struct samsung_fixed_rate_clock exynos4210_fixed_rate_clks[] __initdata = static struct samsung_mux_clock exynos4_mux_clks[] __initdata = { MUX_FA(CLK_MOUT_APLL, "mout_apll", mout_apll_p, SRC_CPU, 0, 1, CLK_SET_RATE_PARENT, 0, "mout_apll"), - MUX(0, "mout_hdmi", mout_hdmi_p, SRC_TV, 0, 1), + MUX(CLK_MOUT_HDMI, "mout_hdmi", mout_hdmi_p, SRC_TV, 0, 1), MUX(0, "mout_mfc1", sclk_evpll_p, SRC_MFC, 4, 1), MUX(0, "mout_mfc", mout_mfc_p, SRC_MFC, 8, 1), MUX_F(CLK_MOUT_G3D1, "mout_g3d1", sclk_evpll_p, SRC_G3D, 4, 1, @@ -463,7 +463,7 @@ static struct samsung_mux_clock exynos4210_mux_clks[] __initdata = { MUX(0, "mout_aclk100", sclk_ampll_p4210, SRC_TOP0, 16, 1), MUX(0, "mout_aclk160", sclk_ampll_p4210, SRC_TOP0, 20, 1), MUX(0, "mout_aclk133", sclk_ampll_p4210, SRC_TOP0, 24, 1), - MUX(0, "mout_mixer", mout_mixer_p4210, SRC_TV, 4, 1), + MUX(CLK_MOUT_MIXER, "mout_mixer", mout_mixer_p4210, SRC_TV, 4, 1), MUX(0, "mout_dac", mout_dac_p4210, SRC_TV, 8, 1), MUX(0, "mout_g2d0", sclk_ampll_p4210, E4210_SRC_IMAGE, 0, 1), MUX(0, "mout_g2d1", sclk_evpll_p, E4210_SRC_IMAGE, 4, 1), diff --git a/include/dt-bindings/clock/exynos4.h b/include/dt-bindings/clock/exynos4.h index 1106ca540a96..5bfb3509ee3c 100644 --- a/include/dt-bindings/clock/exynos4.h +++ b/include/dt-bindings/clock/exynos4.h @@ -229,6 +229,8 @@ #define CLK_MOUT_G3D1 393 #define CLK_MOUT_G3D 394 #define CLK_ACLK400_MCUISP 395 /* Exynos4x12 only */ +#define CLK_MOUT_HDMI 396 +#define CLK_MOUT_MIXER 397 /* div clocks */ #define CLK_DIV_ISP0 450 /* Exynos4x12 only */