From patchwork Tue Sep 18 18:35:40 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Murali Karicheri X-Patchwork-Id: 1474251 Return-Path: X-Original-To: patchwork-davinci@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from arroyo.ext.ti.com (arroyo.ext.ti.com [192.94.94.40]) by patchwork1.kernel.org (Postfix) with ESMTP id 8C635400EC for ; Tue, 18 Sep 2012 18:37:46 +0000 (UTC) Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id q8IIbhrA012906 for ; Tue, 18 Sep 2012 13:37:45 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id q8IIbhmi010900 for ; Tue, 18 Sep 2012 13:37:43 -0500 Received: from dlelxv23.itg.ti.com (172.17.1.198) by dfle72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.1.323.3; Tue, 18 Sep 2012 13:37:43 -0500 Received: from linux.omap.com (dlelxs01.itg.ti.com [157.170.227.31]) by dlelxv23.itg.ti.com (8.13.8/8.13.8) with ESMTP id q8IIbhj9006613 for ; Tue, 18 Sep 2012 13:37:43 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 54DB58062A for ; Tue, 18 Sep 2012 13:37:43 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dlelxv30.itg.ti.com (dlelxv30.itg.ti.com [172.17.2.17]) by linux.omap.com (Postfix) with ESMTP id 1A04C80628 for ; Tue, 18 Sep 2012 13:35:47 -0500 (CDT) Received: from DLEE74.ent.ti.com (dlee74.ent.ti.com [157.170.170.8]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id q8IIZlqq006537; Tue, 18 Sep 2012 13:35:47 -0500 Received: from dlelxv22.itg.ti.com (172.17.1.197) by DLEE74.ent.ti.com (157.170.170.8) with Microsoft SMTP Server id 14.1.323.3; Tue, 18 Sep 2012 13:35:46 -0500 Received: from ares-ubuntu.am.dhcp.ti.com (ares-ubuntu.am.dhcp.ti.com [158.218.103.17]) by dlelxv22.itg.ti.com (8.13.8/8.13.8) with ESMTP id q8IIZkNx007559; Tue, 18 Sep 2012 13:35:46 -0500 Received: from a0868495 by ares-ubuntu.am.dhcp.ti.com with local (Exim 4.76) (envelope-from ) id 1TE2eA-0001bl-CZ; Tue, 18 Sep 2012 14:35:46 -0400 From: Murali Karicheri To: , , , , , , , Subject: [RFC PATCH 07/10] ARM:davinci - adding new type for cpu_clks in soc_info Date: Tue, 18 Sep 2012 14:35:40 -0400 Message-ID: <1347993342-6099-8-git-send-email-m-karicheri2@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1347993342-6099-1-git-send-email-m-karicheri2@ti.com> References: <1347993342-6099-1-git-send-email-m-karicheri2@ti.com> MIME-Version: 1.0 X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: Errors-To: davinci-linux-open-source-bounces+patchwork-davinci=patchwork.kernel.org@linux.davincidsp.com To define the clock nodes available on a SoC, a new structure is defined that will be used by SoC specific code to define the clock table. This table is used by davinci_common_clk_init() to initialize the clk drivers. Also added a new field dev_clk_lookups to define clock aliases for devices that share same clocks. Signed-off-by: Murali Karicheri diff --git a/arch/arm/mach-davinci/include/mach/common.h b/arch/arm/mach-davinci/include/mach/common.h index bdc4aa8..8abee09 100644 --- a/arch/arm/mach-davinci/include/mach/common.h +++ b/arch/arm/mach-davinci/include/mach/common.h @@ -54,7 +54,12 @@ struct davinci_soc_info { u32 jtag_id_reg; struct davinci_id *ids; unsigned long ids_num; +#ifdef CONFIG_COMMON_CLK + struct davinci_clk_lookup *cpu_clks; + struct davinci_dev_lookup *dev_clk_lookups; +#else struct clk_lookup *cpu_clks; +#endif u32 *psc_bases; unsigned long psc_bases_num; u32 pinmux_base;