From patchwork Wed Feb 22 06:55:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9586257 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 47AF1600CA for ; Wed, 22 Feb 2017 06:55:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 24D3B28684 for ; Wed, 22 Feb 2017 06:55:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 15A8528688; Wed, 22 Feb 2017 06:55:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A75C28684 for ; Wed, 22 Feb 2017 06:55:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753257AbdBVGzg (ORCPT ); Wed, 22 Feb 2017 01:55:36 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35408 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751349AbdBVGzf (ORCPT ); Wed, 22 Feb 2017 01:55:35 -0500 Received: by mail-wm0-f67.google.com with SMTP id u63so646471wmu.2; Tue, 21 Feb 2017 22:55:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=H8mbt45UgxdCD5gOXUwiixC6Mrd6kgIWMYTbSdOdGLI=; b=Wqw5mmvE6XeNSZ9Cxgze8ZsyMx4jEe2CzkT6A5qyQahwH0WVFBuyHK0k5PoBXXcuo3 bwcy0K2IFmJB0vaSrp/rR5MDlA/Z/m1RPAmIgToBtdw8VjqWjm+IATgKiEyAkNfvnZg6 cQ3yp4BrDgyzK35pKFKE7qhjmxwm0cKuaUa332ziMmmMfIa2u1k8dSSi2R9DIMVf1tLt +kv/VpFpMulkGQ7tsgW5PKlWeB84QjM63M18KxCtal5logMeaViB2RQlEVLRbEy0P0da R+VX7Szp2WIIe/H2x9RkTxftxxOukU5UObvRXbeZBGvKpii8KNkQyI1dua/MS8cn143g QOwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=H8mbt45UgxdCD5gOXUwiixC6Mrd6kgIWMYTbSdOdGLI=; b=Z2JFAbwiE4AwpOUnv+4AXZlTXWAr5R1n46tcDLJ+D3jTqoY7W6QlRGy2vKbna6E9Sv 3aPSMe46NVgrrpdctvjbGaqBo6gLUe+eD427fM93XHoSNpdTGQ0Y12q7x/jeoVux/h6W 0luY7qW3F5sAKdTGvi127FMbSmqxrxeWV9KW0AdEpqEfVL78ykoEVvRY2/9VAMAvI9P9 T3k01qnjrEOwT6KaGyrmzHtiWrEi6BSLOMwIE2bjxXEphnDl9S7LZSYo96/FaYUm9ZE6 s4R5jpr0xPDIZung7v3/07Aqbh7dQW5DMQHp9xNNTZWtnXSTb5JVn8P5meWOqsXY6oGZ hMIA== X-Gm-Message-State: AMke39ksuYoIlydZgHn6mUB3Ty+aIRuXjSNgHyjLuwV+LWIa/TVNv+UPc/Ufup47nvLtdw== X-Received: by 10.28.183.5 with SMTP id h5mr864236wmf.39.1487746533609; Tue, 21 Feb 2017 22:55:33 -0800 (PST) Received: from ?IPv6:2003:c6:ebdc:4000:4dac:58d5:169c:6ecb? (p200300C6EBDC40004DAC58D5169C6ECB.dip0.t-ipconnect.de. [2003:c6:ebdc:4000:4dac:58d5:169c:6ecb]) by smtp.googlemail.com with ESMTPSA id b51sm456963wrd.39.2017.02.21.22.55.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Feb 2017 22:55:33 -0800 (PST) From: Heiner Kallweit Subject: [PATCH v3 1/3] clk: meson-gxbb: expose clock CLKID_RNG0 To: Jerome Brunet , Kevin Hilman , Herbert Xu , Neil Armstrong , linux-amlogic@lists.infradead.org, linux-crypto@vger.kernel.org, Stephen Boyd , Michael Turquette Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org Message-ID: <4e2d12e5-f75b-3ac6-a3f7-18e8a8b7283b@gmail.com> Date: Wed, 22 Feb 2017 07:55:24 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Expose clock CLKID_RNG0 which is needed for the HW random number generator. Signed-off-by: Heiner Kallweit Reviewed-by: Neil Armstrong --- v2: - added clk and DT maintainers - split exposing the clock and using it in DT into two patches - comment out clock definition in drivers/clk/meson/gxbb.h - silently move CLKID_SPI to the right place v3: - no changes --- drivers/clk/meson/gxbb.h | 2 +- include/dt-bindings/clock/gxbb-clkc.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/clk/meson/gxbb.h b/drivers/clk/meson/gxbb.h index 8ee2022c..cbd62e46 100644 --- a/drivers/clk/meson/gxbb.h +++ b/drivers/clk/meson/gxbb.h @@ -193,7 +193,7 @@ /* CLKID_I2C */ /* #define CLKID_SAR_ADC */ #define CLKID_SMART_CARD 24 -#define CLKID_RNG0 25 +/* CLKID_RNG0 */ #define CLKID_UART0 26 #define CLKID_SDHC 27 #define CLKID_STREAM 28 diff --git a/include/dt-bindings/clock/gxbb-clkc.h b/include/dt-bindings/clock/gxbb-clkc.h index 692846c7..63f4c2c4 100644 --- a/include/dt-bindings/clock/gxbb-clkc.h +++ b/include/dt-bindings/clock/gxbb-clkc.h @@ -12,9 +12,10 @@ #define CLKID_FCLK_DIV4 6 #define CLKID_CLK81 12 #define CLKID_MPLL2 15 -#define CLKID_SPI 34 #define CLKID_I2C 22 #define CLKID_SAR_ADC 23 +#define CLKID_RNG0 25 +#define CLKID_SPI 34 #define CLKID_ETH 36 #define CLKID_USB0 50 #define CLKID_USB1 51