From patchwork Wed May 11 18:21:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alexander_M=C3=BCller?= X-Patchwork-Id: 9073831 X-Patchwork-Delegate: sboyd@codeaurora.org Return-Path: X-Original-To: patchwork-linux-clk@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 47B1EBF29F for ; Wed, 11 May 2016 18:21:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D72092012D for ; Wed, 11 May 2016 18:21:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4E0CE2012B for ; Wed, 11 May 2016 18:21:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751632AbcEKSVY (ORCPT ); Wed, 11 May 2016 14:21:24 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:33877 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932080AbcEKSVN (ORCPT ); Wed, 11 May 2016 14:21:13 -0400 Received: by mail-wm0-f66.google.com with SMTP id n129so11118520wmn.1 for ; Wed, 11 May 2016 11:21:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=5ceaoCAFw24lYTcCQQbSRtcq7Y424Fb75yfQsjCALW4=; b=PgmYrbTAHm/bMenAHhXY0QL2IMfRu6dEcA6DZfK6IXdBcf++WEy8eai1ZhQmuMWkjo cdDPBSfydUXmyIayY4DW3ybj/8S/OlXoHKd1VPFjev83H+5ZRKf1DvKkFetWBhiQnBV5 acl3f8CKfO19frKvHEEZMLxOnkCErembuUPVklUgJmox9/RCGA7VCGhMHiotp1UH5u2f p8LNVB4ZdglyCs0tTvejkPIXa0d+bNPnEo8hyPyMvhx99ES9xFKc1IqpvAn5xBeDCMbW hIw0dqtWUly6r+LmXLavLlirMa0aSGtggBiaV6fNqwZV1rwDBr8sG/XlHqA/K65T//YL QKKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5ceaoCAFw24lYTcCQQbSRtcq7Y424Fb75yfQsjCALW4=; b=LFV2fsYyA4FPGbuMAckkWaBovIN8BZ/QcwEdDEn/O7k7iXdZVKVYUzDyS/xLF+Psoj vmZdbQKnwXlQp8VzXeU0W075KKhRS66gP1xcjj/wzgsMP+kOwFpj658ccEfgQbF1R4Ns 7sY1s33MTUCmvsKPIbFiE0cEDy3gfS4MclPRFts9MGXVx5arEoEeTmLjOh84wt7JpBFd zPBxwqHAxmRnff7m/zeypMhag4CnZFt4/7YYg3amkw8BPqnau0CpzcV3MiYsUrl7VHDU SDxEqDRtgsSnfRw+jwtfXh3FJ02RVavg+Q+/EU4sxCAKBiAQPYFtv3EsZl5HO440h+wA KENQ== X-Gm-Message-State: AOPr4FU9AG1E4Q+waRTSlH6d/53Y/70VjN6fxuuP5OZIMUm6e52st56EvxTy/iuL4CJugg== X-Received: by 10.28.9.137 with SMTP id 131mr5823999wmj.13.1462990871974; Wed, 11 May 2016 11:21:11 -0700 (PDT) Received: from ubuntu.fritz.box (p4FFB9FFD.dip0.t-ipconnect.de. [79.251.159.253]) by smtp.gmail.com with ESMTPSA id a200sm37239653wme.8.2016.05.11.11.21.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 May 2016 11:21:11 -0700 (PDT) From: =?UTF-8?q?Alexander=20M=C3=BCller?= To: mturquette@baylibre.com, linux-clk@vger.kernel.org Subject: [PATCH 2/2] ARM: clk: Amlogic: Add clk81 clock gates Date: Wed, 11 May 2016 20:21:05 +0200 Message-Id: <1462990865-22651-3-git-send-email-serveralex@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1462990865-22651-1-git-send-email-serveralex@gmail.com> References: <1462990865-22651-1-git-send-email-serveralex@gmail.com> MIME-Version: 1.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY,UPPERCASE_50_75 autolearn=ham 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 Add the clk81 clock gates and make them configurable via devicetree. Signed-off-by: Alexander Müller --- drivers/clk/meson/meson8b-clkc.c | 196 +++++++++++++++++++++++++++++++ include/dt-bindings/clock/meson8b-clkc.h | 99 +++++++++++++++- 2 files changed, 293 insertions(+), 2 deletions(-) diff --git a/drivers/clk/meson/meson8b-clkc.c b/drivers/clk/meson/meson8b-clkc.c index 61f6d55..cb8148c 100644 --- a/drivers/clk/meson/meson8b-clkc.c +++ b/drivers/clk/meson/meson8b-clkc.c @@ -26,6 +26,9 @@ #define MESON8B_REG_CTL0_ADDR 0x0000 #define MESON8B_REG_SYS_CPU_CNTL1 0x015c +#define MESON8B_REG_HHI_GCLK_MPEG0 0x0140 +#define MESON8B_REG_HHI_GCLK_MPEG1 0x0144 +#define MESON8B_REG_HHI_GCLK_MPEG2 0x0148 #define MESON8B_REG_HHI_MPEG 0x0174 #define MESON8B_REG_MALI 0x01b0 #define MESON8B_REG_PLL_FIXED 0x0280 @@ -108,6 +111,7 @@ PNAME(p_cpu_clk) = { "sys_pll" }; PNAME(p_clk81) = { "fclk_div3", "fclk_div4", "fclk_div5" }; PNAME(p_mali) = { "fclk_div3", "fclk_div4", "fclk_div5", "fclk_div7", "zero" }; +PNAME(p_clk81_gate) = { "clk81" }; static u32 mux_table_clk81[] = { 6, 5, 7 }; static u32 mux_table_mali[] = { 6, 5, 7, 4, 0 }; @@ -163,6 +167,198 @@ static const struct clk_conf meson8b_clk_confs[] __initconst = { CLK_SET_RATE_NO_REPARENT | CLK_IGNORE_UNUSED, &clk81_conf), COMPOSITE(MESON8B_REG_MALI, CLKID_MALI, "mali", p_mali, CLK_IGNORE_UNUSED, &mali_conf), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_DDR, "ddr", p_clk81_gate, + CLK_IGNORE_UNUSED, 0), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_DOS, "dos", p_clk81_gate, + CLK_IGNORE_UNUSED, 1), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_RESERVED0_0, "reserved0_0", + p_clk81_gate, CLK_IGNORE_UNUSED, 2), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_RESERVED0_1, "reserved0_1", + p_clk81_gate, CLK_IGNORE_UNUSED, 3), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_AHB_BRIDGE, "ahb_bridge", + p_clk81_gate, CLK_IGNORE_UNUSED, 4), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_ISA, "isa", p_clk81_gate, + CLK_IGNORE_UNUSED, 5), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_PL310_CBUS, "pl310_cbus", + p_clk81_gate, CLK_IGNORE_UNUSED, 6), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_PPERIPHS_TOP, "pperiphs_top", + p_clk81_gate, CLK_IGNORE_UNUSED, 7), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_SPICC, "spicc", p_clk81_gate, + CLK_IGNORE_UNUSED, 8), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_I2C, "i2c", p_clk81_gate, + CLK_IGNORE_UNUSED, 9), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_SAR_ADC, "sar_adc", p_clk81_gate, + CLK_IGNORE_UNUSED, 10), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_SMART_CARD_MPEG_DOMAIN, + "smart_card_mpeg_domain", p_clk81_gate, CLK_IGNORE_UNUSED, 11), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_RANDOM_NUM_GEN, "random_num_gen", + p_clk81_gate, CLK_IGNORE_UNUSED, 12), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_UART0, "uart0", p_clk81_gate, + CLK_IGNORE_UNUSED, 13), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_SDHC, "sdhc", p_clk81_gate, + CLK_IGNORE_UNUSED, 14), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_STREAM, "stream", p_clk81_gate, + CLK_IGNORE_UNUSED, 15), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_ASYNC_FIFO, "async_fifo", + p_clk81_gate, CLK_IGNORE_UNUSED, 16), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_SDIO, "sdio", p_clk81_gate, + CLK_IGNORE_UNUSED, 17), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_AUD_BUF, "auf_buf", p_clk81_gate, + CLK_IGNORE_UNUSED, 18), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_HIU_PARSER, "hiu_parser", + p_clk81_gate, CLK_IGNORE_UNUSED, 19), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_RESERVED0_2, "reserved0_2", + p_clk81_gate, CLK_IGNORE_UNUSED, 20), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_RESERVED0_3, "reserved0_3", + p_clk81_gate, CLK_IGNORE_UNUSED, 21), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_RESERVED0_4, "reserved0_4", + p_clk81_gate, CLK_IGNORE_UNUSED, 22), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_ASSIST_MISC, "assist_misc", + p_clk81_gate, CLK_IGNORE_UNUSED, 23), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_RESERVED0_5, "reserved0_5", + p_clk81_gate, CLK_IGNORE_UNUSED, 24), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_RESERVED0_6, "reserved0_6", + p_clk81_gate, CLK_IGNORE_UNUSED, 25), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_RESERVED0_7, "reserved0_7", + p_clk81_gate, CLK_IGNORE_UNUSED, 26), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_RESERVED0_8, "reserved0_8", + p_clk81_gate, CLK_IGNORE_UNUSED, 27), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_RESERVED0_9, "reserved0_9", + p_clk81_gate, CLK_IGNORE_UNUSED, 28), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_RESERVED0_A, "reserved0_a", + p_clk81_gate, CLK_IGNORE_UNUSED, 29), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_SPI, "api", p_clk81_gate, + CLK_IGNORE_UNUSED, 30), + GATE(MESON8B_REG_HHI_GCLK_MPEG0, CLKID_RESERVED0_B, "reserved0_b", + p_clk81_gate, CLK_IGNORE_UNUSED, 31), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_RESERVED1_1, "reserved1_1", + p_clk81_gate, CLK_IGNORE_UNUSED, 0), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_RESERVED1_2, "reserved1_2", + p_clk81_gate, CLK_IGNORE_UNUSED, 1), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_AUD_IN, "aud_in", p_clk81_gate, + CLK_IGNORE_UNUSED, 2), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_ETHERNET, "ethernet", + p_clk81_gate, CLK_IGNORE_UNUSED, 3), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_DEMUX, "demux", p_clk81_gate, + CLK_IGNORE_UNUSED, 4), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_RESERVED1_3, "reserved1_3", + p_clk81_gate, CLK_IGNORE_UNUSED, 5), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_AIU_AI_TOP_GLUE, + "aiu_ai_top_glue", p_clk81_gate, CLK_IGNORE_UNUSED, 6), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_AIU_IEC958, "aiu_iec958", + p_clk81_gate, CLK_IGNORE_UNUSED, 7), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_AIU_I2S_OUT, "aiu_i2s_out", + p_clk81_gate, CLK_IGNORE_UNUSED, 8), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_AIU_AMCLK_MEASURE, + "aiu_amclk_measure", p_clk81_gate, CLK_IGNORE_UNUSED, 9), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_AIU_AIFIFO2, "aiu_aififo2", + p_clk81_gate, CLK_IGNORE_UNUSED, 10), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_AIU_AUD_MIXER, "aiu_aud_mixer", + p_clk81_gate, CLK_IGNORE_UNUSED, 11), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_AIU_MIXER_REG, "aiu_mixer_reg", + p_clk81_gate, CLK_IGNORE_UNUSED, 12), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_AIU_ADC, "aiu_adc", + p_clk81_gate, CLK_IGNORE_UNUSED, 13), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_BLK_MOV, "blk_mov", + p_clk81_gate, CLK_IGNORE_UNUSED, 14), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_AIU_TOP_LEVEL, "aiu_top_level", + p_clk81_gate, CLK_IGNORE_UNUSED, 15), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_UART1, "uart1", p_clk81_gate, + CLK_IGNORE_UNUSED, 16), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_RESERVED1_4, "reserved1_4", + p_clk81_gate, CLK_IGNORE_UNUSED, 17), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_RESERVED1_5, "reserved1_5", + p_clk81_gate, CLK_IGNORE_UNUSED, 18), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_RESERVED1_6, "reserved1_6", + p_clk81_gate, CLK_IGNORE_UNUSED, 19), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_GE2D, "ge2d", p_clk81_gate, + CLK_IGNORE_UNUSED, 20), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_USB0, "usb0", p_clk81_gate, + CLK_IGNORE_UNUSED, 21), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_USB1, "usb1", p_clk81_gate, + CLK_IGNORE_UNUSED, 22), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_RESET, "reset", p_clk81_gate, + CLK_IGNORE_UNUSED, 23), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_NAND, "nand", p_clk81_gate, + CLK_IGNORE_UNUSED, 24), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_HIU_PARSER_TOP, + "hiu_parser_top", p_clk81_gate, CLK_IGNORE_UNUSED, 25), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_USB_GENERAL, "usb_general", + p_clk81_gate, CLK_IGNORE_UNUSED, 26), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_RESERVED1_7, "reserved1_7", + p_clk81_gate, CLK_IGNORE_UNUSED, 27), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_VDIN1, "vdin1", p_clk81_gate, + CLK_IGNORE_UNUSED, 28), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_AHB_ARB0, "ahb_arb0", + p_clk81_gate, CLK_IGNORE_UNUSED, 29), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_EFUSE, "efuse", p_clk81_gate, + CLK_IGNORE_UNUSED, 30), + GATE(MESON8B_REG_HHI_GCLK_MPEG1, CLKID_ROM_CLK, "rom_clk", + p_clk81_gate, CLK_IGNORE_UNUSED, 31), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_RESERVED2_0, "reserved2_0", + p_clk81_gate, CLK_IGNORE_UNUSED, 0), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_AHB_DATA_BUS, "ahb_data_bus", + p_clk81_gate, CLK_IGNORE_UNUSED, 1), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_AHB_CONTROL_BUS, + "ahb_control_bus", p_clk81_gate, CLK_IGNORE_UNUSED, 2), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_HDMI_INTR_SYNC, + "hdmi_intr_sync", p_clk81_gate, CLK_IGNORE_UNUSED, 3), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_HDMI_PCLK, "hdmi_pclk", + p_clk81_gate, CLK_IGNORE_UNUSED, 4), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_RESERVED2_1, "reserved2_1", + p_clk81_gate, CLK_IGNORE_UNUSED, 5), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_RESERVED2_2, "reserved2_2", + p_clk81_gate, CLK_IGNORE_UNUSED, 6), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_RESERVED2_3, "reserved2_3", + p_clk81_gate, CLK_IGNORE_UNUSED, 7), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_MISC_USB1_TO_DDR, + "misc_usb1_to_ddr", p_clk81_gate, CLK_IGNORE_UNUSED, 8), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_MISC_USB0_TO_DDR, + "misc_usb0_to_ddr", p_clk81_gate, CLK_IGNORE_UNUSED, 9), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_RESERVED2_4, "reserved2_4", + p_clk81_gate, CLK_IGNORE_UNUSED, 10), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_MMC_PCLK, "mmc_pclk", + p_clk81_gate, CLK_IGNORE_UNUSED, 11), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_MISC_DVIN, "misc_dvin", + p_clk81_gate, CLK_IGNORE_UNUSED, 12), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_RESERVED2_5, "reserved2_5", + p_clk81_gate, CLK_IGNORE_UNUSED, 13), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_RESERVED2_6, "reserved2_6", + p_clk81_gate, CLK_IGNORE_UNUSED, 14), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_UART2, "uart2", p_clk81_gate, + CLK_IGNORE_UNUSED, 15), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_RESERVED2_7, "reserved2_7", + p_clk81_gate, CLK_IGNORE_UNUSED, 16), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_RESERVED2_8, "reserved2_8", + p_clk81_gate, CLK_IGNORE_UNUSED, 17), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_RESERVED2_9, "reserved2_9", + p_clk81_gate, CLK_IGNORE_UNUSED, 18), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_RESERVED2_A, "reserved2_a", + p_clk81_gate, CLK_IGNORE_UNUSED, 19), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_RESERVED2_B, "reserved2_b", + p_clk81_gate, CLK_IGNORE_UNUSED, 20), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_RESERVED2_C, "reserved2_c", + p_clk81_gate, CLK_IGNORE_UNUSED, 21), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_SANA, "sana", p_clk81_gate, + CLK_IGNORE_UNUSED, 22), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_RESERVED2_D, "reserved2_d", + p_clk81_gate, CLK_IGNORE_UNUSED, 23), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_RESERVED2_E, "reserved2_e", + p_clk81_gate, CLK_IGNORE_UNUSED, 24), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_VPU_INTR, "vpu_intr", + p_clk81_gate, CLK_IGNORE_UNUSED, 25), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_SECURE_AHP_APB3, + "secure_ahp_apb3", p_clk81_gate, CLK_IGNORE_UNUSED, 26), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_RESERVED2_F, "reserved2_f", + p_clk81_gate, CLK_IGNORE_UNUSED, 27), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_RESERVED2_10, "reserved2_10", + p_clk81_gate, CLK_IGNORE_UNUSED, 28), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_TO_A9, "to_a9", p_clk81_gate, + CLK_IGNORE_UNUSED, 29), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_RESERVED2_11, "reserved2_11", + p_clk81_gate, CLK_IGNORE_UNUSED, 30), + GATE(MESON8B_REG_HHI_GCLK_MPEG2, CLKID_RESERVED2_12, "reserved2_12", + p_clk81_gate, CLK_IGNORE_UNUSED, 31), }; static void __init meson8b_clkc_init(struct device_node *np) diff --git a/include/dt-bindings/clock/meson8b-clkc.h b/include/dt-bindings/clock/meson8b-clkc.h index bd2720d..e7600e3 100644 --- a/include/dt-bindings/clock/meson8b-clkc.h +++ b/include/dt-bindings/clock/meson8b-clkc.h @@ -19,7 +19,102 @@ #define CLKID_MALI 11 #define CLKID_CPUCLK 12 #define CLKID_ZERO 13 - -#define CLK_NR_CLKS (CLKID_ZERO + 1) +#define CLKID_DDR 14 +#define CLKID_DOS 15 +#define CLKID_RESERVED0_0 16 +#define CLKID_RESERVED0_1 17 +#define CLKID_AHB_BRIDGE 18 +#define CLKID_ISA 19 +#define CLKID_PL310_CBUS 20 +#define CLKID_PPERIPHS_TOP 21 +#define CLKID_SPICC 22 +#define CLKID_I2C 23 +#define CLKID_SAR_ADC 24 +#define CLKID_SMART_CARD_MPEG_DOMAIN 25 +#define CLKID_RANDOM_NUM_GEN 26 +#define CLKID_UART0 27 +#define CLKID_SDHC 28 +#define CLKID_STREAM 29 +#define CLKID_ASYNC_FIFO 30 +#define CLKID_SDIO 31 +#define CLKID_AUD_BUF 32 +#define CLKID_HIU_PARSER 33 +#define CLKID_RESERVED0_2 34 +#define CLKID_RESERVED0_3 35 +#define CLKID_RESERVED0_4 36 +#define CLKID_ASSIST_MISC 37 +#define CLKID_RESERVED0_5 38 +#define CLKID_RESERVED0_6 39 +#define CLKID_RESERVED0_7 40 +#define CLKID_RESERVED0_8 41 +#define CLKID_RESERVED0_9 42 +#define CLKID_RESERVED0_A 43 +#define CLKID_SPI 44 +#define CLKID_RESERVED0_B 45 +#define CLKID_RESERVED1_1 46 +#define CLKID_RESERVED1_2 47 +#define CLKID_AUD_IN 48 +#define CLKID_ETHERNET 49 +#define CLKID_DEMUX 50 +#define CLKID_RESERVED1_3 51 +#define CLKID_AIU_AI_TOP_GLUE 52 +#define CLKID_AIU_IEC958 53 +#define CLKID_AIU_I2S_OUT 54 +#define CLKID_AIU_AMCLK_MEASURE 55 +#define CLKID_AIU_AIFIFO2 56 +#define CLKID_AIU_AUD_MIXER 57 +#define CLKID_AIU_MIXER_REG 58 +#define CLKID_AIU_ADC 59 +#define CLKID_BLK_MOV 60 +#define CLKID_AIU_TOP_LEVEL 61 +#define CLKID_UART1 62 +#define CLKID_RESERVED1_4 63 +#define CLKID_RESERVED1_5 64 +#define CLKID_RESERVED1_6 65 +#define CLKID_GE2D 66 +#define CLKID_USB0 67 +#define CLKID_USB1 68 +#define CLKID_RESET 69 +#define CLKID_NAND 70 +#define CLKID_HIU_PARSER_TOP 71 +#define CLKID_USB_GENERAL 72 +#define CLKID_RESERVED1_7 73 +#define CLKID_VDIN1 74 +#define CLKID_AHB_ARB0 75 +#define CLKID_EFUSE 76 +#define CLKID_ROM_CLK 77 +#define CLKID_RESERVED2_0 78 +#define CLKID_AHB_DATA_BUS 79 +#define CLKID_AHB_CONTROL_BUS 80 +#define CLKID_HDMI_INTR_SYNC 81 +#define CLKID_HDMI_PCLK 82 +#define CLKID_RESERVED2_1 83 +#define CLKID_RESERVED2_2 84 +#define CLKID_RESERVED2_3 85 +#define CLKID_MISC_USB1_TO_DDR 86 +#define CLKID_MISC_USB0_TO_DDR 87 +#define CLKID_RESERVED2_4 88 +#define CLKID_MMC_PCLK 89 +#define CLKID_MISC_DVIN 90 +#define CLKID_RESERVED2_5 91 +#define CLKID_RESERVED2_6 92 +#define CLKID_UART2 93 +#define CLKID_RESERVED2_7 94 +#define CLKID_RESERVED2_8 95 +#define CLKID_RESERVED2_9 96 +#define CLKID_RESERVED2_A 97 +#define CLKID_RESERVED2_B 98 +#define CLKID_RESERVED2_C 99 +#define CLKID_SANA 100 +#define CLKID_RESERVED2_D 101 +#define CLKID_RESERVED2_E 102 +#define CLKID_VPU_INTR 103 +#define CLKID_SECURE_AHP_APB3 104 +#define CLKID_RESERVED2_F 105 +#define CLKID_RESERVED2_10 106 +#define CLKID_TO_A9 107 +#define CLKID_RESERVED2_11 108 +#define CLKID_RESERVED2_12 109 +#define CLK_NR_CLKS 110 #endif /* __MESON8B_CLKC_H */