From patchwork Mon Sep 23 14:24:57 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter De Schrijver X-Patchwork-Id: 2928311 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 991AEBFF05 for ; Mon, 23 Sep 2013 14:33:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CDAD4201EA for ; Mon, 23 Sep 2013 14:33:19 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6360C2014B for ; Mon, 23 Sep 2013 14:33:18 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VO7CL-0003sg-RO; Mon, 23 Sep 2013 14:33:13 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VO7CJ-0008MM-2D; Mon, 23 Sep 2013 14:33:11 +0000 Received: from hqemgate14.nvidia.com ([216.228.121.143]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VO7CG-0008L2-Em for linux-arm-kernel@lists.infradead.org; Mon, 23 Sep 2013 14:33:09 +0000 Received: from hqnvupgp08.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com id ; Mon, 23 Sep 2013 07:32:27 -0700 Received: from hqemhub03.nvidia.com ([172.20.12.94]) by hqnvupgp08.nvidia.com (PGP Universal service); Mon, 23 Sep 2013 07:29:14 -0700 X-PGP-Universal: processed; by hqnvupgp08.nvidia.com on Mon, 23 Sep 2013 07:29:14 -0700 Received: from hqnvemgw02.nvidia.com (172.16.227.111) by HQEMHUB03.nvidia.com (172.20.150.15) with Microsoft SMTP Server id 8.3.327.1; Mon, 23 Sep 2013 07:32:46 -0700 Received: from sc-daphne.nvidia.com (Not Verified[172.20.232.60]) by hqnvemgw02.nvidia.com with MailMarshal (v7,1,2,5326) id ; Mon, 23 Sep 2013 07:32:46 -0700 Received: from tbergstrom-lnx.nvidia.com (tbergstrom-lnx.nvidia.com [10.21.24.170]) by sc-daphne.nvidia.com (8.13.8+Sun/8.8.8) with ESMTP id r8NEQsd4022607; Mon, 23 Sep 2013 07:32:44 -0700 (PDT) From: Peter De Schrijver To: Peter De Schrijver Subject: [PATCH v2 05/12] clk: tegra: add header for common tegra clock IDs Date: Mon, 23 Sep 2013 17:24:57 +0300 Message-ID: <1379946381-20125-6-git-send-email-pdeschrijver@nvidia.com> X-Mailer: git-send-email 1.7.7.rc0.72.g4b5ea.dirty In-Reply-To: <1379946381-20125-1-git-send-email-pdeschrijver@nvidia.com> References: <1379946381-20125-1-git-send-email-pdeschrijver@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130923_103308_631884_3D115DEC X-CRM114-Status: UNSURE ( 8.61 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -4.2 (----) Cc: Prashant Gaikwad , Mike Turquette , Stephen Warren , Thierry Reding , linux-kernel@vger.kernel.org, Paul Walmsley , Joseph Lo , linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-6.5 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 Many clocks are common between several Tegra SoCs. Define an enum to list them so we can move them to separate files which can be shared between SoCs. Each SoC specific file will provide an array with the common clocks which are present on the SoC and their DT binding ID. Signed-off-by: Peter De Schrijver --- drivers/clk/tegra/clk-id.h | 197 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 197 insertions(+), 0 deletions(-) create mode 100644 drivers/clk/tegra/clk-id.h diff --git a/drivers/clk/tegra/clk-id.h b/drivers/clk/tegra/clk-id.h new file mode 100644 index 0000000..b2a4d45 --- /dev/null +++ b/drivers/clk/tegra/clk-id.h @@ -0,0 +1,197 @@ +/* + * This header provides IDs for clocks common between several Tegra SoCs + */ + +#ifndef _TEGRA_CLK_ID_H +#define _TEGRA_CLK_ID_H + +enum clk_id { + tegra_clk_rtc, + tegra_clk_timer, + tegra_clk_uarta, + tegra_clk_uartd, + tegra_clk_sdmmc2, + tegra_clk_i2s1, + tegra_clk_i2c1, + tegra_clk_ndflash, + tegra_clk_sdmmc1, + tegra_clk_sdmmc4, + tegra_clk_pwm, + tegra_clk_i2s0, + tegra_clk_i2s2, + tegra_clk_epp, + tegra_clk_gr_2d, + tegra_clk_usbd, + tegra_clk_isp, + tegra_clk_gr_3d, + tegra_clk_disp2, + tegra_clk_disp1, + tegra_clk_host1x, + tegra_clk_vcp, + + tegra_clk_apbdma, + tegra_clk_kbc, + tegra_clk_kfuse, + tegra_clk_sbc1, + tegra_clk_nor, + tegra_clk_sbc2, + tegra_clk_sbc3, + tegra_clk_i2c5, + tegra_clk_dsia, + tegra_clk_mipi, + tegra_clk_hdmi, + tegra_clk_csi, + tegra_clk_i2c2, + tegra_clk_uartc, + tegra_clk_mipi_cal, + tegra_clk_emc, + tegra_clk_usb2, + tegra_clk_usb3, + tegra_clk_vde, + tegra_clk_bsea, + tegra_clk_bsev, + + tegra_clk_i2c3, + tegra_clk_sbc4, + tegra_clk_sdmmc3, + tegra_clk_owr, + tegra_clk_csite, + tegra_clk_la, + tegra_clk_trace, + tegra_clk_soc_therm, + tegra_clk_dtv, + tegra_clk_ndspeed, + tegra_clk_i2cslow, + tegra_clk_dsib, + tegra_clk_tsec, + tegra_clk_xusb_host, + tegra_clk_msenc, + tegra_clk_csus, + + tegra_clk_mselect, + tegra_clk_tsensor, + tegra_clk_i2s3, + tegra_clk_i2s4, + tegra_clk_i2c4, + tegra_clk_sbc5, + tegra_clk_sbc6, + tegra_clk_d_audio, + tegra_clk_apbif, + tegra_clk_dam0, + tegra_clk_dam1, + tegra_clk_dam2, + tegra_clk_hda2codec_2x, + tegra_clk_audio0_2x, + tegra_clk_audio1_2x, + tegra_clk_audio2_2x, + tegra_clk_audio3_2x, + tegra_clk_audio4_2x, + tegra_clk_spdif_2x, + tegra_clk_actmon, + tegra_clk_extern1, + tegra_clk_extern2, + tegra_clk_extern3, + tegra_clk_hda, + tegra_clk_se, + + tegra_clk_hda2hdmi, + tegra_clk_cilab, + tegra_clk_cilcd, + tegra_clk_cile, + tegra_clk_dsialp, + tegra_clk_dsiblp, + tegra_clk_dds, + tegra_clk_dp2, + tegra_clk_amx, + tegra_clk_adx, + tegra_clk_xusb_ss, + + tegra_clk_uartb, + tegra_clk_vfir, + tegra_clk_spdif_in, + tegra_clk_spdif_out, + tegra_clk_vi, + tegra_clk_vi_sensor, + tegra_clk_fuse, + tegra_clk_fuse_burn, + tegra_clk_clk_32k, + tegra_clk_clk_m, + tegra_clk_clk_m_div2, + tegra_clk_clk_m_div4, + tegra_clk_pll_ref, + tegra_clk_pll_c, + tegra_clk_pll_c_out1, + tegra_clk_pll_c2, + tegra_clk_pll_c3, + tegra_clk_pll_m, + tegra_clk_pll_m_out1, + tegra_clk_pll_p, + tegra_clk_pll_p_out1, + tegra_clk_pll_p_out2, + tegra_clk_pll_p_out3, + tegra_clk_pll_p_out4, + tegra_clk_pll_a, + tegra_clk_pll_a_out0, + tegra_clk_pll_d, + tegra_clk_pll_d_out0, + tegra_clk_pll_d2, + tegra_clk_pll_d2_out0, + tegra_clk_pll_u, + tegra_clk_pll_u_480m, + + tegra_clk_pll_u_60m, + tegra_clk_pll_u_48m, + tegra_clk_pll_u_12m, + tegra_clk_pll_x, + tegra_clk_pll_x_out0, + tegra_clk_pll_re_vco, + tegra_clk_pll_re_out, + tegra_clk_pll_e_out0, + tegra_clk_spdif_in_sync, + tegra_clk_i2s0_sync, + tegra_clk_i2s1_sync, + tegra_clk_i2s2_sync, + tegra_clk_i2s3_sync, + tegra_clk_i2s4_sync, + tegra_clk_vimclk_sync, + tegra_clk_audio0, + tegra_clk_audio1, + tegra_clk_audio2, + tegra_clk_audio3, + tegra_clk_audio4, + tegra_clk_spdif, + tegra_clk_clk_out_1, + tegra_clk_clk_out_2, + tegra_clk_clk_out_3, + tegra_clk_blink, + tegra_clk_xusb_host_src, + tegra_clk_xusb_falcon_src, + tegra_clk_xusb_fs_src, + tegra_clk_xusb_ss_src, + + tegra_clk_xusb_dev_src, + tegra_clk_xusb_dev, + tegra_clk_xusb_hs_src, + tegra_clk_sclk, + tegra_clk_hclk, + tegra_clk_pclk, + tegra_clk_cclk_g, + tegra_clk_cclk_lp, + tegra_clk_dfll_ref, + tegra_clk_dfll_soc, + + tegra_clk_audio0_mux, + tegra_clk_audio1_mux, + tegra_clk_audio2_mux, + tegra_clk_audio3_mux, + tegra_clk_audio4_mux, + tegra_clk_spdif_mux, + tegra_clk_clk_out_1_mux, + tegra_clk_clk_out_2_mux, + tegra_clk_clk_out_3_mux, + tegra_clk_dsia_mux, + tegra_clk_dsib_mux, + tegra_clk_max, +}; + +#endif /* _TEGRA_CLK_ID_H */