sam9x60.c (171e502c6a1fee63ab6f3fc685d38960398ce6d5) sam9x60.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"

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

332
333 sam9x60_pmc->shws[sam9x60_systemck[i].id] = hw;
334 }
335
336 for (i = 0; i < ARRAY_SIZE(sam9x60_periphck); i++) {
337 hw = at91_clk_register_sam9x5_peripheral(regmap, &pmc_pcr_lock,
338 &sam9x60_pcr_layout,
339 sam9x60_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"

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

332
333 sam9x60_pmc->shws[sam9x60_systemck[i].id] = hw;
334 }
335
336 for (i = 0; i < ARRAY_SIZE(sam9x60_periphck); i++) {
337 hw = at91_clk_register_sam9x5_peripheral(regmap, &pmc_pcr_lock,
338 &sam9x60_pcr_layout,
339 sam9x60_periphck[i].n,
340 "masterck_div",
340 "masterck_div", NULL,
341 sam9x60_periphck[i].id,
342 &range, INT_MIN,
343 sam9x60_periphck[i].flags);
344 if (IS_ERR(hw))
345 goto err_free;
346
347 sam9x60_pmc->phws[sam9x60_periphck[i].id] = hw;
348 }

--- 23 unchanged lines hidden ---
341 sam9x60_periphck[i].id,
342 &range, INT_MIN,
343 sam9x60_periphck[i].flags);
344 if (IS_ERR(hw))
345 goto err_free;
346
347 sam9x60_pmc->phws[sam9x60_periphck[i].id] = hw;
348 }

--- 23 unchanged lines hidden ---