.. | .. |
---|
870 | 870 | spinlock_t *lock) |
---|
871 | 871 | { |
---|
872 | 872 | struct stm32_pll_obj *element; |
---|
873 | | - struct clk_init_data init = {}; |
---|
| 873 | + struct clk_init_data init; |
---|
874 | 874 | struct clk_hw *hw; |
---|
875 | 875 | int err; |
---|
876 | 876 | |
---|
.. | .. |
---|
1001 | 1001 | spinlock_t *lock) |
---|
1002 | 1002 | { |
---|
1003 | 1003 | struct timer_cker *tim_ker; |
---|
1004 | | - struct clk_init_data init = {}; |
---|
| 1004 | + struct clk_init_data init; |
---|
1005 | 1005 | struct clk_hw *hw; |
---|
1006 | 1006 | int err; |
---|
1007 | 1007 | |
---|
.. | .. |
---|
1402 | 1402 | G_CRYP1, |
---|
1403 | 1403 | G_HASH1, |
---|
1404 | 1404 | G_BKPSRAM, |
---|
| 1405 | + G_DDRPERFM, |
---|
1405 | 1406 | |
---|
1406 | 1407 | G_LAST |
---|
1407 | 1408 | }; |
---|
.. | .. |
---|
1488 | 1489 | K_GATE(G_STGENRO, RCC_APB4ENSETR, 20, 0), |
---|
1489 | 1490 | K_MGATE(G_USBPHY, RCC_APB4ENSETR, 16, 0), |
---|
1490 | 1491 | K_GATE(G_IWDG2, RCC_APB4ENSETR, 15, 0), |
---|
| 1492 | + K_GATE(G_DDRPERFM, RCC_APB4ENSETR, 8, 0), |
---|
1491 | 1493 | K_MGATE(G_DSI, RCC_APB4ENSETR, 4, 0), |
---|
1492 | 1494 | K_MGATE(G_LTDC, RCC_APB4ENSETR, 0, 0), |
---|
1493 | 1495 | |
---|
.. | .. |
---|
1661 | 1663 | |
---|
1662 | 1664 | /* External / Internal Oscillators */ |
---|
1663 | 1665 | GATE_MP1(CK_HSE, "ck_hse", "clk-hse", 0, RCC_OCENSETR, 8, 0), |
---|
1664 | | - GATE_MP1(CK_CSI, "ck_csi", "clk-csi", 0, RCC_OCENSETR, 4, 0), |
---|
| 1666 | + /* ck_csi is used by IO compensation and should be critical */ |
---|
| 1667 | + GATE_MP1(CK_CSI, "ck_csi", "clk-csi", CLK_IS_CRITICAL, |
---|
| 1668 | + RCC_OCENSETR, 4, 0), |
---|
1665 | 1669 | GATE_MP1(CK_HSI, "ck_hsi", "clk-hsi-div", 0, RCC_OCENSETR, 0, 0), |
---|
1666 | 1670 | GATE(CK_LSI, "ck_lsi", "clk-lsi", 0, RCC_RDLSICR, 0, 0), |
---|
1667 | 1671 | GATE(CK_LSE, "ck_lse", "clk-lse", 0, RCC_BDCR, 0, 0), |
---|
.. | .. |
---|
1897 | 1901 | PCLK(CRC1, "crc1", "ck_axi", 0, G_CRC1), |
---|
1898 | 1902 | PCLK(USBH, "usbh", "ck_axi", 0, G_USBH), |
---|
1899 | 1903 | PCLK(ETHSTP, "ethstp", "ck_axi", 0, G_ETHSTP), |
---|
| 1904 | + PCLK(DDRPERFM, "ddrperfm", "pclk4", 0, G_DDRPERFM), |
---|
1900 | 1905 | |
---|
1901 | 1906 | /* Kernel clocks */ |
---|
1902 | 1907 | KCLK(SDMMC1_K, "sdmmc1_k", sdmmc12_src, 0, G_SDMMC1, M_SDMMC12), |
---|
.. | .. |
---|
1957 | 1962 | CLK_SET_RATE_NO_REPARENT, |
---|
1958 | 1963 | _NO_GATE, |
---|
1959 | 1964 | _MMUX(M_ETHCK), |
---|
1960 | | - _DIV(RCC_ETHCKSELR, 4, 4, CLK_DIVIDER_ALLOW_ZERO, NULL)), |
---|
| 1965 | + _DIV(RCC_ETHCKSELR, 4, 4, 0, NULL)), |
---|
1961 | 1966 | |
---|
1962 | 1967 | /* RTC clock */ |
---|
1963 | | - DIV(NO_ID, "ck_hse_rtc", "ck_hse", 0, RCC_RTCDIVR, 0, 7, |
---|
1964 | | - CLK_DIVIDER_ALLOW_ZERO), |
---|
| 1968 | + DIV(NO_ID, "ck_hse_rtc", "ck_hse", 0, RCC_RTCDIVR, 0, 6, 0), |
---|
1965 | 1969 | |
---|
1966 | 1970 | COMPOSITE(RTC, "ck_rtc", rtc_src, CLK_OPS_PARENT_ENABLE | |
---|
1967 | 1971 | CLK_SET_RATE_PARENT, |
---|
.. | .. |
---|
2017 | 2021 | void __iomem *base, spinlock_t *lock, |
---|
2018 | 2022 | const struct clock_config *cfg) |
---|
2019 | 2023 | { |
---|
2020 | | - static struct clk_hw **hws; |
---|
| 2024 | + struct clk_hw **hws; |
---|
2021 | 2025 | struct clk_hw *hw = ERR_PTR(-ENOENT); |
---|
2022 | 2026 | |
---|
2023 | 2027 | hws = clk_data->hws; |
---|
.. | .. |
---|
2090 | 2094 | |
---|
2091 | 2095 | base = of_iomap(np, 0); |
---|
2092 | 2096 | if (!base) { |
---|
2093 | | - pr_err("%s: unable to map resource", np->name); |
---|
| 2097 | + pr_err("%pOFn: unable to map resource", np); |
---|
2094 | 2098 | of_node_put(np); |
---|
2095 | 2099 | return; |
---|
2096 | 2100 | } |
---|