| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2009 by Sascha Hauer, Pengutronix |
|---|
| 3 | | - * |
|---|
| 4 | | - * This program is free software; you can redistribute it and/or |
|---|
| 5 | | - * modify it under the terms of the GNU General Public License |
|---|
| 6 | | - * as published by the Free Software Foundation; either version 2 |
|---|
| 7 | | - * of the License, or (at your option) any later version. |
|---|
| 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 | | - * |
|---|
| 13 | | - * You should have received a copy of the GNU General Public License |
|---|
| 14 | | - * along with this program; if not, write to the Free Software |
|---|
| 15 | | - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|---|
| 16 | | - * MA 02110-1301, USA. |
|---|
| 17 | 4 | */ |
|---|
| 18 | 5 | |
|---|
| 19 | 6 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 85 | 72 | }; |
|---|
| 86 | 73 | |
|---|
| 87 | 74 | static struct clk *clk[clk_max]; |
|---|
| 88 | | - |
|---|
| 89 | | -static struct clk ** const uart_clks[] __initconst = { |
|---|
| 90 | | - &clk[uart_ipg_per], |
|---|
| 91 | | - &clk[uart1_ipg], |
|---|
| 92 | | - &clk[uart2_ipg], |
|---|
| 93 | | - &clk[uart3_ipg], |
|---|
| 94 | | - &clk[uart4_ipg], |
|---|
| 95 | | - &clk[uart5_ipg], |
|---|
| 96 | | - NULL |
|---|
| 97 | | -}; |
|---|
| 98 | 75 | |
|---|
| 99 | 76 | static int __init __mx25_clocks_init(void __iomem *ccm_base) |
|---|
| 100 | 77 | { |
|---|
| .. | .. |
|---|
| 241 | 218 | */ |
|---|
| 242 | 219 | clk_set_parent(clk[cko_sel], clk[ipg]); |
|---|
| 243 | 220 | |
|---|
| 244 | | - imx_register_uart_clocks(uart_clks); |
|---|
| 221 | + imx_register_uart_clocks(6); |
|---|
| 245 | 222 | |
|---|
| 246 | 223 | return 0; |
|---|
| 247 | 224 | } |
|---|