From patchwork Tue Feb 21 20:11:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9585527 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 73B7D602A7 for ; Tue, 21 Feb 2017 20:12:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5577C2856B for ; Tue, 21 Feb 2017 20:12:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4663B28574; Tue, 21 Feb 2017 20:12:27 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DCCB32856B for ; Tue, 21 Feb 2017 20:12:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:Message-ID:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=T7okFKt8CnUS4xmObyKahZD5YKDIPQ/yLiJvMCF3DBo=; b=spQsb9C4oW8Paf D5uI0OWQlkmh0cpppoQFgPoJou8veLcMSWDuRbTw5/8s6hP9JkAU5vaewc7fYwYdckHZNFy75Pral pm8xQ3XqORYoQfAHvJV9WnazIgSYA+nd4286iokYclCCqRLc/1o8XVs6bQwjA5zLXAHoYlB8MMM1i KKDzW1qKOusjp4ciQroTjGWBgfLWVkddvrmGsKVbc2YDw+WJM0J1nNl6qRWSRkVuXq9Z8uRfBbdne HFdgBGsGmP3gZng2qZs6jt+53egMl3QDMScMW0OLCgY/jLlhrhMimb5FjLYKMrPZxVPEH0S5Lyugp 10EAub7LdwokF50/F/wg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cgGnI-0005Mc-KS; Tue, 21 Feb 2017 20:12:16 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cgGnE-0005Gm-40 for linux-amlogic@lists.infradead.org; Tue, 21 Feb 2017 20:12:14 +0000 Received: by mail-wm0-x241.google.com with SMTP id c85so21650860wmi.1 for ; Tue, 21 Feb 2017 12:11:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=IusqXq8vn6ACYTWdd9IWZPZigVAxUgoHvBQ0zbbVkDQ=; b=LoDxutXhZUZvb7l/CdhN/c0MBnuiQ4xn1/mGzVZzhbrboJyDE1VEOXZHhxMwynU6WN GjFqlvtwWN54s0Z3mMQU7uQoZYM2/ANQ0UmvxoakKmW/gLRh/k7krgLP0EFX0H3aLgGM f9hHRT54/lUjoaVZoKmNPyIfpIW659SsiPqZyPoYb3SJNx4GOMYH663GL2t752UeUikm h1I/eCO9pkfpcR8HTjlQJ0ljzaWoCOvcY6sd+jrIAnda3HRIryOhJkDuRhagqODbfcMA J+Ktj6g5EUnK3aCXNL/xx4nuoZBbIWKzNy7Py9YXHQ63K3q7VcDmIqQQSuc4jZVp5nwm rcew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=IusqXq8vn6ACYTWdd9IWZPZigVAxUgoHvBQ0zbbVkDQ=; b=a2EUwDZzt/LO9apxjDQx/NtE6Lto4BODzvt/v5iqeWGV5s+uy4EKm+isdJ2boSuMhj 1XIJG+SAEJd2Nv14yvRnkhFKWeEhkf/eJscimubV7D6NFIrwB4HVUzD2DWJUxIDsDDI5 IPGdK5gNm/VDnZBC5NAgvk0jsomYU3bg3bzlBCdce3ZAYr5BLabtdm02GxZBsbL3Y43y 3G/6wZ2RpaDerBdv79R9piXd5pRCvRTZQgUATujVDUSD4Jn1zdm/GaYPtsiamhX7BZaL peDiS6wqPIjGEQx9wzw37Ql9DJW48RbiD7zJwn5w7V+Ne8ogwU4kJH1amSqrsOHsdtvw z7OA== X-Gm-Message-State: AMke39n7so4JAYhdiFLr+ZWUDKz7eq8UL70oqPQolroVj3tiATU5uWFigHBDbTAq1/Y1Og== X-Received: by 10.28.139.134 with SMTP id n128mr28567736wmd.125.1487707909779; Tue, 21 Feb 2017 12:11:49 -0800 (PST) Received: from ?IPv6:2003:c6:ebdc:4000:bd34:27cb:45ef:f408? (p200300C6EBDC4000BD3427CB45EFF408.dip0.t-ipconnect.de. [2003:c6:ebdc:4000:bd34:27cb:45ef:f408]) by smtp.googlemail.com with ESMTPSA id y1sm18804322wme.15.2017.02.21.12.11.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Feb 2017 12:11:49 -0800 (PST) From: Heiner Kallweit To: Jerome Brunet , Kevin Hilman , Herbert Xu , Neil Armstrong , linux-amlogic@lists.infradead.org, linux-crypto@vger.kernel.org, Stephen Boyd , Michael Turquette Subject: [PATCH v2 1/3] clk: meson-gxbb: expose clock CLKID_RNG0 Message-ID: Date: Tue, 21 Feb 2017 21:11:38 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170221_121212_349135_67EA471B X-CRM114-Status: UNSURE ( 7.86 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-clk@vger.kernel.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.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 --- 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 --- 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