sama5d2.c (171e502c6a1fee63ab6f3fc685d38960398ce6d5) sama5d2.c (c2f2ca0be8a62ce61a6878cd3dddd8fc6d622999)
1// SPDX-License-Identifier: GPL-2.0
2#include <linux/clk-provider.h>
3#include <linux/mfd/syscon.h>
4#include <linux/slab.h>
5
6#include <dt-bindings/clock/at91.h>
7
8#include "pmc.h"

--- 310 unchanged lines hidden (view full) ---

319
320 sama5d2_pmc->shws[sama5d2_systemck[i].id] = hw;
321 }
322
323 for (i = 0; i < ARRAY_SIZE(sama5d2_periphck); i++) {
324 hw = at91_clk_register_sam9x5_peripheral(regmap, &pmc_pcr_lock,
325 &sama5d2_pcr_layout,
326 sama5d2_periphck[i].n,
1// SPDX-License-Identifier: GPL-2.0
2#include <linux/clk-provider.h>
3#include <linux/mfd/syscon.h>
4#include <linux/slab.h>
5
6#include <dt-bindings/clock/at91.h>
7
8#include "pmc.h"

--- 310 unchanged lines hidden (view full) ---

319
320 sama5d2_pmc->shws[sama5d2_systemck[i].id] = hw;
321 }
322
323 for (i = 0; i < ARRAY_SIZE(sama5d2_periphck); i++) {
324 hw = at91_clk_register_sam9x5_peripheral(regmap, &pmc_pcr_lock,
325 &sama5d2_pcr_layout,
326 sama5d2_periphck[i].n,
327 "masterck_div",
327 "masterck_div", NULL,
328 sama5d2_periphck[i].id,
329 &range, INT_MIN,
330 sama5d2_periphck[i].flags);
331 if (IS_ERR(hw))
332 goto err_free;
333
334 sama5d2_pmc->phws[sama5d2_periphck[i].id] = hw;
335 }
336
337 for (i = 0; i < ARRAY_SIZE(sama5d2_periph32ck); i++) {
338 hw = at91_clk_register_sam9x5_peripheral(regmap, &pmc_pcr_lock,
339 &sama5d2_pcr_layout,
340 sama5d2_periph32ck[i].n,
328 sama5d2_periphck[i].id,
329 &range, INT_MIN,
330 sama5d2_periphck[i].flags);
331 if (IS_ERR(hw))
332 goto err_free;
333
334 sama5d2_pmc->phws[sama5d2_periphck[i].id] = hw;
335 }
336
337 for (i = 0; i < ARRAY_SIZE(sama5d2_periph32ck); i++) {
338 hw = at91_clk_register_sam9x5_peripheral(regmap, &pmc_pcr_lock,
339 &sama5d2_pcr_layout,
340 sama5d2_periph32ck[i].n,
341 "h32mxck",
341 "h32mxck", NULL,
342 sama5d2_periph32ck[i].id,
343 &sama5d2_periph32ck[i].r,
344 INT_MIN, 0);
345 if (IS_ERR(hw))
346 goto err_free;
347
348 sama5d2_pmc->phws[sama5d2_periph32ck[i].id] = hw;
349 }

--- 50 unchanged lines hidden ---
342 sama5d2_periph32ck[i].id,
343 &sama5d2_periph32ck[i].r,
344 INT_MIN, 0);
345 if (IS_ERR(hw))
346 goto err_free;
347
348 sama5d2_pmc->phws[sama5d2_periph32ck[i].id] = hw;
349 }

--- 50 unchanged lines hidden ---