2922 lines
69 KiB
Diff
2922 lines
69 KiB
Diff
|
From 2e6dfaa714ba4bd70fa5dda07c525b6c15e44552 Mon Sep 17 00:00:00 2001
|
||
|
From: Kumar Gala <galak@codeaurora.org>
|
||
|
Date: Thu, 3 Apr 2014 13:47:07 -0500
|
||
|
Subject: [PATCH 125/182] clk: qcom: Add support for IPQ8064's global clock
|
||
|
controller (GCC)
|
||
|
|
||
|
Add a driver for the global clock controller found on IPQ8064 based
|
||
|
platforms. This should allow most non-multimedia device drivers to probe
|
||
|
and control their clocks.
|
||
|
|
||
|
This is currently missing clocks for USB HSIC and networking devices.
|
||
|
|
||
|
Signed-off-by: Kumar Gala <galak@codeaurora.org>
|
||
|
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
|
||
|
---
|
||
|
.../devicetree/bindings/clock/qcom,gcc.txt | 1 +
|
||
|
drivers/clk/qcom/Kconfig | 8 +
|
||
|
drivers/clk/qcom/Makefile | 1 +
|
||
|
drivers/clk/qcom/gcc-ipq806x.c | 2424 ++++++++++++++++++++
|
||
|
include/dt-bindings/clock/qcom,gcc-ipq806x.h | 293 +++
|
||
|
include/dt-bindings/reset/qcom,gcc-ipq806x.h | 132 ++
|
||
|
6 files changed, 2859 insertions(+)
|
||
|
create mode 100644 drivers/clk/qcom/gcc-ipq806x.c
|
||
|
create mode 100644 include/dt-bindings/clock/qcom,gcc-ipq806x.h
|
||
|
create mode 100644 include/dt-bindings/reset/qcom,gcc-ipq806x.h
|
||
|
|
||
|
--- a/Documentation/devicetree/bindings/clock/qcom,gcc.txt
|
||
|
+++ b/Documentation/devicetree/bindings/clock/qcom,gcc.txt
|
||
|
@@ -5,6 +5,7 @@ Required properties :
|
||
|
- compatible : shall contain only one of the following:
|
||
|
|
||
|
"qcom,gcc-apq8064"
|
||
|
+ "qcom,gcc-ipq8064"
|
||
|
"qcom,gcc-msm8660"
|
||
|
"qcom,gcc-msm8960"
|
||
|
"qcom,gcc-msm8974"
|
||
|
--- a/drivers/clk/qcom/Kconfig
|
||
|
+++ b/drivers/clk/qcom/Kconfig
|
||
|
@@ -4,6 +4,14 @@ config COMMON_CLK_QCOM
|
||
|
select REGMAP_MMIO
|
||
|
select RESET_CONTROLLER
|
||
|
|
||
|
+config IPQ_GCC_806X
|
||
|
+ tristate "IPQ806x Global Clock Controller"
|
||
|
+ depends on COMMON_CLK_QCOM
|
||
|
+ help
|
||
|
+ Support for the global clock controller on ipq806x devices.
|
||
|
+ Say Y if you want to use peripheral devices such as UART, SPI,
|
||
|
+ i2c, USB, SD/eMMC, etc.
|
||
|
+
|
||
|
config MSM_GCC_8660
|
||
|
tristate "MSM8660 Global Clock Controller"
|
||
|
depends on COMMON_CLK_QCOM
|
||
|
--- a/drivers/clk/qcom/Makefile
|
||
|
+++ b/drivers/clk/qcom/Makefile
|
||
|
@@ -8,6 +8,7 @@ clk-qcom-y += clk-rcg2.o
|
||
|
clk-qcom-y += clk-branch.o
|
||
|
clk-qcom-y += reset.o
|
||
|
|
||
|
+obj-$(CONFIG_IPQ_GCC_806X) += gcc-ipq806x.o
|
||
|
obj-$(CONFIG_MSM_GCC_8660) += gcc-msm8660.o
|
||
|
obj-$(CONFIG_MSM_GCC_8960) += gcc-msm8960.o
|
||
|
obj-$(CONFIG_MSM_GCC_8974) += gcc-msm8974.o
|
||
|
--- /dev/null
|
||
|
+++ b/drivers/clk/qcom/gcc-ipq806x.c
|
||
|
@@ -0,0 +1,2424 @@
|
||
|
+/*
|
||
|
+ * Copyright (c) 2014, The Linux Foundation. All rights reserved.
|
||
|
+ *
|
||
|
+ * This software is licensed under the terms of the GNU General Public
|
||
|
+ * License version 2, as published by the Free Software Foundation, and
|
||
|
+ * may be copied, distributed, and modified under those terms.
|
||
|
+ *
|
||
|
+ * This program is distributed in the hope that it will be useful,
|
||
|
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
+ * GNU General Public License for more details.
|
||
|
+ */
|
||
|
+
|
||
|
+#include <linux/kernel.h>
|
||
|
+#include <linux/bitops.h>
|
||
|
+#include <linux/err.h>
|
||
|
+#include <linux/platform_device.h>
|
||
|
+#include <linux/module.h>
|
||
|
+#include <linux/of.h>
|
||
|
+#include <linux/of_device.h>
|
||
|
+#include <linux/clk-provider.h>
|
||
|
+#include <linux/regmap.h>
|
||
|
+#include <linux/reset-controller.h>
|
||
|
+
|
||
|
+#include <dt-bindings/clock/qcom,gcc-ipq806x.h>
|
||
|
+#include <dt-bindings/reset/qcom,gcc-ipq806x.h>
|
||
|
+
|
||
|
+#include "common.h"
|
||
|
+#include "clk-regmap.h"
|
||
|
+#include "clk-pll.h"
|
||
|
+#include "clk-rcg.h"
|
||
|
+#include "clk-branch.h"
|
||
|
+#include "reset.h"
|
||
|
+
|
||
|
+static struct clk_pll pll3 = {
|
||
|
+ .l_reg = 0x3164,
|
||
|
+ .m_reg = 0x3168,
|
||
|
+ .n_reg = 0x316c,
|
||
|
+ .config_reg = 0x3174,
|
||
|
+ .mode_reg = 0x3160,
|
||
|
+ .status_reg = 0x3178,
|
||
|
+ .status_bit = 16,
|
||
|
+ .clkr.hw.init = &(struct clk_init_data){
|
||
|
+ .name = "pll3",
|
||
|
+ .parent_names = (const char *[]){ "pxo" },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_pll_ops,
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_pll pll8 = {
|
||
|
+ .l_reg = 0x3144,
|
||
|
+ .m_reg = 0x3148,
|
||
|
+ .n_reg = 0x314c,
|
||
|
+ .config_reg = 0x3154,
|
||
|
+ .mode_reg = 0x3140,
|
||
|
+ .status_reg = 0x3158,
|
||
|
+ .status_bit = 16,
|
||
|
+ .clkr.hw.init = &(struct clk_init_data){
|
||
|
+ .name = "pll8",
|
||
|
+ .parent_names = (const char *[]){ "pxo" },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_pll_ops,
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_regmap pll8_vote = {
|
||
|
+ .enable_reg = 0x34c0,
|
||
|
+ .enable_mask = BIT(8),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "pll8_vote",
|
||
|
+ .parent_names = (const char *[]){ "pll8" },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_pll_vote_ops,
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_pll pll14 = {
|
||
|
+ .l_reg = 0x31c4,
|
||
|
+ .m_reg = 0x31c8,
|
||
|
+ .n_reg = 0x31cc,
|
||
|
+ .config_reg = 0x31d4,
|
||
|
+ .mode_reg = 0x31c0,
|
||
|
+ .status_reg = 0x31d8,
|
||
|
+ .status_bit = 16,
|
||
|
+ .clkr.hw.init = &(struct clk_init_data){
|
||
|
+ .name = "pll14",
|
||
|
+ .parent_names = (const char *[]){ "pxo" },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_pll_ops,
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_regmap pll14_vote = {
|
||
|
+ .enable_reg = 0x34c0,
|
||
|
+ .enable_mask = BIT(14),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "pll14_vote",
|
||
|
+ .parent_names = (const char *[]){ "pll14" },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_pll_vote_ops,
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+#define P_PXO 0
|
||
|
+#define P_PLL8 1
|
||
|
+#define P_PLL3 1
|
||
|
+#define P_PLL0 2
|
||
|
+#define P_CXO 2
|
||
|
+
|
||
|
+static const u8 gcc_pxo_pll8_map[] = {
|
||
|
+ [P_PXO] = 0,
|
||
|
+ [P_PLL8] = 3,
|
||
|
+};
|
||
|
+
|
||
|
+static const char *gcc_pxo_pll8[] = {
|
||
|
+ "pxo",
|
||
|
+ "pll8_vote",
|
||
|
+};
|
||
|
+
|
||
|
+static const u8 gcc_pxo_pll8_cxo_map[] = {
|
||
|
+ [P_PXO] = 0,
|
||
|
+ [P_PLL8] = 3,
|
||
|
+ [P_CXO] = 5,
|
||
|
+};
|
||
|
+
|
||
|
+static const char *gcc_pxo_pll8_cxo[] = {
|
||
|
+ "pxo",
|
||
|
+ "pll8_vote",
|
||
|
+ "cxo",
|
||
|
+};
|
||
|
+
|
||
|
+static const u8 gcc_pxo_pll3_map[] = {
|
||
|
+ [P_PXO] = 0,
|
||
|
+ [P_PLL3] = 1,
|
||
|
+};
|
||
|
+
|
||
|
+static const u8 gcc_pxo_pll3_sata_map[] = {
|
||
|
+ [P_PXO] = 0,
|
||
|
+ [P_PLL3] = 6,
|
||
|
+};
|
||
|
+
|
||
|
+static const char *gcc_pxo_pll3[] = {
|
||
|
+ "pxo",
|
||
|
+ "pll3",
|
||
|
+};
|
||
|
+
|
||
|
+static const u8 gcc_pxo_pll8_pll0[] = {
|
||
|
+ [P_PXO] = 0,
|
||
|
+ [P_PLL8] = 3,
|
||
|
+ [P_PLL0] = 2,
|
||
|
+};
|
||
|
+
|
||
|
+static const char *gcc_pxo_pll8_pll0_map[] = {
|
||
|
+ "pxo",
|
||
|
+ "pll8_vote",
|
||
|
+ "pll0",
|
||
|
+};
|
||
|
+
|
||
|
+static struct freq_tbl clk_tbl_gsbi_uart[] = {
|
||
|
+ { 1843200, P_PLL8, 2, 6, 625 },
|
||
|
+ { 3686400, P_PLL8, 2, 12, 625 },
|
||
|
+ { 7372800, P_PLL8, 2, 24, 625 },
|
||
|
+ { 14745600, P_PLL8, 2, 48, 625 },
|
||
|
+ { 16000000, P_PLL8, 4, 1, 6 },
|
||
|
+ { 24000000, P_PLL8, 4, 1, 4 },
|
||
|
+ { 32000000, P_PLL8, 4, 1, 3 },
|
||
|
+ { 40000000, P_PLL8, 1, 5, 48 },
|
||
|
+ { 46400000, P_PLL8, 1, 29, 240 },
|
||
|
+ { 48000000, P_PLL8, 4, 1, 2 },
|
||
|
+ { 51200000, P_PLL8, 1, 2, 15 },
|
||
|
+ { 56000000, P_PLL8, 1, 7, 48 },
|
||
|
+ { 58982400, P_PLL8, 1, 96, 625 },
|
||
|
+ { 64000000, P_PLL8, 2, 1, 3 },
|
||
|
+ { }
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_rcg gsbi1_uart_src = {
|
||
|
+ .ns_reg = 0x29d4,
|
||
|
+ .md_reg = 0x29d0,
|
||
|
+ .mn = {
|
||
|
+ .mnctr_en_bit = 8,
|
||
|
+ .mnctr_reset_bit = 7,
|
||
|
+ .mnctr_mode_shift = 5,
|
||
|
+ .n_val_shift = 16,
|
||
|
+ .m_val_shift = 16,
|
||
|
+ .width = 16,
|
||
|
+ },
|
||
|
+ .p = {
|
||
|
+ .pre_div_shift = 3,
|
||
|
+ .pre_div_width = 2,
|
||
|
+ },
|
||
|
+ .s = {
|
||
|
+ .src_sel_shift = 0,
|
||
|
+ .parent_map = gcc_pxo_pll8_map,
|
||
|
+ },
|
||
|
+ .freq_tbl = clk_tbl_gsbi_uart,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x29d4,
|
||
|
+ .enable_mask = BIT(11),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gsbi1_uart_src",
|
||
|
+ .parent_names = gcc_pxo_pll8,
|
||
|
+ .num_parents = 2,
|
||
|
+ .ops = &clk_rcg_ops,
|
||
|
+ .flags = CLK_SET_PARENT_GATE,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch gsbi1_uart_clk = {
|
||
|
+ .halt_reg = 0x2fcc,
|
||
|
+ .halt_bit = 12,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x29d4,
|
||
|
+ .enable_mask = BIT(9),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gsbi1_uart_clk",
|
||
|
+ .parent_names = (const char *[]){
|
||
|
+ "gsbi1_uart_src",
|
||
|
+ },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_SET_RATE_PARENT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_rcg gsbi2_uart_src = {
|
||
|
+ .ns_reg = 0x29f4,
|
||
|
+ .md_reg = 0x29f0,
|
||
|
+ .mn = {
|
||
|
+ .mnctr_en_bit = 8,
|
||
|
+ .mnctr_reset_bit = 7,
|
||
|
+ .mnctr_mode_shift = 5,
|
||
|
+ .n_val_shift = 16,
|
||
|
+ .m_val_shift = 16,
|
||
|
+ .width = 16,
|
||
|
+ },
|
||
|
+ .p = {
|
||
|
+ .pre_div_shift = 3,
|
||
|
+ .pre_div_width = 2,
|
||
|
+ },
|
||
|
+ .s = {
|
||
|
+ .src_sel_shift = 0,
|
||
|
+ .parent_map = gcc_pxo_pll8_map,
|
||
|
+ },
|
||
|
+ .freq_tbl = clk_tbl_gsbi_uart,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x29f4,
|
||
|
+ .enable_mask = BIT(11),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gsbi2_uart_src",
|
||
|
+ .parent_names = gcc_pxo_pll8,
|
||
|
+ .num_parents = 2,
|
||
|
+ .ops = &clk_rcg_ops,
|
||
|
+ .flags = CLK_SET_PARENT_GATE,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch gsbi2_uart_clk = {
|
||
|
+ .halt_reg = 0x2fcc,
|
||
|
+ .halt_bit = 8,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x29f4,
|
||
|
+ .enable_mask = BIT(9),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gsbi2_uart_clk",
|
||
|
+ .parent_names = (const char *[]){
|
||
|
+ "gsbi2_uart_src",
|
||
|
+ },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_SET_RATE_PARENT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_rcg gsbi4_uart_src = {
|
||
|
+ .ns_reg = 0x2a34,
|
||
|
+ .md_reg = 0x2a30,
|
||
|
+ .mn = {
|
||
|
+ .mnctr_en_bit = 8,
|
||
|
+ .mnctr_reset_bit = 7,
|
||
|
+ .mnctr_mode_shift = 5,
|
||
|
+ .n_val_shift = 16,
|
||
|
+ .m_val_shift = 16,
|
||
|
+ .width = 16,
|
||
|
+ },
|
||
|
+ .p = {
|
||
|
+ .pre_div_shift = 3,
|
||
|
+ .pre_div_width = 2,
|
||
|
+ },
|
||
|
+ .s = {
|
||
|
+ .src_sel_shift = 0,
|
||
|
+ .parent_map = gcc_pxo_pll8_map,
|
||
|
+ },
|
||
|
+ .freq_tbl = clk_tbl_gsbi_uart,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2a34,
|
||
|
+ .enable_mask = BIT(11),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gsbi4_uart_src",
|
||
|
+ .parent_names = gcc_pxo_pll8,
|
||
|
+ .num_parents = 2,
|
||
|
+ .ops = &clk_rcg_ops,
|
||
|
+ .flags = CLK_SET_PARENT_GATE,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch gsbi4_uart_clk = {
|
||
|
+ .halt_reg = 0x2fd0,
|
||
|
+ .halt_bit = 26,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2a34,
|
||
|
+ .enable_mask = BIT(9),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gsbi4_uart_clk",
|
||
|
+ .parent_names = (const char *[]){
|
||
|
+ "gsbi4_uart_src",
|
||
|
+ },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_SET_RATE_PARENT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_rcg gsbi5_uart_src = {
|
||
|
+ .ns_reg = 0x2a54,
|
||
|
+ .md_reg = 0x2a50,
|
||
|
+ .mn = {
|
||
|
+ .mnctr_en_bit = 8,
|
||
|
+ .mnctr_reset_bit = 7,
|
||
|
+ .mnctr_mode_shift = 5,
|
||
|
+ .n_val_shift = 16,
|
||
|
+ .m_val_shift = 16,
|
||
|
+ .width = 16,
|
||
|
+ },
|
||
|
+ .p = {
|
||
|
+ .pre_div_shift = 3,
|
||
|
+ .pre_div_width = 2,
|
||
|
+ },
|
||
|
+ .s = {
|
||
|
+ .src_sel_shift = 0,
|
||
|
+ .parent_map = gcc_pxo_pll8_map,
|
||
|
+ },
|
||
|
+ .freq_tbl = clk_tbl_gsbi_uart,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2a54,
|
||
|
+ .enable_mask = BIT(11),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gsbi5_uart_src",
|
||
|
+ .parent_names = gcc_pxo_pll8,
|
||
|
+ .num_parents = 2,
|
||
|
+ .ops = &clk_rcg_ops,
|
||
|
+ .flags = CLK_SET_PARENT_GATE,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch gsbi5_uart_clk = {
|
||
|
+ .halt_reg = 0x2fd0,
|
||
|
+ .halt_bit = 22,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2a54,
|
||
|
+ .enable_mask = BIT(9),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gsbi5_uart_clk",
|
||
|
+ .parent_names = (const char *[]){
|
||
|
+ "gsbi5_uart_src",
|
||
|
+ },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_SET_RATE_PARENT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_rcg gsbi6_uart_src = {
|
||
|
+ .ns_reg = 0x2a74,
|
||
|
+ .md_reg = 0x2a70,
|
||
|
+ .mn = {
|
||
|
+ .mnctr_en_bit = 8,
|
||
|
+ .mnctr_reset_bit = 7,
|
||
|
+ .mnctr_mode_shift = 5,
|
||
|
+ .n_val_shift = 16,
|
||
|
+ .m_val_shift = 16,
|
||
|
+ .width = 16,
|
||
|
+ },
|
||
|
+ .p = {
|
||
|
+ .pre_div_shift = 3,
|
||
|
+ .pre_div_width = 2,
|
||
|
+ },
|
||
|
+ .s = {
|
||
|
+ .src_sel_shift = 0,
|
||
|
+ .parent_map = gcc_pxo_pll8_map,
|
||
|
+ },
|
||
|
+ .freq_tbl = clk_tbl_gsbi_uart,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2a74,
|
||
|
+ .enable_mask = BIT(11),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gsbi6_uart_src",
|
||
|
+ .parent_names = gcc_pxo_pll8,
|
||
|
+ .num_parents = 2,
|
||
|
+ .ops = &clk_rcg_ops,
|
||
|
+ .flags = CLK_SET_PARENT_GATE,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch gsbi6_uart_clk = {
|
||
|
+ .halt_reg = 0x2fd0,
|
||
|
+ .halt_bit = 18,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2a74,
|
||
|
+ .enable_mask = BIT(9),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gsbi6_uart_clk",
|
||
|
+ .parent_names = (const char *[]){
|
||
|
+ "gsbi6_uart_src",
|
||
|
+ },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_SET_RATE_PARENT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_rcg gsbi7_uart_src = {
|
||
|
+ .ns_reg = 0x2a94,
|
||
|
+ .md_reg = 0x2a90,
|
||
|
+ .mn = {
|
||
|
+ .mnctr_en_bit = 8,
|
||
|
+ .mnctr_reset_bit = 7,
|
||
|
+ .mnctr_mode_shift = 5,
|
||
|
+ .n_val_shift = 16,
|
||
|
+ .m_val_shift = 16,
|
||
|
+ .width = 16,
|
||
|
+ },
|
||
|
+ .p = {
|
||
|
+ .pre_div_shift = 3,
|
||
|
+ .pre_div_width = 2,
|
||
|
+ },
|
||
|
+ .s = {
|
||
|
+ .src_sel_shift = 0,
|
||
|
+ .parent_map = gcc_pxo_pll8_map,
|
||
|
+ },
|
||
|
+ .freq_tbl = clk_tbl_gsbi_uart,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2a94,
|
||
|
+ .enable_mask = BIT(11),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gsbi7_uart_src",
|
||
|
+ .parent_names = gcc_pxo_pll8,
|
||
|
+ .num_parents = 2,
|
||
|
+ .ops = &clk_rcg_ops,
|
||
|
+ .flags = CLK_SET_PARENT_GATE,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch gsbi7_uart_clk = {
|
||
|
+ .halt_reg = 0x2fd0,
|
||
|
+ .halt_bit = 14,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2a94,
|
||
|
+ .enable_mask = BIT(9),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gsbi7_uart_clk",
|
||
|
+ .parent_names = (const char *[]){
|
||
|
+ "gsbi7_uart_src",
|
||
|
+ },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_SET_RATE_PARENT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct freq_tbl clk_tbl_gsbi_qup[] = {
|
||
|
+ { 1100000, P_PXO, 1, 2, 49 },
|
||
|
+ { 5400000, P_PXO, 1, 1, 5 },
|
||
|
+ { 10800000, P_PXO, 1, 2, 5 },
|
||
|
+ { 15060000, P_PLL8, 1, 2, 51 },
|
||
|
+ { 24000000, P_PLL8, 4, 1, 4 },
|
||
|
+ { 25600000, P_PLL8, 1, 1, 15 },
|
||
|
+ { 27000000, P_PXO, 1, 0, 0 },
|
||
|
+ { 48000000, P_PLL8, 4, 1, 2 },
|
||
|
+ { 51200000, P_PLL8, 1, 2, 15 },
|
||
|
+ { }
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_rcg gsbi1_qup_src = {
|
||
|
+ .ns_reg = 0x29cc,
|
||
|
+ .md_reg = 0x29c8,
|
||
|
+ .mn = {
|
||
|
+ .mnctr_en_bit = 8,
|
||
|
+ .mnctr_reset_bit = 7,
|
||
|
+ .mnctr_mode_shift = 5,
|
||
|
+ .n_val_shift = 16,
|
||
|
+ .m_val_shift = 16,
|
||
|
+ .width = 8,
|
||
|
+ },
|
||
|
+ .p = {
|
||
|
+ .pre_div_shift = 3,
|
||
|
+ .pre_div_width = 2,
|
||
|
+ },
|
||
|
+ .s = {
|
||
|
+ .src_sel_shift = 0,
|
||
|
+ .parent_map = gcc_pxo_pll8_map,
|
||
|
+ },
|
||
|
+ .freq_tbl = clk_tbl_gsbi_qup,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x29cc,
|
||
|
+ .enable_mask = BIT(11),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gsbi1_qup_src",
|
||
|
+ .parent_names = gcc_pxo_pll8,
|
||
|
+ .num_parents = 2,
|
||
|
+ .ops = &clk_rcg_ops,
|
||
|
+ .flags = CLK_SET_PARENT_GATE,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch gsbi1_qup_clk = {
|
||
|
+ .halt_reg = 0x2fcc,
|
||
|
+ .halt_bit = 11,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x29cc,
|
||
|
+ .enable_mask = BIT(9),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gsbi1_qup_clk",
|
||
|
+ .parent_names = (const char *[]){ "gsbi1_qup_src" },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_SET_RATE_PARENT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_rcg gsbi2_qup_src = {
|
||
|
+ .ns_reg = 0x29ec,
|
||
|
+ .md_reg = 0x29e8,
|
||
|
+ .mn = {
|
||
|
+ .mnctr_en_bit = 8,
|
||
|
+ .mnctr_reset_bit = 7,
|
||
|
+ .mnctr_mode_shift = 5,
|
||
|
+ .n_val_shift = 16,
|
||
|
+ .m_val_shift = 16,
|
||
|
+ .width = 8,
|
||
|
+ },
|
||
|
+ .p = {
|
||
|
+ .pre_div_shift = 3,
|
||
|
+ .pre_div_width = 2,
|
||
|
+ },
|
||
|
+ .s = {
|
||
|
+ .src_sel_shift = 0,
|
||
|
+ .parent_map = gcc_pxo_pll8_map,
|
||
|
+ },
|
||
|
+ .freq_tbl = clk_tbl_gsbi_qup,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x29ec,
|
||
|
+ .enable_mask = BIT(11),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gsbi2_qup_src",
|
||
|
+ .parent_names = gcc_pxo_pll8,
|
||
|
+ .num_parents = 2,
|
||
|
+ .ops = &clk_rcg_ops,
|
||
|
+ .flags = CLK_SET_PARENT_GATE,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch gsbi2_qup_clk = {
|
||
|
+ .halt_reg = 0x2fcc,
|
||
|
+ .halt_bit = 6,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x29ec,
|
||
|
+ .enable_mask = BIT(9),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gsbi2_qup_clk",
|
||
|
+ .parent_names = (const char *[]){ "gsbi2_qup_src" },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_SET_RATE_PARENT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_rcg gsbi4_qup_src = {
|
||
|
+ .ns_reg = 0x2a2c,
|
||
|
+ .md_reg = 0x2a28,
|
||
|
+ .mn = {
|
||
|
+ .mnctr_en_bit = 8,
|
||
|
+ .mnctr_reset_bit = 7,
|
||
|
+ .mnctr_mode_shift = 5,
|
||
|
+ .n_val_shift = 16,
|
||
|
+ .m_val_shift = 16,
|
||
|
+ .width = 8,
|
||
|
+ },
|
||
|
+ .p = {
|
||
|
+ .pre_div_shift = 3,
|
||
|
+ .pre_div_width = 2,
|
||
|
+ },
|
||
|
+ .s = {
|
||
|
+ .src_sel_shift = 0,
|
||
|
+ .parent_map = gcc_pxo_pll8_map,
|
||
|
+ },
|
||
|
+ .freq_tbl = clk_tbl_gsbi_qup,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2a2c,
|
||
|
+ .enable_mask = BIT(11),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gsbi4_qup_src",
|
||
|
+ .parent_names = gcc_pxo_pll8,
|
||
|
+ .num_parents = 2,
|
||
|
+ .ops = &clk_rcg_ops,
|
||
|
+ .flags = CLK_SET_PARENT_GATE,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch gsbi4_qup_clk = {
|
||
|
+ .halt_reg = 0x2fd0,
|
||
|
+ .halt_bit = 24,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2a2c,
|
||
|
+ .enable_mask = BIT(9),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gsbi4_qup_clk",
|
||
|
+ .parent_names = (const char *[]){ "gsbi4_qup_src" },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_SET_RATE_PARENT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_rcg gsbi5_qup_src = {
|
||
|
+ .ns_reg = 0x2a4c,
|
||
|
+ .md_reg = 0x2a48,
|
||
|
+ .mn = {
|
||
|
+ .mnctr_en_bit = 8,
|
||
|
+ .mnctr_reset_bit = 7,
|
||
|
+ .mnctr_mode_shift = 5,
|
||
|
+ .n_val_shift = 16,
|
||
|
+ .m_val_shift = 16,
|
||
|
+ .width = 8,
|
||
|
+ },
|
||
|
+ .p = {
|
||
|
+ .pre_div_shift = 3,
|
||
|
+ .pre_div_width = 2,
|
||
|
+ },
|
||
|
+ .s = {
|
||
|
+ .src_sel_shift = 0,
|
||
|
+ .parent_map = gcc_pxo_pll8_map,
|
||
|
+ },
|
||
|
+ .freq_tbl = clk_tbl_gsbi_qup,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2a4c,
|
||
|
+ .enable_mask = BIT(11),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gsbi5_qup_src",
|
||
|
+ .parent_names = gcc_pxo_pll8,
|
||
|
+ .num_parents = 2,
|
||
|
+ .ops = &clk_rcg_ops,
|
||
|
+ .flags = CLK_SET_PARENT_GATE,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch gsbi5_qup_clk = {
|
||
|
+ .halt_reg = 0x2fd0,
|
||
|
+ .halt_bit = 20,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2a4c,
|
||
|
+ .enable_mask = BIT(9),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gsbi5_qup_clk",
|
||
|
+ .parent_names = (const char *[]){ "gsbi5_qup_src" },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_SET_RATE_PARENT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_rcg gsbi6_qup_src = {
|
||
|
+ .ns_reg = 0x2a6c,
|
||
|
+ .md_reg = 0x2a68,
|
||
|
+ .mn = {
|
||
|
+ .mnctr_en_bit = 8,
|
||
|
+ .mnctr_reset_bit = 7,
|
||
|
+ .mnctr_mode_shift = 5,
|
||
|
+ .n_val_shift = 16,
|
||
|
+ .m_val_shift = 16,
|
||
|
+ .width = 8,
|
||
|
+ },
|
||
|
+ .p = {
|
||
|
+ .pre_div_shift = 3,
|
||
|
+ .pre_div_width = 2,
|
||
|
+ },
|
||
|
+ .s = {
|
||
|
+ .src_sel_shift = 0,
|
||
|
+ .parent_map = gcc_pxo_pll8_map,
|
||
|
+ },
|
||
|
+ .freq_tbl = clk_tbl_gsbi_qup,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2a6c,
|
||
|
+ .enable_mask = BIT(11),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gsbi6_qup_src",
|
||
|
+ .parent_names = gcc_pxo_pll8,
|
||
|
+ .num_parents = 2,
|
||
|
+ .ops = &clk_rcg_ops,
|
||
|
+ .flags = CLK_SET_PARENT_GATE,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch gsbi6_qup_clk = {
|
||
|
+ .halt_reg = 0x2fd0,
|
||
|
+ .halt_bit = 16,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2a6c,
|
||
|
+ .enable_mask = BIT(9),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gsbi6_qup_clk",
|
||
|
+ .parent_names = (const char *[]){ "gsbi6_qup_src" },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_SET_RATE_PARENT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_rcg gsbi7_qup_src = {
|
||
|
+ .ns_reg = 0x2a8c,
|
||
|
+ .md_reg = 0x2a88,
|
||
|
+ .mn = {
|
||
|
+ .mnctr_en_bit = 8,
|
||
|
+ .mnctr_reset_bit = 7,
|
||
|
+ .mnctr_mode_shift = 5,
|
||
|
+ .n_val_shift = 16,
|
||
|
+ .m_val_shift = 16,
|
||
|
+ .width = 8,
|
||
|
+ },
|
||
|
+ .p = {
|
||
|
+ .pre_div_shift = 3,
|
||
|
+ .pre_div_width = 2,
|
||
|
+ },
|
||
|
+ .s = {
|
||
|
+ .src_sel_shift = 0,
|
||
|
+ .parent_map = gcc_pxo_pll8_map,
|
||
|
+ },
|
||
|
+ .freq_tbl = clk_tbl_gsbi_qup,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2a8c,
|
||
|
+ .enable_mask = BIT(11),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gsbi7_qup_src",
|
||
|
+ .parent_names = gcc_pxo_pll8,
|
||
|
+ .num_parents = 2,
|
||
|
+ .ops = &clk_rcg_ops,
|
||
|
+ .flags = CLK_SET_PARENT_GATE,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch gsbi7_qup_clk = {
|
||
|
+ .halt_reg = 0x2fd0,
|
||
|
+ .halt_bit = 12,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2a8c,
|
||
|
+ .enable_mask = BIT(9),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gsbi7_qup_clk",
|
||
|
+ .parent_names = (const char *[]){ "gsbi7_qup_src" },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_SET_RATE_PARENT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch gsbi1_h_clk = {
|
||
|
+ .hwcg_reg = 0x29c0,
|
||
|
+ .hwcg_bit = 6,
|
||
|
+ .halt_reg = 0x2fcc,
|
||
|
+ .halt_bit = 13,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x29c0,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gsbi1_h_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch gsbi2_h_clk = {
|
||
|
+ .hwcg_reg = 0x29e0,
|
||
|
+ .hwcg_bit = 6,
|
||
|
+ .halt_reg = 0x2fcc,
|
||
|
+ .halt_bit = 9,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x29e0,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gsbi2_h_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch gsbi4_h_clk = {
|
||
|
+ .hwcg_reg = 0x2a20,
|
||
|
+ .hwcg_bit = 6,
|
||
|
+ .halt_reg = 0x2fd0,
|
||
|
+ .halt_bit = 27,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2a20,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gsbi4_h_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch gsbi5_h_clk = {
|
||
|
+ .hwcg_reg = 0x2a40,
|
||
|
+ .hwcg_bit = 6,
|
||
|
+ .halt_reg = 0x2fd0,
|
||
|
+ .halt_bit = 23,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2a40,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gsbi5_h_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch gsbi6_h_clk = {
|
||
|
+ .hwcg_reg = 0x2a60,
|
||
|
+ .hwcg_bit = 6,
|
||
|
+ .halt_reg = 0x2fd0,
|
||
|
+ .halt_bit = 19,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2a60,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gsbi6_h_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch gsbi7_h_clk = {
|
||
|
+ .hwcg_reg = 0x2a80,
|
||
|
+ .hwcg_bit = 6,
|
||
|
+ .halt_reg = 0x2fd0,
|
||
|
+ .halt_bit = 15,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2a80,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gsbi7_h_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static const struct freq_tbl clk_tbl_gp[] = {
|
||
|
+ { 12500000, P_PXO, 2, 0, 0 },
|
||
|
+ { 25000000, P_PXO, 1, 0, 0 },
|
||
|
+ { 64000000, P_PLL8, 2, 1, 3 },
|
||
|
+ { 76800000, P_PLL8, 1, 1, 5 },
|
||
|
+ { 96000000, P_PLL8, 4, 0, 0 },
|
||
|
+ { 128000000, P_PLL8, 3, 0, 0 },
|
||
|
+ { 192000000, P_PLL8, 2, 0, 0 },
|
||
|
+ { }
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_rcg gp0_src = {
|
||
|
+ .ns_reg = 0x2d24,
|
||
|
+ .md_reg = 0x2d00,
|
||
|
+ .mn = {
|
||
|
+ .mnctr_en_bit = 8,
|
||
|
+ .mnctr_reset_bit = 7,
|
||
|
+ .mnctr_mode_shift = 5,
|
||
|
+ .n_val_shift = 16,
|
||
|
+ .m_val_shift = 16,
|
||
|
+ .width = 8,
|
||
|
+ },
|
||
|
+ .p = {
|
||
|
+ .pre_div_shift = 3,
|
||
|
+ .pre_div_width = 2,
|
||
|
+ },
|
||
|
+ .s = {
|
||
|
+ .src_sel_shift = 0,
|
||
|
+ .parent_map = gcc_pxo_pll8_cxo_map,
|
||
|
+ },
|
||
|
+ .freq_tbl = clk_tbl_gp,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2d24,
|
||
|
+ .enable_mask = BIT(11),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gp0_src",
|
||
|
+ .parent_names = gcc_pxo_pll8_cxo,
|
||
|
+ .num_parents = 3,
|
||
|
+ .ops = &clk_rcg_ops,
|
||
|
+ .flags = CLK_SET_PARENT_GATE,
|
||
|
+ },
|
||
|
+ }
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch gp0_clk = {
|
||
|
+ .halt_reg = 0x2fd8,
|
||
|
+ .halt_bit = 7,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2d24,
|
||
|
+ .enable_mask = BIT(9),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gp0_clk",
|
||
|
+ .parent_names = (const char *[]){ "gp0_src" },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_SET_RATE_PARENT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_rcg gp1_src = {
|
||
|
+ .ns_reg = 0x2d44,
|
||
|
+ .md_reg = 0x2d40,
|
||
|
+ .mn = {
|
||
|
+ .mnctr_en_bit = 8,
|
||
|
+ .mnctr_reset_bit = 7,
|
||
|
+ .mnctr_mode_shift = 5,
|
||
|
+ .n_val_shift = 16,
|
||
|
+ .m_val_shift = 16,
|
||
|
+ .width = 8,
|
||
|
+ },
|
||
|
+ .p = {
|
||
|
+ .pre_div_shift = 3,
|
||
|
+ .pre_div_width = 2,
|
||
|
+ },
|
||
|
+ .s = {
|
||
|
+ .src_sel_shift = 0,
|
||
|
+ .parent_map = gcc_pxo_pll8_cxo_map,
|
||
|
+ },
|
||
|
+ .freq_tbl = clk_tbl_gp,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2d44,
|
||
|
+ .enable_mask = BIT(11),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gp1_src",
|
||
|
+ .parent_names = gcc_pxo_pll8_cxo,
|
||
|
+ .num_parents = 3,
|
||
|
+ .ops = &clk_rcg_ops,
|
||
|
+ .flags = CLK_SET_RATE_GATE,
|
||
|
+ },
|
||
|
+ }
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch gp1_clk = {
|
||
|
+ .halt_reg = 0x2fd8,
|
||
|
+ .halt_bit = 6,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2d44,
|
||
|
+ .enable_mask = BIT(9),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gp1_clk",
|
||
|
+ .parent_names = (const char *[]){ "gp1_src" },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_SET_RATE_PARENT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_rcg gp2_src = {
|
||
|
+ .ns_reg = 0x2d64,
|
||
|
+ .md_reg = 0x2d60,
|
||
|
+ .mn = {
|
||
|
+ .mnctr_en_bit = 8,
|
||
|
+ .mnctr_reset_bit = 7,
|
||
|
+ .mnctr_mode_shift = 5,
|
||
|
+ .n_val_shift = 16,
|
||
|
+ .m_val_shift = 16,
|
||
|
+ .width = 8,
|
||
|
+ },
|
||
|
+ .p = {
|
||
|
+ .pre_div_shift = 3,
|
||
|
+ .pre_div_width = 2,
|
||
|
+ },
|
||
|
+ .s = {
|
||
|
+ .src_sel_shift = 0,
|
||
|
+ .parent_map = gcc_pxo_pll8_cxo_map,
|
||
|
+ },
|
||
|
+ .freq_tbl = clk_tbl_gp,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2d64,
|
||
|
+ .enable_mask = BIT(11),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gp2_src",
|
||
|
+ .parent_names = gcc_pxo_pll8_cxo,
|
||
|
+ .num_parents = 3,
|
||
|
+ .ops = &clk_rcg_ops,
|
||
|
+ .flags = CLK_SET_RATE_GATE,
|
||
|
+ },
|
||
|
+ }
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch gp2_clk = {
|
||
|
+ .halt_reg = 0x2fd8,
|
||
|
+ .halt_bit = 5,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2d64,
|
||
|
+ .enable_mask = BIT(9),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "gp2_clk",
|
||
|
+ .parent_names = (const char *[]){ "gp2_src" },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_SET_RATE_PARENT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch pmem_clk = {
|
||
|
+ .hwcg_reg = 0x25a0,
|
||
|
+ .hwcg_bit = 6,
|
||
|
+ .halt_reg = 0x2fc8,
|
||
|
+ .halt_bit = 20,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x25a0,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "pmem_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_rcg prng_src = {
|
||
|
+ .ns_reg = 0x2e80,
|
||
|
+ .p = {
|
||
|
+ .pre_div_shift = 3,
|
||
|
+ .pre_div_width = 4,
|
||
|
+ },
|
||
|
+ .s = {
|
||
|
+ .src_sel_shift = 0,
|
||
|
+ .parent_map = gcc_pxo_pll8_map,
|
||
|
+ },
|
||
|
+ .clkr = {
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "prng_src",
|
||
|
+ .parent_names = gcc_pxo_pll8,
|
||
|
+ .num_parents = 2,
|
||
|
+ .ops = &clk_rcg_ops,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch prng_clk = {
|
||
|
+ .halt_reg = 0x2fd8,
|
||
|
+ .halt_check = BRANCH_HALT_VOTED,
|
||
|
+ .halt_bit = 10,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x3080,
|
||
|
+ .enable_mask = BIT(10),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "prng_clk",
|
||
|
+ .parent_names = (const char *[]){ "prng_src" },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static const struct freq_tbl clk_tbl_sdc[] = {
|
||
|
+ { 144000, P_PXO, 5, 18,625 },
|
||
|
+ { 400000, P_PLL8, 4, 1, 240 },
|
||
|
+ { 16000000, P_PLL8, 4, 1, 6 },
|
||
|
+ { 17070000, P_PLL8, 1, 2, 45 },
|
||
|
+ { 20210000, P_PLL8, 1, 1, 19 },
|
||
|
+ { 24000000, P_PLL8, 4, 1, 4 },
|
||
|
+ { 48000000, P_PLL8, 4, 1, 2 },
|
||
|
+ { 64000000, P_PLL8, 3, 1, 2 },
|
||
|
+ { 96000000, P_PLL8, 4, 0, 0 },
|
||
|
+ { 192000000, P_PLL8, 2, 0, 0 },
|
||
|
+ { }
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_rcg sdc1_src = {
|
||
|
+ .ns_reg = 0x282c,
|
||
|
+ .md_reg = 0x2828,
|
||
|
+ .mn = {
|
||
|
+ .mnctr_en_bit = 8,
|
||
|
+ .mnctr_reset_bit = 7,
|
||
|
+ .mnctr_mode_shift = 5,
|
||
|
+ .n_val_shift = 16,
|
||
|
+ .m_val_shift = 16,
|
||
|
+ .width = 8,
|
||
|
+ },
|
||
|
+ .p = {
|
||
|
+ .pre_div_shift = 3,
|
||
|
+ .pre_div_width = 2,
|
||
|
+ },
|
||
|
+ .s = {
|
||
|
+ .src_sel_shift = 0,
|
||
|
+ .parent_map = gcc_pxo_pll8_map,
|
||
|
+ },
|
||
|
+ .freq_tbl = clk_tbl_sdc,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x282c,
|
||
|
+ .enable_mask = BIT(11),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "sdc1_src",
|
||
|
+ .parent_names = gcc_pxo_pll8,
|
||
|
+ .num_parents = 2,
|
||
|
+ .ops = &clk_rcg_ops,
|
||
|
+ .flags = CLK_SET_RATE_GATE,
|
||
|
+ },
|
||
|
+ }
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch sdc1_clk = {
|
||
|
+ .halt_reg = 0x2fc8,
|
||
|
+ .halt_bit = 6,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x282c,
|
||
|
+ .enable_mask = BIT(9),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "sdc1_clk",
|
||
|
+ .parent_names = (const char *[]){ "sdc1_src" },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_SET_RATE_PARENT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_rcg sdc3_src = {
|
||
|
+ .ns_reg = 0x286c,
|
||
|
+ .md_reg = 0x2868,
|
||
|
+ .mn = {
|
||
|
+ .mnctr_en_bit = 8,
|
||
|
+ .mnctr_reset_bit = 7,
|
||
|
+ .mnctr_mode_shift = 5,
|
||
|
+ .n_val_shift = 16,
|
||
|
+ .m_val_shift = 16,
|
||
|
+ .width = 8,
|
||
|
+ },
|
||
|
+ .p = {
|
||
|
+ .pre_div_shift = 3,
|
||
|
+ .pre_div_width = 2,
|
||
|
+ },
|
||
|
+ .s = {
|
||
|
+ .src_sel_shift = 0,
|
||
|
+ .parent_map = gcc_pxo_pll8_map,
|
||
|
+ },
|
||
|
+ .freq_tbl = clk_tbl_sdc,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x286c,
|
||
|
+ .enable_mask = BIT(11),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "sdc3_src",
|
||
|
+ .parent_names = gcc_pxo_pll8,
|
||
|
+ .num_parents = 2,
|
||
|
+ .ops = &clk_rcg_ops,
|
||
|
+ .flags = CLK_SET_RATE_GATE,
|
||
|
+ },
|
||
|
+ }
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch sdc3_clk = {
|
||
|
+ .halt_reg = 0x2fc8,
|
||
|
+ .halt_bit = 4,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x286c,
|
||
|
+ .enable_mask = BIT(9),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "sdc3_clk",
|
||
|
+ .parent_names = (const char *[]){ "sdc3_src" },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_SET_RATE_PARENT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch sdc1_h_clk = {
|
||
|
+ .hwcg_reg = 0x2820,
|
||
|
+ .hwcg_bit = 6,
|
||
|
+ .halt_reg = 0x2fc8,
|
||
|
+ .halt_bit = 11,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2820,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "sdc1_h_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch sdc3_h_clk = {
|
||
|
+ .hwcg_reg = 0x2860,
|
||
|
+ .hwcg_bit = 6,
|
||
|
+ .halt_reg = 0x2fc8,
|
||
|
+ .halt_bit = 9,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2860,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "sdc3_h_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static const struct freq_tbl clk_tbl_tsif_ref[] = {
|
||
|
+ { 105000, P_PXO, 1, 1, 256 },
|
||
|
+ { }
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_rcg tsif_ref_src = {
|
||
|
+ .ns_reg = 0x2710,
|
||
|
+ .md_reg = 0x270c,
|
||
|
+ .mn = {
|
||
|
+ .mnctr_en_bit = 8,
|
||
|
+ .mnctr_reset_bit = 7,
|
||
|
+ .mnctr_mode_shift = 5,
|
||
|
+ .n_val_shift = 16,
|
||
|
+ .m_val_shift = 16,
|
||
|
+ .width = 16,
|
||
|
+ },
|
||
|
+ .p = {
|
||
|
+ .pre_div_shift = 3,
|
||
|
+ .pre_div_width = 2,
|
||
|
+ },
|
||
|
+ .s = {
|
||
|
+ .src_sel_shift = 0,
|
||
|
+ .parent_map = gcc_pxo_pll8_map,
|
||
|
+ },
|
||
|
+ .freq_tbl = clk_tbl_tsif_ref,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2710,
|
||
|
+ .enable_mask = BIT(11),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "tsif_ref_src",
|
||
|
+ .parent_names = gcc_pxo_pll8,
|
||
|
+ .num_parents = 2,
|
||
|
+ .ops = &clk_rcg_ops,
|
||
|
+ .flags = CLK_SET_RATE_GATE,
|
||
|
+ },
|
||
|
+ }
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch tsif_ref_clk = {
|
||
|
+ .halt_reg = 0x2fd4,
|
||
|
+ .halt_bit = 5,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2710,
|
||
|
+ .enable_mask = BIT(9),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "tsif_ref_clk",
|
||
|
+ .parent_names = (const char *[]){ "tsif_ref_src" },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_SET_RATE_PARENT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch tsif_h_clk = {
|
||
|
+ .hwcg_reg = 0x2700,
|
||
|
+ .hwcg_bit = 6,
|
||
|
+ .halt_reg = 0x2fd4,
|
||
|
+ .halt_bit = 7,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2700,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "tsif_h_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch dma_bam_h_clk = {
|
||
|
+ .hwcg_reg = 0x25c0,
|
||
|
+ .hwcg_bit = 6,
|
||
|
+ .halt_reg = 0x2fc8,
|
||
|
+ .halt_bit = 12,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x25c0,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "dma_bam_h_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch adm0_clk = {
|
||
|
+ .halt_reg = 0x2fdc,
|
||
|
+ .halt_check = BRANCH_HALT_VOTED,
|
||
|
+ .halt_bit = 12,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x3080,
|
||
|
+ .enable_mask = BIT(2),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "adm0_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch adm0_pbus_clk = {
|
||
|
+ .hwcg_reg = 0x2208,
|
||
|
+ .hwcg_bit = 6,
|
||
|
+ .halt_reg = 0x2fdc,
|
||
|
+ .halt_check = BRANCH_HALT_VOTED,
|
||
|
+ .halt_bit = 11,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x3080,
|
||
|
+ .enable_mask = BIT(3),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "adm0_pbus_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch pmic_arb0_h_clk = {
|
||
|
+ .halt_reg = 0x2fd8,
|
||
|
+ .halt_check = BRANCH_HALT_VOTED,
|
||
|
+ .halt_bit = 22,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x3080,
|
||
|
+ .enable_mask = BIT(8),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "pmic_arb0_h_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch pmic_arb1_h_clk = {
|
||
|
+ .halt_reg = 0x2fd8,
|
||
|
+ .halt_check = BRANCH_HALT_VOTED,
|
||
|
+ .halt_bit = 21,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x3080,
|
||
|
+ .enable_mask = BIT(9),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "pmic_arb1_h_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch pmic_ssbi2_clk = {
|
||
|
+ .halt_reg = 0x2fd8,
|
||
|
+ .halt_check = BRANCH_HALT_VOTED,
|
||
|
+ .halt_bit = 23,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x3080,
|
||
|
+ .enable_mask = BIT(7),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "pmic_ssbi2_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch rpm_msg_ram_h_clk = {
|
||
|
+ .hwcg_reg = 0x27e0,
|
||
|
+ .hwcg_bit = 6,
|
||
|
+ .halt_reg = 0x2fd8,
|
||
|
+ .halt_check = BRANCH_HALT_VOTED,
|
||
|
+ .halt_bit = 12,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x3080,
|
||
|
+ .enable_mask = BIT(6),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "rpm_msg_ram_h_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static const struct freq_tbl clk_tbl_pcie_ref[] = {
|
||
|
+ { 100000000, P_PLL3, 12, 0, 0 },
|
||
|
+ { }
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_rcg pcie_ref_src = {
|
||
|
+ .ns_reg = 0x3860,
|
||
|
+ .p = {
|
||
|
+ .pre_div_shift = 3,
|
||
|
+ .pre_div_width = 4,
|
||
|
+ },
|
||
|
+ .s = {
|
||
|
+ .src_sel_shift = 0,
|
||
|
+ .parent_map = gcc_pxo_pll3_map,
|
||
|
+ },
|
||
|
+ .freq_tbl = clk_tbl_pcie_ref,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x3860,
|
||
|
+ .enable_mask = BIT(11),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "pcie_ref_src",
|
||
|
+ .parent_names = gcc_pxo_pll3,
|
||
|
+ .num_parents = 2,
|
||
|
+ .ops = &clk_rcg_ops,
|
||
|
+ .flags = CLK_SET_RATE_GATE,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch pcie_ref_src_clk = {
|
||
|
+ .halt_reg = 0x2fdc,
|
||
|
+ .halt_bit = 30,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x3860,
|
||
|
+ .enable_mask = BIT(9),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "pcie_ref_src_clk",
|
||
|
+ .parent_names = (const char *[]){ "pcie_ref_src" },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_SET_RATE_PARENT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch pcie_a_clk = {
|
||
|
+ .halt_reg = 0x2fc0,
|
||
|
+ .halt_bit = 13,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x22c0,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "pcie_a_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch pcie_aux_clk = {
|
||
|
+ .halt_reg = 0x2fdc,
|
||
|
+ .halt_bit = 31,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x22c8,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "pcie_aux_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch pcie_h_clk = {
|
||
|
+ .halt_reg = 0x2fd4,
|
||
|
+ .halt_bit = 8,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x22cc,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "pcie_h_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch pcie_phy_clk = {
|
||
|
+ .halt_reg = 0x2fdc,
|
||
|
+ .halt_bit = 29,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x22d0,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "pcie_phy_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_rcg pcie1_ref_src = {
|
||
|
+ .ns_reg = 0x3aa0,
|
||
|
+ .p = {
|
||
|
+ .pre_div_shift = 3,
|
||
|
+ .pre_div_width = 4,
|
||
|
+ },
|
||
|
+ .s = {
|
||
|
+ .src_sel_shift = 0,
|
||
|
+ .parent_map = gcc_pxo_pll3_map,
|
||
|
+ },
|
||
|
+ .freq_tbl = clk_tbl_pcie_ref,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x3aa0,
|
||
|
+ .enable_mask = BIT(11),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "pcie1_ref_src",
|
||
|
+ .parent_names = gcc_pxo_pll3,
|
||
|
+ .num_parents = 2,
|
||
|
+ .ops = &clk_rcg_ops,
|
||
|
+ .flags = CLK_SET_RATE_GATE,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch pcie1_ref_src_clk = {
|
||
|
+ .halt_reg = 0x2fdc,
|
||
|
+ .halt_bit = 27,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x3aa0,
|
||
|
+ .enable_mask = BIT(9),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "pcie1_ref_src_clk",
|
||
|
+ .parent_names = (const char *[]){ "pcie1_ref_src" },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_SET_RATE_PARENT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch pcie1_a_clk = {
|
||
|
+ .halt_reg = 0x2fc0,
|
||
|
+ .halt_bit = 10,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x3a80,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "pcie1_a_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch pcie1_aux_clk = {
|
||
|
+ .halt_reg = 0x2fdc,
|
||
|
+ .halt_bit = 28,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x3a88,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "pcie1_aux_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch pcie1_h_clk = {
|
||
|
+ .halt_reg = 0x2fd4,
|
||
|
+ .halt_bit = 9,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x3a8c,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "pcie1_h_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch pcie1_phy_clk = {
|
||
|
+ .halt_reg = 0x2fdc,
|
||
|
+ .halt_bit = 26,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x3a90,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "pcie1_phy_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_rcg pcie2_ref_src = {
|
||
|
+ .ns_reg = 0x3ae0,
|
||
|
+ .p = {
|
||
|
+ .pre_div_shift = 3,
|
||
|
+ .pre_div_width = 4,
|
||
|
+ },
|
||
|
+ .s = {
|
||
|
+ .src_sel_shift = 0,
|
||
|
+ .parent_map = gcc_pxo_pll3_map,
|
||
|
+ },
|
||
|
+ .freq_tbl = clk_tbl_pcie_ref,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x3ae0,
|
||
|
+ .enable_mask = BIT(11),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "pcie2_ref_src",
|
||
|
+ .parent_names = gcc_pxo_pll3,
|
||
|
+ .num_parents = 2,
|
||
|
+ .ops = &clk_rcg_ops,
|
||
|
+ .flags = CLK_SET_RATE_GATE,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch pcie2_ref_src_clk = {
|
||
|
+ .halt_reg = 0x2fdc,
|
||
|
+ .halt_bit = 24,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x3ae0,
|
||
|
+ .enable_mask = BIT(9),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "pcie2_ref_src_clk",
|
||
|
+ .parent_names = (const char *[]){ "pcie2_ref_src" },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_SET_RATE_PARENT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch pcie2_a_clk = {
|
||
|
+ .halt_reg = 0x2fc0,
|
||
|
+ .halt_bit = 9,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x3ac0,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "pcie2_a_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch pcie2_aux_clk = {
|
||
|
+ .halt_reg = 0x2fdc,
|
||
|
+ .halt_bit = 25,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x3ac8,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "pcie2_aux_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch pcie2_h_clk = {
|
||
|
+ .halt_reg = 0x2fd4,
|
||
|
+ .halt_bit = 10,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x3acc,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "pcie2_h_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch pcie2_phy_clk = {
|
||
|
+ .halt_reg = 0x2fdc,
|
||
|
+ .halt_bit = 23,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x3ad0,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "pcie2_phy_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static const struct freq_tbl clk_tbl_sata_ref[] = {
|
||
|
+ { 100000000, P_PLL3, 12, 0, 0 },
|
||
|
+ { }
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_rcg sata_ref_src = {
|
||
|
+ .ns_reg = 0x2c08,
|
||
|
+ .p = {
|
||
|
+ .pre_div_shift = 3,
|
||
|
+ .pre_div_width = 4,
|
||
|
+ },
|
||
|
+ .s = {
|
||
|
+ .src_sel_shift = 0,
|
||
|
+ .parent_map = gcc_pxo_pll3_sata_map,
|
||
|
+ },
|
||
|
+ .freq_tbl = clk_tbl_sata_ref,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2c08,
|
||
|
+ .enable_mask = BIT(7),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "sata_ref_src",
|
||
|
+ .parent_names = gcc_pxo_pll3,
|
||
|
+ .num_parents = 2,
|
||
|
+ .ops = &clk_rcg_ops,
|
||
|
+ .flags = CLK_SET_RATE_GATE,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch sata_rxoob_clk = {
|
||
|
+ .halt_reg = 0x2fdc,
|
||
|
+ .halt_bit = 20,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2c0c,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "sata_rxoob_clk",
|
||
|
+ .parent_names = (const char *[]){ "sata_ref_src" },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_SET_RATE_PARENT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch sata_pmalive_clk = {
|
||
|
+ .halt_reg = 0x2fdc,
|
||
|
+ .halt_bit = 19,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2c10,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "sata_pmalive_clk",
|
||
|
+ .parent_names = (const char *[]){ "sata_ref_src" },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_SET_RATE_PARENT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch sata_phy_ref_clk = {
|
||
|
+ .halt_reg = 0x2fdc,
|
||
|
+ .halt_bit = 18,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2c14,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "sata_phy_ref_clk",
|
||
|
+ .parent_names = (const char *[]){ "pxo" },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch sata_a_clk = {
|
||
|
+ .halt_reg = 0x2fc0,
|
||
|
+ .halt_bit = 12,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2c20,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "sata_a_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch sata_h_clk = {
|
||
|
+ .halt_reg = 0x2fdc,
|
||
|
+ .halt_bit = 21,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2c00,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "sata_h_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch sfab_sata_s_h_clk = {
|
||
|
+ .halt_reg = 0x2fc4,
|
||
|
+ .halt_bit = 14,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2480,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "sfab_sata_s_h_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch sata_phy_cfg_clk = {
|
||
|
+ .halt_reg = 0x2fcc,
|
||
|
+ .halt_bit = 14,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2c40,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "sata_phy_cfg_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static const struct freq_tbl clk_tbl_usb30_master[] = {
|
||
|
+ { 125000000, P_PLL0, 1, 5, 32 },
|
||
|
+ { }
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_rcg usb30_master_clk_src = {
|
||
|
+ .ns_reg = 0x3b2c,
|
||
|
+ .md_reg = 0x3b28,
|
||
|
+ .mn = {
|
||
|
+ .mnctr_en_bit = 8,
|
||
|
+ .mnctr_reset_bit = 7,
|
||
|
+ .mnctr_mode_shift = 5,
|
||
|
+ .n_val_shift = 16,
|
||
|
+ .m_val_shift = 16,
|
||
|
+ .width = 8,
|
||
|
+ },
|
||
|
+ .p = {
|
||
|
+ .pre_div_shift = 3,
|
||
|
+ .pre_div_width = 2,
|
||
|
+ },
|
||
|
+ .s = {
|
||
|
+ .src_sel_shift = 0,
|
||
|
+ .parent_map = gcc_pxo_pll8_pll0,
|
||
|
+ },
|
||
|
+ .freq_tbl = clk_tbl_usb30_master,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x3b2c,
|
||
|
+ .enable_mask = BIT(11),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "usb30_master_ref_src",
|
||
|
+ .parent_names = gcc_pxo_pll8_pll0_map,
|
||
|
+ .num_parents = 3,
|
||
|
+ .ops = &clk_rcg_ops,
|
||
|
+ .flags = CLK_SET_RATE_GATE,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch usb30_0_branch_clk = {
|
||
|
+ .halt_reg = 0x2fc4,
|
||
|
+ .halt_bit = 22,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x3b24,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "usb30_0_branch_clk",
|
||
|
+ .parent_names = (const char *[]){ "usb30_master_ref_src", },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_SET_RATE_PARENT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch usb30_1_branch_clk = {
|
||
|
+ .halt_reg = 0x2fc4,
|
||
|
+ .halt_bit = 17,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x3b34,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "usb30_1_branch_clk",
|
||
|
+ .parent_names = (const char *[]){ "usb30_master_ref_src", },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_SET_RATE_PARENT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static const struct freq_tbl clk_tbl_usb30_utmi[] = {
|
||
|
+ { 60000000, P_PLL0, 1, 1, 40 },
|
||
|
+ { }
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_rcg usb30_utmi_clk = {
|
||
|
+ .ns_reg = 0x3b44,
|
||
|
+ .md_reg = 0x3b40,
|
||
|
+ .mn = {
|
||
|
+ .mnctr_en_bit = 8,
|
||
|
+ .mnctr_reset_bit = 7,
|
||
|
+ .mnctr_mode_shift = 5,
|
||
|
+ .n_val_shift = 16,
|
||
|
+ .m_val_shift = 16,
|
||
|
+ .width = 8,
|
||
|
+ },
|
||
|
+ .p = {
|
||
|
+ .pre_div_shift = 3,
|
||
|
+ .pre_div_width = 2,
|
||
|
+ },
|
||
|
+ .s = {
|
||
|
+ .src_sel_shift = 0,
|
||
|
+ .parent_map = gcc_pxo_pll8_pll0,
|
||
|
+ },
|
||
|
+ .freq_tbl = clk_tbl_usb30_utmi,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x3b44,
|
||
|
+ .enable_mask = BIT(11),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "usb30_utmi_clk",
|
||
|
+ .parent_names = gcc_pxo_pll8_pll0_map,
|
||
|
+ .num_parents = 3,
|
||
|
+ .ops = &clk_rcg_ops,
|
||
|
+ .flags = CLK_SET_RATE_GATE,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch usb30_0_utmi_clk_ctl = {
|
||
|
+ .halt_reg = 0x2fc4,
|
||
|
+ .halt_bit = 21,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x3b48,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "usb30_0_utmi_clk_ctl",
|
||
|
+ .parent_names = (const char *[]){ "usb30_utmi_clk", },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_SET_RATE_PARENT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch usb30_1_utmi_clk_ctl = {
|
||
|
+ .halt_reg = 0x2fc4,
|
||
|
+ .halt_bit = 15,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x3b4c,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "usb30_1_utmi_clk_ctl",
|
||
|
+ .parent_names = (const char *[]){ "usb30_utmi_clk", },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_SET_RATE_PARENT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static const struct freq_tbl clk_tbl_usb[] = {
|
||
|
+ { 60000000, P_PLL8, 1, 5, 32 },
|
||
|
+ { }
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_rcg usb_hs1_xcvr_clk_src = {
|
||
|
+ .ns_reg = 0x290C,
|
||
|
+ .md_reg = 0x2908,
|
||
|
+ .mn = {
|
||
|
+ .mnctr_en_bit = 8,
|
||
|
+ .mnctr_reset_bit = 7,
|
||
|
+ .mnctr_mode_shift = 5,
|
||
|
+ .n_val_shift = 16,
|
||
|
+ .m_val_shift = 16,
|
||
|
+ .width = 8,
|
||
|
+ },
|
||
|
+ .p = {
|
||
|
+ .pre_div_shift = 3,
|
||
|
+ .pre_div_width = 2,
|
||
|
+ },
|
||
|
+ .s = {
|
||
|
+ .src_sel_shift = 0,
|
||
|
+ .parent_map = gcc_pxo_pll8_pll0,
|
||
|
+ },
|
||
|
+ .freq_tbl = clk_tbl_usb,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2968,
|
||
|
+ .enable_mask = BIT(11),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "usb_hs1_xcvr_src",
|
||
|
+ .parent_names = gcc_pxo_pll8_pll0_map,
|
||
|
+ .num_parents = 3,
|
||
|
+ .ops = &clk_rcg_ops,
|
||
|
+ .flags = CLK_SET_RATE_GATE,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch usb_hs1_xcvr_clk = {
|
||
|
+ .halt_reg = 0x2fcc,
|
||
|
+ .halt_bit = 17,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x290c,
|
||
|
+ .enable_mask = BIT(9),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "usb_hs1_xcvr_clk",
|
||
|
+ .parent_names = (const char *[]){ "usb_hs1_xcvr_src" },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_SET_RATE_PARENT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch usb_hs1_h_clk = {
|
||
|
+ .hwcg_reg = 0x2900,
|
||
|
+ .hwcg_bit = 6,
|
||
|
+ .halt_reg = 0x2fc8,
|
||
|
+ .halt_bit = 1,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2900,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "usb_hs1_h_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_rcg usb_fs1_xcvr_clk_src = {
|
||
|
+ .ns_reg = 0x2968,
|
||
|
+ .md_reg = 0x2964,
|
||
|
+ .mn = {
|
||
|
+ .mnctr_en_bit = 8,
|
||
|
+ .mnctr_reset_bit = 7,
|
||
|
+ .mnctr_mode_shift = 5,
|
||
|
+ .n_val_shift = 16,
|
||
|
+ .m_val_shift = 16,
|
||
|
+ .width = 8,
|
||
|
+ },
|
||
|
+ .p = {
|
||
|
+ .pre_div_shift = 3,
|
||
|
+ .pre_div_width = 2,
|
||
|
+ },
|
||
|
+ .s = {
|
||
|
+ .src_sel_shift = 0,
|
||
|
+ .parent_map = gcc_pxo_pll8_pll0,
|
||
|
+ },
|
||
|
+ .freq_tbl = clk_tbl_usb,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2968,
|
||
|
+ .enable_mask = BIT(11),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "usb_fs1_xcvr_src",
|
||
|
+ .parent_names = gcc_pxo_pll8_pll0_map,
|
||
|
+ .num_parents = 3,
|
||
|
+ .ops = &clk_rcg_ops,
|
||
|
+ .flags = CLK_SET_RATE_GATE,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch usb_fs1_xcvr_clk = {
|
||
|
+ .halt_reg = 0x2fcc,
|
||
|
+ .halt_bit = 17,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2968,
|
||
|
+ .enable_mask = BIT(9),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "usb_fs1_xcvr_clk",
|
||
|
+ .parent_names = (const char *[]){ "usb_fs1_xcvr_src", },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_SET_RATE_PARENT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch usb_fs1_sys_clk = {
|
||
|
+ .halt_reg = 0x2fcc,
|
||
|
+ .halt_bit = 18,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x296c,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "usb_fs1_sys_clk",
|
||
|
+ .parent_names = (const char *[]){ "usb_fs1_xcvr_src", },
|
||
|
+ .num_parents = 1,
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_SET_RATE_PARENT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_branch usb_fs1_h_clk = {
|
||
|
+ .halt_reg = 0x2fcc,
|
||
|
+ .halt_bit = 19,
|
||
|
+ .clkr = {
|
||
|
+ .enable_reg = 0x2960,
|
||
|
+ .enable_mask = BIT(4),
|
||
|
+ .hw.init = &(struct clk_init_data){
|
||
|
+ .name = "usb_fs1_h_clk",
|
||
|
+ .ops = &clk_branch_ops,
|
||
|
+ .flags = CLK_IS_ROOT,
|
||
|
+ },
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static struct clk_regmap *gcc_ipq806x_clks[] = {
|
||
|
+ [PLL3] = &pll3.clkr,
|
||
|
+ [PLL8] = &pll8.clkr,
|
||
|
+ [PLL8_VOTE] = &pll8_vote,
|
||
|
+ [PLL14] = &pll14.clkr,
|
||
|
+ [PLL14_VOTE] = &pll14_vote,
|
||
|
+ [GSBI1_UART_SRC] = &gsbi1_uart_src.clkr,
|
||
|
+ [GSBI1_UART_CLK] = &gsbi1_uart_clk.clkr,
|
||
|
+ [GSBI2_UART_SRC] = &gsbi2_uart_src.clkr,
|
||
|
+ [GSBI2_UART_CLK] = &gsbi2_uart_clk.clkr,
|
||
|
+ [GSBI4_UART_SRC] = &gsbi4_uart_src.clkr,
|
||
|
+ [GSBI4_UART_CLK] = &gsbi4_uart_clk.clkr,
|
||
|
+ [GSBI5_UART_SRC] = &gsbi5_uart_src.clkr,
|
||
|
+ [GSBI5_UART_CLK] = &gsbi5_uart_clk.clkr,
|
||
|
+ [GSBI6_UART_SRC] = &gsbi6_uart_src.clkr,
|
||
|
+ [GSBI6_UART_CLK] = &gsbi6_uart_clk.clkr,
|
||
|
+ [GSBI7_UART_SRC] = &gsbi7_uart_src.clkr,
|
||
|
+ [GSBI7_UART_CLK] = &gsbi7_uart_clk.clkr,
|
||
|
+ [GSBI1_QUP_SRC] = &gsbi1_qup_src.clkr,
|
||
|
+ [GSBI1_QUP_CLK] = &gsbi1_qup_clk.clkr,
|
||
|
+ [GSBI2_QUP_SRC] = &gsbi2_qup_src.clkr,
|
||
|
+ [GSBI2_QUP_CLK] = &gsbi2_qup_clk.clkr,
|
||
|
+ [GSBI4_QUP_SRC] = &gsbi4_qup_src.clkr,
|
||
|
+ [GSBI4_QUP_CLK] = &gsbi4_qup_clk.clkr,
|
||
|
+ [GSBI5_QUP_SRC] = &gsbi5_qup_src.clkr,
|
||
|
+ [GSBI5_QUP_CLK] = &gsbi5_qup_clk.clkr,
|
||
|
+ [GSBI6_QUP_SRC] = &gsbi6_qup_src.clkr,
|
||
|
+ [GSBI6_QUP_CLK] = &gsbi6_qup_clk.clkr,
|
||
|
+ [GSBI7_QUP_SRC] = &gsbi7_qup_src.clkr,
|
||
|
+ [GSBI7_QUP_CLK] = &gsbi7_qup_clk.clkr,
|
||
|
+ [GP0_SRC] = &gp0_src.clkr,
|
||
|
+ [GP0_CLK] = &gp0_clk.clkr,
|
||
|
+ [GP1_SRC] = &gp1_src.clkr,
|
||
|
+ [GP1_CLK] = &gp1_clk.clkr,
|
||
|
+ [GP2_SRC] = &gp2_src.clkr,
|
||
|
+ [GP2_CLK] = &gp2_clk.clkr,
|
||
|
+ [PMEM_A_CLK] = &pmem_clk.clkr,
|
||
|
+ [PRNG_SRC] = &prng_src.clkr,
|
||
|
+ [PRNG_CLK] = &prng_clk.clkr,
|
||
|
+ [SDC1_SRC] = &sdc1_src.clkr,
|
||
|
+ [SDC1_CLK] = &sdc1_clk.clkr,
|
||
|
+ [SDC3_SRC] = &sdc3_src.clkr,
|
||
|
+ [SDC3_CLK] = &sdc3_clk.clkr,
|
||
|
+ [TSIF_REF_SRC] = &tsif_ref_src.clkr,
|
||
|
+ [TSIF_REF_CLK] = &tsif_ref_clk.clkr,
|
||
|
+ [DMA_BAM_H_CLK] = &dma_bam_h_clk.clkr,
|
||
|
+ [GSBI1_H_CLK] = &gsbi1_h_clk.clkr,
|
||
|
+ [GSBI2_H_CLK] = &gsbi2_h_clk.clkr,
|
||
|
+ [GSBI4_H_CLK] = &gsbi4_h_clk.clkr,
|
||
|
+ [GSBI5_H_CLK] = &gsbi5_h_clk.clkr,
|
||
|
+ [GSBI6_H_CLK] = &gsbi6_h_clk.clkr,
|
||
|
+ [GSBI7_H_CLK] = &gsbi7_h_clk.clkr,
|
||
|
+ [TSIF_H_CLK] = &tsif_h_clk.clkr,
|
||
|
+ [SDC1_H_CLK] = &sdc1_h_clk.clkr,
|
||
|
+ [SDC3_H_CLK] = &sdc3_h_clk.clkr,
|
||
|
+ [ADM0_CLK] = &adm0_clk.clkr,
|
||
|
+ [ADM0_PBUS_CLK] = &adm0_pbus_clk.clkr,
|
||
|
+ [PCIE_A_CLK] = &pcie_a_clk.clkr,
|
||
|
+ [PCIE_AUX_CLK] = &pcie_aux_clk.clkr,
|
||
|
+ [PCIE_H_CLK] = &pcie_h_clk.clkr,
|
||
|
+ [PCIE_PHY_CLK] = &pcie_phy_clk.clkr,
|
||
|
+ [SFAB_SATA_S_H_CLK] = &sfab_sata_s_h_clk.clkr,
|
||
|
+ [PMIC_ARB0_H_CLK] = &pmic_arb0_h_clk.clkr,
|
||
|
+ [PMIC_ARB1_H_CLK] = &pmic_arb1_h_clk.clkr,
|
||
|
+ [PMIC_SSBI2_CLK] = &pmic_ssbi2_clk.clkr,
|
||
|
+ [RPM_MSG_RAM_H_CLK] = &rpm_msg_ram_h_clk.clkr,
|
||
|
+ [SATA_H_CLK] = &sata_h_clk.clkr,
|
||
|
+ [SATA_CLK_SRC] = &sata_ref_src.clkr,
|
||
|
+ [SATA_RXOOB_CLK] = &sata_rxoob_clk.clkr,
|
||
|
+ [SATA_PMALIVE_CLK] = &sata_pmalive_clk.clkr,
|
||
|
+ [SATA_PHY_REF_CLK] = &sata_phy_ref_clk.clkr,
|
||
|
+ [SATA_A_CLK] = &sata_a_clk.clkr,
|
||
|
+ [SATA_PHY_CFG_CLK] = &sata_phy_cfg_clk.clkr,
|
||
|
+ [PCIE_ALT_REF_SRC] = &pcie_ref_src.clkr,
|
||
|
+ [PCIE_ALT_REF_CLK] = &pcie_ref_src_clk.clkr,
|
||
|
+ [PCIE_1_A_CLK] = &pcie1_a_clk.clkr,
|
||
|
+ [PCIE_1_AUX_CLK] = &pcie1_aux_clk.clkr,
|
||
|
+ [PCIE_1_H_CLK] = &pcie1_h_clk.clkr,
|
||
|
+ [PCIE_1_PHY_CLK] = &pcie1_phy_clk.clkr,
|
||
|
+ [PCIE_1_ALT_REF_SRC] = &pcie1_ref_src.clkr,
|
||
|
+ [PCIE_1_ALT_REF_CLK] = &pcie1_ref_src_clk.clkr,
|
||
|
+ [PCIE_2_A_CLK] = &pcie2_a_clk.clkr,
|
||
|
+ [PCIE_2_AUX_CLK] = &pcie2_aux_clk.clkr,
|
||
|
+ [PCIE_2_H_CLK] = &pcie2_h_clk.clkr,
|
||
|
+ [PCIE_2_PHY_CLK] = &pcie2_phy_clk.clkr,
|
||
|
+ [PCIE_2_ALT_REF_SRC] = &pcie2_ref_src.clkr,
|
||
|
+ [PCIE_2_ALT_REF_CLK] = &pcie2_ref_src_clk.clkr,
|
||
|
+ [USB30_MASTER_SRC] = &usb30_master_clk_src.clkr,
|
||
|
+ [USB30_0_MASTER_CLK] = &usb30_0_branch_clk.clkr,
|
||
|
+ [USB30_1_MASTER_CLK] = &usb30_1_branch_clk.clkr,
|
||
|
+ [USB30_UTMI_SRC] = &usb30_utmi_clk.clkr,
|
||
|
+ [USB30_0_UTMI_CLK] = &usb30_0_utmi_clk_ctl.clkr,
|
||
|
+ [USB30_1_UTMI_CLK] = &usb30_1_utmi_clk_ctl.clkr,
|
||
|
+ [USB_HS1_H_CLK] = &usb_hs1_h_clk.clkr,
|
||
|
+ [USB_HS1_XCVR_SRC] = &usb_hs1_xcvr_clk_src.clkr,
|
||
|
+ [USB_HS1_XCVR_CLK] = &usb_hs1_xcvr_clk.clkr,
|
||
|
+ [USB_FS1_H_CLK] = &usb_fs1_h_clk.clkr,
|
||
|
+ [USB_FS1_XCVR_SRC] = &usb_fs1_xcvr_clk_src.clkr,
|
||
|
+ [USB_FS1_XCVR_CLK] = &usb_fs1_xcvr_clk.clkr,
|
||
|
+ [USB_FS1_SYSTEM_CLK] = &usb_fs1_sys_clk.clkr,
|
||
|
+};
|
||
|
+
|
||
|
+static const struct qcom_reset_map gcc_ipq806x_resets[] = {
|
||
|
+ [QDSS_STM_RESET] = { 0x2060, 6 },
|
||
|
+ [AFAB_SMPSS_S_RESET] = { 0x20b8, 2 },
|
||
|
+ [AFAB_SMPSS_M1_RESET] = { 0x20b8, 1 },
|
||
|
+ [AFAB_SMPSS_M0_RESET] = { 0x20b8, 0 },
|
||
|
+ [AFAB_EBI1_CH0_RESET] = { 0x20c0, 7 },
|
||
|
+ [AFAB_EBI1_CH1_RESET] = { 0x20c4, 7 },
|
||
|
+ [SFAB_ADM0_M0_RESET] = { 0x21e0, 7 },
|
||
|
+ [SFAB_ADM0_M1_RESET] = { 0x21e4, 7 },
|
||
|
+ [SFAB_ADM0_M2_RESET] = { 0x21e8, 7 },
|
||
|
+ [ADM0_C2_RESET] = { 0x220c, 4 },
|
||
|
+ [ADM0_C1_RESET] = { 0x220c, 3 },
|
||
|
+ [ADM0_C0_RESET] = { 0x220c, 2 },
|
||
|
+ [ADM0_PBUS_RESET] = { 0x220c, 1 },
|
||
|
+ [ADM0_RESET] = { 0x220c, 0 },
|
||
|
+ [QDSS_CLKS_SW_RESET] = { 0x2260, 5 },
|
||
|
+ [QDSS_POR_RESET] = { 0x2260, 4 },
|
||
|
+ [QDSS_TSCTR_RESET] = { 0x2260, 3 },
|
||
|
+ [QDSS_HRESET_RESET] = { 0x2260, 2 },
|
||
|
+ [QDSS_AXI_RESET] = { 0x2260, 1 },
|
||
|
+ [QDSS_DBG_RESET] = { 0x2260, 0 },
|
||
|
+ [SFAB_PCIE_M_RESET] = { 0x22d8, 1 },
|
||
|
+ [SFAB_PCIE_S_RESET] = { 0x22d8, 0 },
|
||
|
+ [PCIE_EXT_RESET] = { 0x22dc, 6 },
|
||
|
+ [PCIE_PHY_RESET] = { 0x22dc, 5 },
|
||
|
+ [PCIE_PCI_RESET] = { 0x22dc, 4 },
|
||
|
+ [PCIE_POR_RESET] = { 0x22dc, 3 },
|
||
|
+ [PCIE_HCLK_RESET] = { 0x22dc, 2 },
|
||
|
+ [PCIE_ACLK_RESET] = { 0x22dc, 0 },
|
||
|
+ [SFAB_LPASS_RESET] = { 0x23a0, 7 },
|
||
|
+ [SFAB_AFAB_M_RESET] = { 0x23e0, 7 },
|
||
|
+ [AFAB_SFAB_M0_RESET] = { 0x2420, 7 },
|
||
|
+ [AFAB_SFAB_M1_RESET] = { 0x2424, 7 },
|
||
|
+ [SFAB_SATA_S_RESET] = { 0x2480, 7 },
|
||
|
+ [SFAB_DFAB_M_RESET] = { 0x2500, 7 },
|
||
|
+ [DFAB_SFAB_M_RESET] = { 0x2520, 7 },
|
||
|
+ [DFAB_SWAY0_RESET] = { 0x2540, 7 },
|
||
|
+ [DFAB_SWAY1_RESET] = { 0x2544, 7 },
|
||
|
+ [DFAB_ARB0_RESET] = { 0x2560, 7 },
|
||
|
+ [DFAB_ARB1_RESET] = { 0x2564, 7 },
|
||
|
+ [PPSS_PROC_RESET] = { 0x2594, 1 },
|
||
|
+ [PPSS_RESET] = { 0x2594, 0 },
|
||
|
+ [DMA_BAM_RESET] = { 0x25c0, 7 },
|
||
|
+ [SPS_TIC_H_RESET] = { 0x2600, 7 },
|
||
|
+ [SFAB_CFPB_M_RESET] = { 0x2680, 7 },
|
||
|
+ [SFAB_CFPB_S_RESET] = { 0x26c0, 7 },
|
||
|
+ [TSIF_H_RESET] = { 0x2700, 7 },
|
||
|
+ [CE1_H_RESET] = { 0x2720, 7 },
|
||
|
+ [CE1_CORE_RESET] = { 0x2724, 7 },
|
||
|
+ [CE1_SLEEP_RESET] = { 0x2728, 7 },
|
||
|
+ [CE2_H_RESET] = { 0x2740, 7 },
|
||
|
+ [CE2_CORE_RESET] = { 0x2744, 7 },
|
||
|
+ [SFAB_SFPB_M_RESET] = { 0x2780, 7 },
|
||
|
+ [SFAB_SFPB_S_RESET] = { 0x27a0, 7 },
|
||
|
+ [RPM_PROC_RESET] = { 0x27c0, 7 },
|
||
|
+ [PMIC_SSBI2_RESET] = { 0x280c, 12 },
|
||
|
+ [SDC1_RESET] = { 0x2830, 0 },
|
||
|
+ [SDC2_RESET] = { 0x2850, 0 },
|
||
|
+ [SDC3_RESET] = { 0x2870, 0 },
|
||
|
+ [SDC4_RESET] = { 0x2890, 0 },
|
||
|
+ [USB_HS1_RESET] = { 0x2910, 0 },
|
||
|
+ [USB_HSIC_RESET] = { 0x2934, 0 },
|
||
|
+ [USB_FS1_XCVR_RESET] = { 0x2974, 1 },
|
||
|
+ [USB_FS1_RESET] = { 0x2974, 0 },
|
||
|
+ [GSBI1_RESET] = { 0x29dc, 0 },
|
||
|
+ [GSBI2_RESET] = { 0x29fc, 0 },
|
||
|
+ [GSBI3_RESET] = { 0x2a1c, 0 },
|
||
|
+ [GSBI4_RESET] = { 0x2a3c, 0 },
|
||
|
+ [GSBI5_RESET] = { 0x2a5c, 0 },
|
||
|
+ [GSBI6_RESET] = { 0x2a7c, 0 },
|
||
|
+ [GSBI7_RESET] = { 0x2a9c, 0 },
|
||
|
+ [SPDM_RESET] = { 0x2b6c, 0 },
|
||
|
+ [SEC_CTRL_RESET] = { 0x2b80, 7 },
|
||
|
+ [TLMM_H_RESET] = { 0x2ba0, 7 },
|
||
|
+ [SFAB_SATA_M_RESET] = { 0x2c18, 0 },
|
||
|
+ [SATA_RESET] = { 0x2c1c, 0 },
|
||
|
+ [TSSC_RESET] = { 0x2ca0, 7 },
|
||
|
+ [PDM_RESET] = { 0x2cc0, 12 },
|
||
|
+ [MPM_H_RESET] = { 0x2da0, 7 },
|
||
|
+ [MPM_RESET] = { 0x2da4, 0 },
|
||
|
+ [SFAB_SMPSS_S_RESET] = { 0x2e00, 7 },
|
||
|
+ [PRNG_RESET] = { 0x2e80, 12 },
|
||
|
+ [SFAB_CE3_M_RESET] = { 0x36c8, 1 },
|
||
|
+ [SFAB_CE3_S_RESET] = { 0x36c8, 0 },
|
||
|
+ [CE3_SLEEP_RESET] = { 0x36d0, 7 },
|
||
|
+ [PCIE_1_M_RESET] = { 0x3a98, 1 },
|
||
|
+ [PCIE_1_S_RESET] = { 0x3a98, 0 },
|
||
|
+ [PCIE_1_EXT_RESET] = { 0x3a9c, 6 },
|
||
|
+ [PCIE_1_PHY_RESET] = { 0x3a9c, 5 },
|
||
|
+ [PCIE_1_PCI_RESET] = { 0x3a9c, 4 },
|
||
|
+ [PCIE_1_POR_RESET] = { 0x3a9c, 3 },
|
||
|
+ [PCIE_1_HCLK_RESET] = { 0x3a9c, 2 },
|
||
|
+ [PCIE_1_ACLK_RESET] = { 0x3a9c, 0 },
|
||
|
+ [PCIE_2_M_RESET] = { 0x3ad8, 1 },
|
||
|
+ [PCIE_2_S_RESET] = { 0x3ad8, 0 },
|
||
|
+ [PCIE_2_EXT_RESET] = { 0x3adc, 6 },
|
||
|
+ [PCIE_2_PHY_RESET] = { 0x3adc, 5 },
|
||
|
+ [PCIE_2_PCI_RESET] = { 0x3adc, 4 },
|
||
|
+ [PCIE_2_POR_RESET] = { 0x3adc, 3 },
|
||
|
+ [PCIE_2_HCLK_RESET] = { 0x3adc, 2 },
|
||
|
+ [PCIE_2_ACLK_RESET] = { 0x3adc, 0 },
|
||
|
+ [SFAB_USB30_S_RESET] = { 0x3b54, 1 },
|
||
|
+ [SFAB_USB30_M_RESET] = { 0x3b54, 0 },
|
||
|
+ [USB30_0_PORT2_HS_PHY_RESET] = { 0x3b50, 5 },
|
||
|
+ [USB30_0_MASTER_RESET] = { 0x3b50, 4 },
|
||
|
+ [USB30_0_SLEEP_RESET] = { 0x3b50, 3 },
|
||
|
+ [USB30_0_UTMI_PHY_RESET] = { 0x3b50, 2 },
|
||
|
+ [USB30_0_POWERON_RESET] = { 0x3b50, 1 },
|
||
|
+ [USB30_0_PHY_RESET] = { 0x3b50, 0 },
|
||
|
+ [USB30_1_MASTER_RESET] = { 0x3b58, 4 },
|
||
|
+ [USB30_1_SLEEP_RESET] = { 0x3b58, 3 },
|
||
|
+ [USB30_1_UTMI_PHY_RESET] = { 0x3b58, 2 },
|
||
|
+ [USB30_1_POWERON_RESET] = { 0x3b58, 1 },
|
||
|
+ [USB30_1_PHY_RESET] = { 0x3b58, 0 },
|
||
|
+ [NSSFB0_RESET] = { 0x3b60, 6 },
|
||
|
+ [NSSFB1_RESET] = { 0x3b60, 7 },
|
||
|
+};
|
||
|
+
|
||
|
+static const struct regmap_config gcc_ipq806x_regmap_config = {
|
||
|
+ .reg_bits = 32,
|
||
|
+ .reg_stride = 4,
|
||
|
+ .val_bits = 32,
|
||
|
+ .max_register = 0x3e40,
|
||
|
+ .fast_io = true,
|
||
|
+};
|
||
|
+
|
||
|
+static const struct qcom_cc_desc gcc_ipq806x_desc = {
|
||
|
+ .config = &gcc_ipq806x_regmap_config,
|
||
|
+ .clks = gcc_ipq806x_clks,
|
||
|
+ .num_clks = ARRAY_SIZE(gcc_ipq806x_clks),
|
||
|
+ .resets = gcc_ipq806x_resets,
|
||
|
+ .num_resets = ARRAY_SIZE(gcc_ipq806x_resets),
|
||
|
+};
|
||
|
+
|
||
|
+static const struct of_device_id gcc_ipq806x_match_table[] = {
|
||
|
+ { .compatible = "qcom,gcc-ipq8064" },
|
||
|
+ { }
|
||
|
+};
|
||
|
+MODULE_DEVICE_TABLE(of, gcc_ipq806x_match_table);
|
||
|
+
|
||
|
+static int gcc_ipq806x_probe(struct platform_device *pdev)
|
||
|
+{
|
||
|
+ struct clk *clk;
|
||
|
+ struct device *dev = &pdev->dev;
|
||
|
+
|
||
|
+ /* Temporary until RPM clocks supported */
|
||
|
+ clk = clk_register_fixed_rate(dev, "cxo", NULL, CLK_IS_ROOT, 25000000);
|
||
|
+ if (IS_ERR(clk))
|
||
|
+ return PTR_ERR(clk);
|
||
|
+
|
||
|
+ clk = clk_register_fixed_rate(dev, "pxo", NULL, CLK_IS_ROOT, 25000000);
|
||
|
+ if (IS_ERR(clk))
|
||
|
+ return PTR_ERR(clk);
|
||
|
+
|
||
|
+ return qcom_cc_probe(pdev, &gcc_ipq806x_desc);
|
||
|
+}
|
||
|
+
|
||
|
+static int gcc_ipq806x_remove(struct platform_device *pdev)
|
||
|
+{
|
||
|
+ qcom_cc_remove(pdev);
|
||
|
+ return 0;
|
||
|
+}
|
||
|
+
|
||
|
+static struct platform_driver gcc_ipq806x_driver = {
|
||
|
+ .probe = gcc_ipq806x_probe,
|
||
|
+ .remove = gcc_ipq806x_remove,
|
||
|
+ .driver = {
|
||
|
+ .name = "gcc-ipq806x",
|
||
|
+ .owner = THIS_MODULE,
|
||
|
+ .of_match_table = gcc_ipq806x_match_table,
|
||
|
+ },
|
||
|
+};
|
||
|
+
|
||
|
+static int __init gcc_ipq806x_init(void)
|
||
|
+{
|
||
|
+ return platform_driver_register(&gcc_ipq806x_driver);
|
||
|
+}
|
||
|
+core_initcall(gcc_ipq806x_init);
|
||
|
+
|
||
|
+static void __exit gcc_ipq806x_exit(void)
|
||
|
+{
|
||
|
+ platform_driver_unregister(&gcc_ipq806x_driver);
|
||
|
+}
|
||
|
+module_exit(gcc_ipq806x_exit);
|
||
|
+
|
||
|
+MODULE_DESCRIPTION("QCOM GCC IPQ806x Driver");
|
||
|
+MODULE_LICENSE("GPL v2");
|
||
|
+MODULE_ALIAS("platform:gcc-ipq806x");
|
||
|
--- /dev/null
|
||
|
+++ b/include/dt-bindings/clock/qcom,gcc-ipq806x.h
|
||
|
@@ -0,0 +1,293 @@
|
||
|
+/*
|
||
|
+ * Copyright (c) 2014, The Linux Foundation. All rights reserved.
|
||
|
+ *
|
||
|
+ * This software is licensed under the terms of the GNU General Public
|
||
|
+ * License version 2, as published by the Free Software Foundation, and
|
||
|
+ * may be copied, distributed, and modified under those terms.
|
||
|
+ *
|
||
|
+ * This program is distributed in the hope that it will be useful,
|
||
|
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
+ * GNU General Public License for more details.
|
||
|
+ */
|
||
|
+
|
||
|
+#ifndef _DT_BINDINGS_CLK_GCC_IPQ806X_H
|
||
|
+#define _DT_BINDINGS_CLK_GCC_IPQ806X_H
|
||
|
+
|
||
|
+#define AFAB_CLK_SRC 0
|
||
|
+#define QDSS_STM_CLK 1
|
||
|
+#define SCSS_A_CLK 2
|
||
|
+#define SCSS_H_CLK 3
|
||
|
+#define AFAB_CORE_CLK 4
|
||
|
+#define SCSS_XO_SRC_CLK 5
|
||
|
+#define AFAB_EBI1_CH0_A_CLK 6
|
||
|
+#define AFAB_EBI1_CH1_A_CLK 7
|
||
|
+#define AFAB_AXI_S0_FCLK 8
|
||
|
+#define AFAB_AXI_S1_FCLK 9
|
||
|
+#define AFAB_AXI_S2_FCLK 10
|
||
|
+#define AFAB_AXI_S3_FCLK 11
|
||
|
+#define AFAB_AXI_S4_FCLK 12
|
||
|
+#define SFAB_CORE_CLK 13
|
||
|
+#define SFAB_AXI_S0_FCLK 14
|
||
|
+#define SFAB_AXI_S1_FCLK 15
|
||
|
+#define SFAB_AXI_S2_FCLK 16
|
||
|
+#define SFAB_AXI_S3_FCLK 17
|
||
|
+#define SFAB_AXI_S4_FCLK 18
|
||
|
+#define SFAB_AXI_S5_FCLK 19
|
||
|
+#define SFAB_AHB_S0_FCLK 20
|
||
|
+#define SFAB_AHB_S1_FCLK 21
|
||
|
+#define SFAB_AHB_S2_FCLK 22
|
||
|
+#define SFAB_AHB_S3_FCLK 23
|
||
|
+#define SFAB_AHB_S4_FCLK 24
|
||
|
+#define SFAB_AHB_S5_FCLK 25
|
||
|
+#define SFAB_AHB_S6_FCLK 26
|
||
|
+#define SFAB_AHB_S7_FCLK 27
|
||
|
+#define QDSS_AT_CLK_SRC 28
|
||
|
+#define QDSS_AT_CLK 29
|
||
|
+#define QDSS_TRACECLKIN_CLK_SRC 30
|
||
|
+#define QDSS_TRACECLKIN_CLK 31
|
||
|
+#define QDSS_TSCTR_CLK_SRC 32
|
||
|
+#define QDSS_TSCTR_CLK 33
|
||
|
+#define SFAB_ADM0_M0_A_CLK 34
|
||
|
+#define SFAB_ADM0_M1_A_CLK 35
|
||
|
+#define SFAB_ADM0_M2_H_CLK 36
|
||
|
+#define ADM0_CLK 37
|
||
|
+#define ADM0_PBUS_CLK 38
|
||
|
+#define IMEM0_A_CLK 39
|
||
|
+#define QDSS_H_CLK 40
|
||
|
+#define PCIE_A_CLK 41
|
||
|
+#define PCIE_AUX_CLK 42
|
||
|
+#define PCIE_H_CLK 43
|
||
|
+#define PCIE_PHY_CLK 44
|
||
|
+#define SFAB_CLK_SRC 45
|
||
|
+#define SFAB_LPASS_Q6_A_CLK 46
|
||
|
+#define SFAB_AFAB_M_A_CLK 47
|
||
|
+#define AFAB_SFAB_M0_A_CLK 48
|
||
|
+#define AFAB_SFAB_M1_A_CLK 49
|
||
|
+#define SFAB_SATA_S_H_CLK 50
|
||
|
+#define DFAB_CLK_SRC 51
|
||
|
+#define DFAB_CLK 52
|
||
|
+#define SFAB_DFAB_M_A_CLK 53
|
||
|
+#define DFAB_SFAB_M_A_CLK 54
|
||
|
+#define DFAB_SWAY0_H_CLK 55
|
||
|
+#define DFAB_SWAY1_H_CLK 56
|
||
|
+#define DFAB_ARB0_H_CLK 57
|
||
|
+#define DFAB_ARB1_H_CLK 58
|
||
|
+#define PPSS_H_CLK 59
|
||
|
+#define PPSS_PROC_CLK 60
|
||
|
+#define PPSS_TIMER0_CLK 61
|
||
|
+#define PPSS_TIMER1_CLK 62
|
||
|
+#define PMEM_A_CLK 63
|
||
|
+#define DMA_BAM_H_CLK 64
|
||
|
+#define SIC_H_CLK 65
|
||
|
+#define SPS_TIC_H_CLK 66
|
||
|
+#define CFPB_2X_CLK_SRC 67
|
||
|
+#define CFPB_CLK 68
|
||
|
+#define CFPB0_H_CLK 69
|
||
|
+#define CFPB1_H_CLK 70
|
||
|
+#define CFPB2_H_CLK 71
|
||
|
+#define SFAB_CFPB_M_H_CLK 72
|
||
|
+#define CFPB_MASTER_H_CLK 73
|
||
|
+#define SFAB_CFPB_S_H_CLK 74
|
||
|
+#define CFPB_SPLITTER_H_CLK 75
|
||
|
+#define TSIF_H_CLK 76
|
||
|
+#define TSIF_INACTIVITY_TIMERS_CLK 77
|
||
|
+#define TSIF_REF_SRC 78
|
||
|
+#define TSIF_REF_CLK 79
|
||
|
+#define CE1_H_CLK 80
|
||
|
+#define CE1_CORE_CLK 81
|
||
|
+#define CE1_SLEEP_CLK 82
|
||
|
+#define CE2_H_CLK 83
|
||
|
+#define CE2_CORE_CLK 84
|
||
|
+#define SFPB_H_CLK_SRC 85
|
||
|
+#define SFPB_H_CLK 86
|
||
|
+#define SFAB_SFPB_M_H_CLK 87
|
||
|
+#define SFAB_SFPB_S_H_CLK 88
|
||
|
+#define RPM_PROC_CLK 89
|
||
|
+#define RPM_BUS_H_CLK 90
|
||
|
+#define RPM_SLEEP_CLK 91
|
||
|
+#define RPM_TIMER_CLK 92
|
||
|
+#define RPM_MSG_RAM_H_CLK 93
|
||
|
+#define PMIC_ARB0_H_CLK 94
|
||
|
+#define PMIC_ARB1_H_CLK 95
|
||
|
+#define PMIC_SSBI2_SRC 96
|
||
|
+#define PMIC_SSBI2_CLK 97
|
||
|
+#define SDC1_H_CLK 98
|
||
|
+#define SDC2_H_CLK 99
|
||
|
+#define SDC3_H_CLK 100
|
||
|
+#define SDC4_H_CLK 101
|
||
|
+#define SDC1_SRC 102
|
||
|
+#define SDC1_CLK 103
|
||
|
+#define SDC2_SRC 104
|
||
|
+#define SDC2_CLK 105
|
||
|
+#define SDC3_SRC 106
|
||
|
+#define SDC3_CLK 107
|
||
|
+#define SDC4_SRC 108
|
||
|
+#define SDC4_CLK 109
|
||
|
+#define USB_HS1_H_CLK 110
|
||
|
+#define USB_HS1_XCVR_SRC 111
|
||
|
+#define USB_HS1_XCVR_CLK 112
|
||
|
+#define USB_HSIC_H_CLK 113
|
||
|
+#define USB_HSIC_XCVR_SRC 114
|
||
|
+#define USB_HSIC_XCVR_CLK 115
|
||
|
+#define USB_HSIC_SYSTEM_CLK_SRC 116
|
||
|
+#define USB_HSIC_SYSTEM_CLK 117
|
||
|
+#define CFPB0_C0_H_CLK 118
|
||
|
+#define CFPB0_D0_H_CLK 119
|
||
|
+#define CFPB0_C1_H_CLK 120
|
||
|
+#define CFPB0_D1_H_CLK 121
|
||
|
+#define USB_FS1_H_CLK 122
|
||
|
+#define USB_FS1_XCVR_SRC 123
|
||
|
+#define USB_FS1_XCVR_CLK 124
|
||
|
+#define USB_FS1_SYSTEM_CLK 125
|
||
|
+#define GSBI_COMMON_SIM_SRC 126
|
||
|
+#define GSBI1_H_CLK 127
|
||
|
+#define GSBI2_H_CLK 128
|
||
|
+#define GSBI3_H_CLK 129
|
||
|
+#define GSBI4_H_CLK 130
|
||
|
+#define GSBI5_H_CLK 131
|
||
|
+#define GSBI6_H_CLK 132
|
||
|
+#define GSBI7_H_CLK 133
|
||
|
+#define GSBI1_QUP_SRC 134
|
||
|
+#define GSBI1_QUP_CLK 135
|
||
|
+#define GSBI2_QUP_SRC 136
|
||
|
+#define GSBI2_QUP_CLK 137
|
||
|
+#define GSBI3_QUP_SRC 138
|
||
|
+#define GSBI3_QUP_CLK 139
|
||
|
+#define GSBI4_QUP_SRC 140
|
||
|
+#define GSBI4_QUP_CLK 141
|
||
|
+#define GSBI5_QUP_SRC 142
|
||
|
+#define GSBI5_QUP_CLK 143
|
||
|
+#define GSBI6_QUP_SRC 144
|
||
|
+#define GSBI6_QUP_CLK 145
|
||
|
+#define GSBI7_QUP_SRC 146
|
||
|
+#define GSBI7_QUP_CLK 147
|
||
|
+#define GSBI1_UART_SRC 148
|
||
|
+#define GSBI1_UART_CLK 149
|
||
|
+#define GSBI2_UART_SRC 150
|
||
|
+#define GSBI2_UART_CLK 151
|
||
|
+#define GSBI3_UART_SRC 152
|
||
|
+#define GSBI3_UART_CLK 153
|
||
|
+#define GSBI4_UART_SRC 154
|
||
|
+#define GSBI4_UART_CLK 155
|
||
|
+#define GSBI5_UART_SRC 156
|
||
|
+#define GSBI5_UART_CLK 157
|
||
|
+#define GSBI6_UART_SRC 158
|
||
|
+#define GSBI6_UART_CLK 159
|
||
|
+#define GSBI7_UART_SRC 160
|
||
|
+#define GSBI7_UART_CLK 161
|
||
|
+#define GSBI1_SIM_CLK 162
|
||
|
+#define GSBI2_SIM_CLK 163
|
||
|
+#define GSBI3_SIM_CLK 164
|
||
|
+#define GSBI4_SIM_CLK 165
|
||
|
+#define GSBI5_SIM_CLK 166
|
||
|
+#define GSBI6_SIM_CLK 167
|
||
|
+#define GSBI7_SIM_CLK 168
|
||
|
+#define USB_HSIC_HSIC_CLK_SRC 169
|
||
|
+#define USB_HSIC_HSIC_CLK 170
|
||
|
+#define USB_HSIC_HSIO_CAL_CLK 171
|
||
|
+#define SPDM_CFG_H_CLK 172
|
||
|
+#define SPDM_MSTR_H_CLK 173
|
||
|
+#define SPDM_FF_CLK_SRC 174
|
||
|
+#define SPDM_FF_CLK 175
|
||
|
+#define SEC_CTRL_CLK 176
|
||
|
+#define SEC_CTRL_ACC_CLK_SRC 177
|
||
|
+#define SEC_CTRL_ACC_CLK 178
|
||
|
+#define TLMM_H_CLK 179
|
||
|
+#define TLMM_CLK 180
|
||
|
+#define SATA_H_CLK 181
|
||
|
+#define SATA_CLK_SRC 182
|
||
|
+#define SATA_RXOOB_CLK 183
|
||
|
+#define SATA_PMALIVE_CLK 184
|
||
|
+#define SATA_PHY_REF_CLK 185
|
||
|
+#define SATA_A_CLK 186
|
||
|
+#define SATA_PHY_CFG_CLK 187
|
||
|
+#define TSSC_CLK_SRC 188
|
||
|
+#define TSSC_CLK 189
|
||
|
+#define PDM_SRC 190
|
||
|
+#define PDM_CLK 191
|
||
|
+#define GP0_SRC 192
|
||
|
+#define GP0_CLK 193
|
||
|
+#define GP1_SRC 194
|
||
|
+#define GP1_CLK 195
|
||
|
+#define GP2_SRC 196
|
||
|
+#define GP2_CLK 197
|
||
|
+#define MPM_CLK 198
|
||
|
+#define EBI1_CLK_SRC 199
|
||
|
+#define EBI1_CH0_CLK 200
|
||
|
+#define EBI1_CH1_CLK 201
|
||
|
+#define EBI1_2X_CLK 202
|
||
|
+#define EBI1_CH0_DQ_CLK 203
|
||
|
+#define EBI1_CH1_DQ_CLK 204
|
||
|
+#define EBI1_CH0_CA_CLK 205
|
||
|
+#define EBI1_CH1_CA_CLK 206
|
||
|
+#define EBI1_XO_CLK 207
|
||
|
+#define SFAB_SMPSS_S_H_CLK 208
|
||
|
+#define PRNG_SRC 209
|
||
|
+#define PRNG_CLK 210
|
||
|
+#define PXO_SRC 211
|
||
|
+#define SPDM_CY_PORT0_CLK 212
|
||
|
+#define SPDM_CY_PORT1_CLK 213
|
||
|
+#define SPDM_CY_PORT2_CLK 214
|
||
|
+#define SPDM_CY_PORT3_CLK 215
|
||
|
+#define SPDM_CY_PORT4_CLK 216
|
||
|
+#define SPDM_CY_PORT5_CLK 217
|
||
|
+#define SPDM_CY_PORT6_CLK 218
|
||
|
+#define SPDM_CY_PORT7_CLK 219
|
||
|
+#define PLL0 220
|
||
|
+#define PLL0_VOTE 221
|
||
|
+#define PLL3 222
|
||
|
+#define PLL3_VOTE 223
|
||
|
+#define PLL4 224
|
||
|
+#define PLL4_VOTE 225
|
||
|
+#define PLL8 226
|
||
|
+#define PLL8_VOTE 227
|
||
|
+#define PLL9 228
|
||
|
+#define PLL10 229
|
||
|
+#define PLL11 230
|
||
|
+#define PLL12 231
|
||
|
+#define PLL14 232
|
||
|
+#define PLL14_VOTE 233
|
||
|
+#define PLL18 234
|
||
|
+#define CE5_SRC 235
|
||
|
+#define CE5_H_CLK 236
|
||
|
+#define CE5_CORE_CLK 237
|
||
|
+#define CE3_SLEEP_CLK 238
|
||
|
+#define SFAB_AHB_S8_FCLK 239
|
||
|
+#define SPDM_CY_PORT8_CLK 246
|
||
|
+#define PCIE_ALT_REF_SRC 247
|
||
|
+#define PCIE_ALT_REF_CLK 248
|
||
|
+#define PCIE_1_A_CLK 249
|
||
|
+#define PCIE_1_AUX_CLK 250
|
||
|
+#define PCIE_1_H_CLK 251
|
||
|
+#define PCIE_1_PHY_CLK 252
|
||
|
+#define PCIE_1_ALT_REF_SRC 253
|
||
|
+#define PCIE_1_ALT_REF_CLK 254
|
||
|
+#define PCIE_2_A_CLK 255
|
||
|
+#define PCIE_2_AUX_CLK 256
|
||
|
+#define PCIE_2_H_CLK 257
|
||
|
+#define PCIE_2_PHY_CLK 258
|
||
|
+#define PCIE_2_ALT_REF_SRC 259
|
||
|
+#define PCIE_2_ALT_REF_CLK 260
|
||
|
+#define EBI2_CLK 261
|
||
|
+#define USB30_SLEEP_CLK 262
|
||
|
+#define USB30_UTMI_SRC 263
|
||
|
+#define USB30_0_UTMI_CLK 264
|
||
|
+#define USB30_1_UTMI_CLK 264
|
||
|
+#define USB30_MASTER_SRC 265
|
||
|
+#define USB30_0_MASTER_CLK 266
|
||
|
+#define USB30_1_MASTER_CLK 267
|
||
|
+#define GMAC_CORE1_CLK_SRC 268
|
||
|
+#define GMAC_CORE2_CLK_SRC 269
|
||
|
+#define GMAC_CORE3_CLK_SRC 270
|
||
|
+#define GMAC_CORE4_CLK_SRC 271
|
||
|
+#define GMAC_CORE1_CLK 272
|
||
|
+#define GMAC_CORE2_CLK 273
|
||
|
+#define GMAC_CORE3_CLK 274
|
||
|
+#define GMAC_CORE4_CLK 275
|
||
|
+#define UBI32_CORE1_CLK_SRC 276
|
||
|
+#define UBI32_CORE2_CLK_SRC 277
|
||
|
+#define UBI32_CORE1_CLK 278
|
||
|
+#define UBI32_CORE2_CLK 279
|
||
|
+
|
||
|
+#endif
|
||
|
--- /dev/null
|
||
|
+++ b/include/dt-bindings/reset/qcom,gcc-ipq806x.h
|
||
|
@@ -0,0 +1,132 @@
|
||
|
+/*
|
||
|
+ * Copyright (c) 2014, The Linux Foundation. All rights reserved.
|
||
|
+ *
|
||
|
+ * This software is licensed under the terms of the GNU General Public
|
||
|
+ * License version 2, as published by the Free Software Foundation, and
|
||
|
+ * may be copied, distributed, and modified under those terms.
|
||
|
+ *
|
||
|
+ * This program is distributed in the hope that it will be useful,
|
||
|
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
+ * GNU General Public License for more details.
|
||
|
+ */
|
||
|
+
|
||
|
+#ifndef _DT_BINDINGS_RESET_IPQ_806X_H
|
||
|
+#define _DT_BINDINGS_RESET_IPQ_806X_H
|
||
|
+
|
||
|
+#define QDSS_STM_RESET 0
|
||
|
+#define AFAB_SMPSS_S_RESET 1
|
||
|
+#define AFAB_SMPSS_M1_RESET 2
|
||
|
+#define AFAB_SMPSS_M0_RESET 3
|
||
|
+#define AFAB_EBI1_CH0_RESET 4
|
||
|
+#define AFAB_EBI1_CH1_RESET 5
|
||
|
+#define SFAB_ADM0_M0_RESET 6
|
||
|
+#define SFAB_ADM0_M1_RESET 7
|
||
|
+#define SFAB_ADM0_M2_RESET 8
|
||
|
+#define ADM0_C2_RESET 9
|
||
|
+#define ADM0_C1_RESET 10
|
||
|
+#define ADM0_C0_RESET 11
|
||
|
+#define ADM0_PBUS_RESET 12
|
||
|
+#define ADM0_RESET 13
|
||
|
+#define QDSS_CLKS_SW_RESET 14
|
||
|
+#define QDSS_POR_RESET 15
|
||
|
+#define QDSS_TSCTR_RESET 16
|
||
|
+#define QDSS_HRESET_RESET 17
|
||
|
+#define QDSS_AXI_RESET 18
|
||
|
+#define QDSS_DBG_RESET 19
|
||
|
+#define SFAB_PCIE_M_RESET 20
|
||
|
+#define SFAB_PCIE_S_RESET 21
|
||
|
+#define PCIE_EXT_RESET 22
|
||
|
+#define PCIE_PHY_RESET 23
|
||
|
+#define PCIE_PCI_RESET 24
|
||
|
+#define PCIE_POR_RESET 25
|
||
|
+#define PCIE_HCLK_RESET 26
|
||
|
+#define PCIE_ACLK_RESET 27
|
||
|
+#define SFAB_LPASS_RESET 28
|
||
|
+#define SFAB_AFAB_M_RESET 29
|
||
|
+#define AFAB_SFAB_M0_RESET 30
|
||
|
+#define AFAB_SFAB_M1_RESET 31
|
||
|
+#define SFAB_SATA_S_RESET 32
|
||
|
+#define SFAB_DFAB_M_RESET 33
|
||
|
+#define DFAB_SFAB_M_RESET 34
|
||
|
+#define DFAB_SWAY0_RESET 35
|
||
|
+#define DFAB_SWAY1_RESET 36
|
||
|
+#define DFAB_ARB0_RESET 37
|
||
|
+#define DFAB_ARB1_RESET 38
|
||
|
+#define PPSS_PROC_RESET 39
|
||
|
+#define PPSS_RESET 40
|
||
|
+#define DMA_BAM_RESET 41
|
||
|
+#define SPS_TIC_H_RESET 42
|
||
|
+#define SFAB_CFPB_M_RESET 43
|
||
|
+#define SFAB_CFPB_S_RESET 44
|
||
|
+#define TSIF_H_RESET 45
|
||
|
+#define CE1_H_RESET 46
|
||
|
+#define CE1_CORE_RESET 47
|
||
|
+#define CE1_SLEEP_RESET 48
|
||
|
+#define CE2_H_RESET 49
|
||
|
+#define CE2_CORE_RESET 50
|
||
|
+#define SFAB_SFPB_M_RESET 51
|
||
|
+#define SFAB_SFPB_S_RESET 52
|
||
|
+#define RPM_PROC_RESET 53
|
||
|
+#define PMIC_SSBI2_RESET 54
|
||
|
+#define SDC1_RESET 55
|
||
|
+#define SDC2_RESET 56
|
||
|
+#define SDC3_RESET 57
|
||
|
+#define SDC4_RESET 58
|
||
|
+#define USB_HS1_RESET 59
|
||
|
+#define USB_HSIC_RESET 60
|
||
|
+#define USB_FS1_XCVR_RESET 61
|
||
|
+#define USB_FS1_RESET 62
|
||
|
+#define GSBI1_RESET 63
|
||
|
+#define GSBI2_RESET 64
|
||
|
+#define GSBI3_RESET 65
|
||
|
+#define GSBI4_RESET 66
|
||
|
+#define GSBI5_RESET 67
|
||
|
+#define GSBI6_RESET 68
|
||
|
+#define GSBI7_RESET 69
|
||
|
+#define SPDM_RESET 70
|
||
|
+#define SEC_CTRL_RESET 71
|
||
|
+#define TLMM_H_RESET 72
|
||
|
+#define SFAB_SATA_M_RESET 73
|
||
|
+#define SATA_RESET 74
|
||
|
+#define TSSC_RESET 75
|
||
|
+#define PDM_RESET 76
|
||
|
+#define MPM_H_RESET 77
|
||
|
+#define MPM_RESET 78
|
||
|
+#define SFAB_SMPSS_S_RESET 79
|
||
|
+#define PRNG_RESET 80
|
||
|
+#define SFAB_CE3_M_RESET 81
|
||
|
+#define SFAB_CE3_S_RESET 82
|
||
|
+#define CE3_SLEEP_RESET 83
|
||
|
+#define PCIE_1_M_RESET 84
|
||
|
+#define PCIE_1_S_RESET 85
|
||
|
+#define PCIE_1_EXT_RESET 86
|
||
|
+#define PCIE_1_PHY_RESET 87
|
||
|
+#define PCIE_1_PCI_RESET 88
|
||
|
+#define PCIE_1_POR_RESET 89
|
||
|
+#define PCIE_1_HCLK_RESET 90
|
||
|
+#define PCIE_1_ACLK_RESET 91
|
||
|
+#define PCIE_2_M_RESET 92
|
||
|
+#define PCIE_2_S_RESET 93
|
||
|
+#define PCIE_2_EXT_RESET 94
|
||
|
+#define PCIE_2_PHY_RESET 95
|
||
|
+#define PCIE_2_PCI_RESET 96
|
||
|
+#define PCIE_2_POR_RESET 97
|
||
|
+#define PCIE_2_HCLK_RESET 98
|
||
|
+#define PCIE_2_ACLK_RESET 99
|
||
|
+#define SFAB_USB30_S_RESET 100
|
||
|
+#define SFAB_USB30_M_RESET 101
|
||
|
+#define USB30_0_PORT2_HS_PHY_RESET 102
|
||
|
+#define USB30_0_MASTER_RESET 103
|
||
|
+#define USB30_0_SLEEP_RESET 104
|
||
|
+#define USB30_0_UTMI_PHY_RESET 105
|
||
|
+#define USB30_0_POWERON_RESET 106
|
||
|
+#define USB30_0_PHY_RESET 107
|
||
|
+#define USB30_1_MASTER_RESET 108
|
||
|
+#define USB30_1_SLEEP_RESET 109
|
||
|
+#define USB30_1_UTMI_PHY_RESET 110
|
||
|
+#define USB30_1_POWERON_RESET 111
|
||
|
+#define USB30_1_PHY_RESET 112
|
||
|
+#define NSSFB0_RESET 113
|
||
|
+#define NSSFB1_RESET 114
|
||
|
+#endif
|