From patchwork Fri Oct 13 10:22:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 115730 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp560614qgn; Fri, 13 Oct 2017 03:28:11 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBIutVuH5YSW5KZvbT/vq7qlSp3ppBk6HssgCZfBDd2Zu96PFwqxFf34mTXU8JDln1qKvgt X-Received: by 10.80.244.2 with SMTP id r2mr1533835edm.26.1507890491644; Fri, 13 Oct 2017 03:28:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507890491; cv=none; d=google.com; s=arc-20160816; b=M+sTwSAeSPkzTj7IZjFJnt/OvepstgLiyC+SHQtIxrungmOz0y6V6EuOvqM2hVfUDa H36tN0GQQX90O5OSQ5mopbD/xNKciGdHkqiyUEZjfaSnXKNn6z05qr8VkAM18k5a5Wi5 GXnKu5XDVAva2tOrVNh35CRV15L/XUcDrcpOSxMLHjuReNiz9bvZm+ryxM6Ppt+d1MKc 7oLWDS4tTWJzN0OSaHsbS3AeETFIdL36zX/LEkzmKPi4U1j5wlPJMEBOE5cH/KMx6hie 8fguctnQ8/wM1prA5crb+Lx5y6jU7z3RNAjKCz6c69au4s8xSDfozZEuiNfnE9FhMMpk OQSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:dkim-filter:arc-authentication-results; bh=+SuRQ/Y6XKx8q0aGeQATjfBbO6Aq6GCh3dRTojDRWZ4=; b=YtinCSFWEVGPLdRQr4Sa2Vxm0ocS8T9r/B+8GErc4WgJJWdK2R4DNJ2PpmSPObM1yZ QRSwoz/LyiUe92XiyD/8cA1risO6TpcPqlVHwnVt0wxKD8uQedQ/zBXpeQPbh6M5EXN/ 2YQHD4VwWC78xvP4kaRPBP6dRy3p15gLRyTaFnUn/TeKV0itfSMYi+WcLXZdEZeXDSxp CigskeH4YiiasSsz9SMn9SYVzMwElUXzF7vBP45CqHKdHlxScsE7jfFGeyr0Su20CYiO hxKbGLpP8LfrOOHdFm0C3uc8Yj9gOJVPiPnMKzJgwdtjdYf0FOzBr3hnck1K3ySkPOBI rnNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=JS3VgZgu; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id o35si709735edd.385.2017.10.13.03.28.11; Fri, 13 Oct 2017 03:28:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=JS3VgZgu; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 369F6C21F61; Fri, 13 Oct 2017 10:23:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id F0CEFC21F61; Fri, 13 Oct 2017 10:22:43 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B6204C21C46; Fri, 13 Oct 2017 10:22:40 +0000 (UTC) Received: from conuserg-12.nifty.com (conuserg-12.nifty.com [210.131.2.79]) by lists.denx.de (Postfix) with ESMTPS id 92D5DC21D82 for ; Fri, 13 Oct 2017 10:22:39 +0000 (UTC) Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-12.nifty.com with ESMTP id v9DAMGxE009903; Fri, 13 Oct 2017 19:22:22 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com v9DAMGxE009903 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1507890142; bh=N43gOk6kVck11dHmYJJaorJURucKDo6Aesf0gWVhscs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JS3VgZguYWV+h0007Q6kJ0jC8FWn+D2RULKNyRGSTPVGUNjn8LlTOiPBjePAptUOA kZouyEbcHxuVS3l4jhigGD2HSoDU29xpUe0565PskGzq0Ubw43XFKEujZYrSbUh7xd gSynHo70VvjllScsno21BLk8jNiORTss/m6QD5UWVdOmmwp51Bwvn89c5iCeIMonL2 YOiLgpn32T6wcs+nVzlv8rjPSctZo2H32cj/sJycB/JRKi9HUlp5Mg+PDzY7PjATJY pqX7STrdJ8kSaoiwSndPaFoNtsn0Tpumpni+kPhKsu5sBFzgduMgNpVu5lNKqTGxgH jTCrCGGtTOU7Q== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Fri, 13 Oct 2017 19:22:00 +0900 Message-Id: <1507890129-1543-12-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507890129-1543-1-git-send-email-yamada.masahiro@socionext.com> References: <1507890129-1543-1-git-send-email-yamada.masahiro@socionext.com> Subject: [U-Boot] [PATCH 11/20] clk: uniphier: add PXs3 clock data X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Add basic clock data for Socionext's new SoC PXs3. Signed-off-by: Masahiro Yamada --- drivers/clk/uniphier/clk-uniphier-core.c | 8 ++++++++ drivers/clk/uniphier/clk-uniphier-sys.c | 14 ++++++++++++++ drivers/clk/uniphier/clk-uniphier.h | 1 + 3 files changed, 23 insertions(+) diff --git a/drivers/clk/uniphier/clk-uniphier-core.c b/drivers/clk/uniphier/clk-uniphier-core.c index 3d1d411..9a7d03a 100644 --- a/drivers/clk/uniphier/clk-uniphier-core.c +++ b/drivers/clk/uniphier/clk-uniphier-core.c @@ -296,6 +296,10 @@ static const struct udevice_id uniphier_clk_match[] = { .compatible = "socionext,uniphier-ld20-clock", .data = (ulong)uniphier_ld20_sys_clk_data, }, + { + .compatible = "socionext,uniphier-pxs3-clock", + .data = (ulong)uniphier_pxs3_sys_clk_data, + }, /* Media I/O clock */ { .compatible = "socionext,uniphier-ld4-mio-clock", @@ -325,6 +329,10 @@ static const struct udevice_id uniphier_clk_match[] = { .compatible = "socionext,uniphier-ld20-sd-clock", .data = (ulong)uniphier_mio_clk_data, }, + { + .compatible = "socionext,uniphier-pxs3-sd-clock", + .data = (ulong)uniphier_mio_clk_data, + }, { /* sentinel */ } }; diff --git a/drivers/clk/uniphier/clk-uniphier-sys.c b/drivers/clk/uniphier/clk-uniphier-sys.c index e9df885..f8cf6da 100644 --- a/drivers/clk/uniphier/clk-uniphier-sys.c +++ b/drivers/clk/uniphier/clk-uniphier-sys.c @@ -30,3 +30,17 @@ const struct uniphier_clk_data uniphier_ld20_sys_clk_data[] = { { /* sentinel */ } #endif }; + +const struct uniphier_clk_data uniphier_pxs3_sys_clk_data[] = { +#if defined(CONFIG_ARCH_UNIPHIER_PXS3) + UNIPHIER_CLK_GATE_SIMPLE(12, 0x210c, 4), /* usb30 (gio0) */ + UNIPHIER_CLK_GATE_SIMPLE(13, 0x210c, 5), /* usb31-0 (gio1) */ + UNIPHIER_CLK_GATE_SIMPLE(14, 0x210c, 6), /* usb31-1 (gio1-1) */ + UNIPHIER_CLK_GATE_SIMPLE(16, 0x210c, 16), /* usb30-phy0 */ + UNIPHIER_CLK_GATE_SIMPLE(17, 0x210c, 18), /* usb30-phy1 */ + UNIPHIER_CLK_GATE_SIMPLE(18, 0x210c, 20), /* usb30-phy2 */ + UNIPHIER_CLK_GATE_SIMPLE(20, 0x210c, 17), /* usb31-phy0 */ + UNIPHIER_CLK_GATE_SIMPLE(21, 0x210c, 19), /* usb31-phy1 */ + { /* sentinel */ } +#endif +}; diff --git a/drivers/clk/uniphier/clk-uniphier.h b/drivers/clk/uniphier/clk-uniphier.h index 9b6c94f..77ebae1 100644 --- a/drivers/clk/uniphier/clk-uniphier.h +++ b/drivers/clk/uniphier/clk-uniphier.h @@ -73,6 +73,7 @@ struct uniphier_clk_data { extern const struct uniphier_clk_data uniphier_pxs2_sys_clk_data[]; extern const struct uniphier_clk_data uniphier_ld20_sys_clk_data[]; +extern const struct uniphier_clk_data uniphier_pxs3_sys_clk_data[]; extern const struct uniphier_clk_data uniphier_mio_clk_data[]; #endif /* __CLK_UNIPHIER_H__ */