forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-20 ea08eeccae9297f7aabd2ef7f0c2517ac4549acc
kernel/drivers/clk/nxp/clk-lpc32xx.c
....@@ -1,16 +1,11 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright 2015 Vladimir Zapolskiy <vz@mleia.com>
3
- *
4
- * The code contained herein is licensed under the GNU General Public
5
- * License. You may obtain a copy of the GNU General Public License
6
- * Version 2 or later at the following locations:
7
- *
8
- * http://www.opensource.org/licenses/gpl-license.html
9
- * http://www.gnu.org/copyleft/gpl.html
104 */
115
126 #include <linux/clk.h>
137 #include <linux/clk-provider.h>
8
+#include <linux/io.h>
149 #include <linux/of_address.h>
1510 #include <linux/regmap.h>
1611
....@@ -1085,13 +1080,12 @@
10851080 };
10861081 };
10871082
1088
-#define LPC32XX_DEFINE_FIXED(_idx, _rate, _flags) \
1083
+#define LPC32XX_DEFINE_FIXED(_idx, _rate) \
10891084 [CLK_PREFIX(_idx)] = { \
10901085 .type = CLK_FIXED, \
10911086 { \
10921087 .f = { \
10931088 .fixed_rate = (_rate), \
1094
- .flags = (_flags), \
10951089 }, \
10961090 }, \
10971091 }
....@@ -1225,7 +1219,7 @@
12251219 }
12261220
12271221 static struct clk_hw_proto clk_hw_proto[LPC32XX_CLK_HW_MAX] = {
1228
- LPC32XX_DEFINE_FIXED(RTC, 32768, 0),
1222
+ LPC32XX_DEFINE_FIXED(RTC, 32768),
12291223 LPC32XX_DEFINE_PLL(PLL397X, pll_397x, HCLKPLL_CTRL, BIT(1)),
12301224 LPC32XX_DEFINE_PLL(HCLK_PLL, hclk_pll, HCLKPLL_CTRL, PLL_CTRL_ENABLE),
12311225 LPC32XX_DEFINE_PLL(USB_PLL, usb_pll, USB_CTRL, PLL_CTRL_ENABLE),
....@@ -1468,7 +1462,7 @@
14681462 struct clk_fixed_rate *fixed = &clk_hw->f;
14691463
14701464 clk = clk_register_fixed_rate(NULL, lpc32xx_clk->name,
1471
- parents[0], fixed->flags, fixed->fixed_rate);
1465
+ parents[0], 0, fixed->fixed_rate);
14721466 break;
14731467 }
14741468 default: