| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * 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 |
|---|
| 10 | 4 | */ |
|---|
| 11 | 5 | |
|---|
| 12 | 6 | #include <linux/clk.h> |
|---|
| 13 | 7 | #include <linux/clk-provider.h> |
|---|
| 8 | +#include <linux/io.h> |
|---|
| 14 | 9 | #include <linux/of_address.h> |
|---|
| 15 | 10 | #include <linux/regmap.h> |
|---|
| 16 | 11 | |
|---|
| .. | .. |
|---|
| 1085 | 1080 | }; |
|---|
| 1086 | 1081 | }; |
|---|
| 1087 | 1082 | |
|---|
| 1088 | | -#define LPC32XX_DEFINE_FIXED(_idx, _rate, _flags) \ |
|---|
| 1083 | +#define LPC32XX_DEFINE_FIXED(_idx, _rate) \ |
|---|
| 1089 | 1084 | [CLK_PREFIX(_idx)] = { \ |
|---|
| 1090 | 1085 | .type = CLK_FIXED, \ |
|---|
| 1091 | 1086 | { \ |
|---|
| 1092 | 1087 | .f = { \ |
|---|
| 1093 | 1088 | .fixed_rate = (_rate), \ |
|---|
| 1094 | | - .flags = (_flags), \ |
|---|
| 1095 | 1089 | }, \ |
|---|
| 1096 | 1090 | }, \ |
|---|
| 1097 | 1091 | } |
|---|
| .. | .. |
|---|
| 1225 | 1219 | } |
|---|
| 1226 | 1220 | |
|---|
| 1227 | 1221 | 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), |
|---|
| 1229 | 1223 | LPC32XX_DEFINE_PLL(PLL397X, pll_397x, HCLKPLL_CTRL, BIT(1)), |
|---|
| 1230 | 1224 | LPC32XX_DEFINE_PLL(HCLK_PLL, hclk_pll, HCLKPLL_CTRL, PLL_CTRL_ENABLE), |
|---|
| 1231 | 1225 | LPC32XX_DEFINE_PLL(USB_PLL, usb_pll, USB_CTRL, PLL_CTRL_ENABLE), |
|---|
| .. | .. |
|---|
| 1468 | 1462 | struct clk_fixed_rate *fixed = &clk_hw->f; |
|---|
| 1469 | 1463 | |
|---|
| 1470 | 1464 | clk = clk_register_fixed_rate(NULL, lpc32xx_clk->name, |
|---|
| 1471 | | - parents[0], fixed->flags, fixed->fixed_rate); |
|---|
| 1465 | + parents[0], 0, fixed->fixed_rate); |
|---|
| 1472 | 1466 | break; |
|---|
| 1473 | 1467 | } |
|---|
| 1474 | 1468 | default: |
|---|