.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) 2017 Chen-Yu Tsai. All rights reserved. |
---|
3 | | - * |
---|
4 | | - * This software is licensed under the terms of the GNU General Public |
---|
5 | | - * License version 2, as published by the Free Software Foundation, and |
---|
6 | | - * may be copied, distributed, and modified under those terms. |
---|
7 | | - * |
---|
8 | | - * This program is distributed in the hope that it will be useful, |
---|
9 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
10 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
11 | | - * GNU General Public License for more details. |
---|
12 | 4 | */ |
---|
13 | 5 | |
---|
14 | 6 | #include <linux/clk-provider.h> |
---|
| 7 | +#include <linux/io.h> |
---|
15 | 8 | #include <linux/of_address.h> |
---|
16 | 9 | #include <linux/platform_device.h> |
---|
17 | 10 | |
---|
.. | .. |
---|
108 | 101 | .n = _SUNXI_CCU_MULT_OFFSET_MIN_MAX(8, 8, 0, 12, 0), |
---|
109 | 102 | .m = _SUNXI_CCU_DIV(16, 1), /* input divider */ |
---|
110 | 103 | .p = _SUNXI_CCU_DIV(0, 2), /* output divider */ |
---|
| 104 | + .max_rate = 3000000000UL, |
---|
111 | 105 | .common = { |
---|
112 | 106 | .reg = 0x010, |
---|
113 | 107 | .lock_reg = CCU_SUN8I_A83T_LOCK_REG, |
---|
.. | .. |
---|
220 | 214 | .n = _SUNXI_CCU_MULT_OFFSET_MIN_MAX(8, 8, 0, 12, 0), |
---|
221 | 215 | .m = _SUNXI_CCU_DIV(16, 1), /* input divider */ |
---|
222 | 216 | .p = _SUNXI_CCU_DIV(0, 2), /* external divider p */ |
---|
| 217 | + .max_rate = 3000000000UL, |
---|
223 | 218 | .common = { |
---|
224 | 219 | .reg = 0x04c, |
---|
225 | 220 | .lock_reg = CCU_SUN8I_A83T_LOCK_REG, |
---|
.. | .. |
---|
511 | 506 | |
---|
512 | 507 | static SUNXI_CCU_GATE(mipi_csi_clk, "mipi-csi", "osc24M", 0x130, BIT(31), 0); |
---|
513 | 508 | |
---|
514 | | -static const char * const csi_mclk_parents[] = { "pll-de", "osc24M" }; |
---|
515 | | -static const u8 csi_mclk_table[] = { 3, 5 }; |
---|
| 509 | +static const char * const csi_mclk_parents[] = { "pll-video0", "pll-de", |
---|
| 510 | + "osc24M" }; |
---|
| 511 | +static const u8 csi_mclk_table[] = { 0, 3, 5 }; |
---|
516 | 512 | static SUNXI_CCU_M_WITH_MUX_TABLE_GATE(csi_mclk_clk, "csi-mclk", |
---|
517 | 513 | csi_mclk_parents, csi_mclk_table, |
---|
518 | 514 | 0x134, |
---|