.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) 2017 MediaTek Inc. |
---|
3 | 4 | * Author: Weiyi Lu <weiyi.lu@mediatek.com> |
---|
4 | | - * |
---|
5 | | - * This program is free software; you can redistribute it and/or modify |
---|
6 | | - * it under the terms of the GNU General Public License version 2 as |
---|
7 | | - * published by the Free Software Foundation. |
---|
8 | | - * |
---|
9 | | - * This program is distributed in the hope that it will be useful, |
---|
10 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
11 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
12 | | - * GNU General Public License for more details. |
---|
13 | 5 | */ |
---|
14 | 6 | |
---|
15 | 7 | #include <linux/clk.h> |
---|
.. | .. |
---|
222 | 214 | FACTOR(CLK_TOP_D2A_ULCLK_6P5M, "d2a_ulclk_6p5m", "clk26m", 1, |
---|
223 | 215 | 4), |
---|
224 | 216 | FACTOR(CLK_TOP_APLL1_D3, "apll1_d3", "apll1_ck", 1, |
---|
| 217 | + 3), |
---|
| 218 | + FACTOR(CLK_TOP_APLL2_D3, "apll2_d3", "apll2_ck", 1, |
---|
225 | 219 | 3), |
---|
226 | 220 | }; |
---|
227 | 221 | |
---|
.. | .. |
---|
594 | 588 | "apll1_ck", |
---|
595 | 589 | "apll1_d2", |
---|
596 | 590 | "apll1_d4", |
---|
597 | | - "apll1_d8" |
---|
| 591 | + "apll1_d8", |
---|
| 592 | + "apll1_d3" |
---|
598 | 593 | }; |
---|
599 | 594 | |
---|
600 | 595 | static const char * const a2sys_hp_parents[] = { |
---|
.. | .. |
---|
602 | 597 | "apll2_ck", |
---|
603 | 598 | "apll2_d2", |
---|
604 | 599 | "apll2_d4", |
---|
605 | | - "apll2_d8" |
---|
| 600 | + "apll2_d8", |
---|
| 601 | + "apll2_d3" |
---|
606 | 602 | }; |
---|
607 | 603 | |
---|
608 | 604 | static const char * const asm_l_parents[] = { |
---|
.. | .. |
---|
1310 | 1306 | int r, i; |
---|
1311 | 1307 | struct device_node *node = pdev->dev.of_node; |
---|
1312 | 1308 | void __iomem *base; |
---|
1313 | | - struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
---|
1314 | 1309 | |
---|
1315 | | - base = devm_ioremap_resource(&pdev->dev, res); |
---|
| 1310 | + base = devm_platform_ioremap_resource(pdev, 0); |
---|
1316 | 1311 | if (IS_ERR(base)) { |
---|
1317 | 1312 | pr_err("%s(): ioremap failed\n", __func__); |
---|
1318 | 1313 | return PTR_ERR(base); |
---|
.. | .. |
---|
1398 | 1393 | int r; |
---|
1399 | 1394 | struct device_node *node = pdev->dev.of_node; |
---|
1400 | 1395 | void __iomem *base; |
---|
1401 | | - struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
---|
1402 | 1396 | |
---|
1403 | | - base = devm_ioremap_resource(&pdev->dev, res); |
---|
| 1397 | + base = devm_platform_ioremap_resource(pdev, 0); |
---|
1404 | 1398 | if (IS_ERR(base)) { |
---|
1405 | 1399 | pr_err("%s(): ioremap failed\n", __func__); |
---|
1406 | 1400 | return PTR_ERR(base); |
---|
.. | .. |
---|
1463 | 1457 | .probe = clk_mt2712_probe, |
---|
1464 | 1458 | .driver = { |
---|
1465 | 1459 | .name = "clk-mt2712", |
---|
1466 | | - .owner = THIS_MODULE, |
---|
1467 | 1460 | .of_match_table = of_match_clk_mt2712, |
---|
1468 | 1461 | }, |
---|
1469 | 1462 | }; |
---|