at91sam9x5.c (171e502c6a1fee63ab6f3fc685d38960398ce6d5) | at91sam9x5.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" --- 260 unchanged lines hidden (view full) --- 269 270 at91sam9x5_pmc->shws[3] = hw; 271 } 272 273 for (i = 0; i < ARRAY_SIZE(at91sam9x5_periphck); i++) { 274 hw = at91_clk_register_sam9x5_peripheral(regmap, &pmc_pcr_lock, 275 &at91sam9x5_pcr_layout, 276 at91sam9x5_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" --- 260 unchanged lines hidden (view full) --- 269 270 at91sam9x5_pmc->shws[3] = hw; 271 } 272 273 for (i = 0; i < ARRAY_SIZE(at91sam9x5_periphck); i++) { 274 hw = at91_clk_register_sam9x5_peripheral(regmap, &pmc_pcr_lock, 275 &at91sam9x5_pcr_layout, 276 at91sam9x5_periphck[i].n, |
277 "masterck_div", | 277 "masterck_div", NULL, |
278 at91sam9x5_periphck[i].id, 279 &range, INT_MIN, 0); 280 if (IS_ERR(hw)) 281 goto err_free; 282 283 at91sam9x5_pmc->phws[at91sam9x5_periphck[i].id] = hw; 284 } 285 286 for (i = 0; extra_pcks[i].id; i++) { 287 hw = at91_clk_register_sam9x5_peripheral(regmap, &pmc_pcr_lock, 288 &at91sam9x5_pcr_layout, 289 extra_pcks[i].n, | 278 at91sam9x5_periphck[i].id, 279 &range, INT_MIN, 0); 280 if (IS_ERR(hw)) 281 goto err_free; 282 283 at91sam9x5_pmc->phws[at91sam9x5_periphck[i].id] = hw; 284 } 285 286 for (i = 0; extra_pcks[i].id; i++) { 287 hw = at91_clk_register_sam9x5_peripheral(regmap, &pmc_pcr_lock, 288 &at91sam9x5_pcr_layout, 289 extra_pcks[i].n, |
290 "masterck_div", | 290 "masterck_div", NULL, |
291 extra_pcks[i].id, 292 &range, INT_MIN, 0); 293 if (IS_ERR(hw)) 294 goto err_free; 295 296 at91sam9x5_pmc->phws[extra_pcks[i].id] = hw; 297 } 298 --- 42 unchanged lines hidden --- | 291 extra_pcks[i].id, 292 &range, INT_MIN, 0); 293 if (IS_ERR(hw)) 294 goto err_free; 295 296 at91sam9x5_pmc->phws[extra_pcks[i].id] = hw; 297 } 298 --- 42 unchanged lines hidden --- |