at91sam9x5.c (98817a84ff1c755c347ac633ff017a623a631fad) | at91sam9x5.c (b4c115c76184f2c56a295579161652fd5eb2dcc1) |
---|---|
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" --- 243 unchanged lines hidden (view full) --- 252 } 253 254 for (i = 0; i < ARRAY_SIZE(at91sam9x5_periphck); i++) { 255 hw = at91_clk_register_sam9x5_peripheral(regmap, &pmc_pcr_lock, 256 &at91sam9x5_pcr_layout, 257 at91sam9x5_periphck[i].n, 258 "masterck", 259 at91sam9x5_periphck[i].id, | 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" --- 243 unchanged lines hidden (view full) --- 252 } 253 254 for (i = 0; i < ARRAY_SIZE(at91sam9x5_periphck); i++) { 255 hw = at91_clk_register_sam9x5_peripheral(regmap, &pmc_pcr_lock, 256 &at91sam9x5_pcr_layout, 257 at91sam9x5_periphck[i].n, 258 "masterck", 259 at91sam9x5_periphck[i].id, |
260 &range); | 260 &range, INT_MIN); |
261 if (IS_ERR(hw)) 262 goto err_free; 263 264 at91sam9x5_pmc->phws[at91sam9x5_periphck[i].id] = hw; 265 } 266 267 for (i = 0; extra_pcks[i].id; i++) { 268 hw = at91_clk_register_sam9x5_peripheral(regmap, &pmc_pcr_lock, 269 &at91sam9x5_pcr_layout, 270 extra_pcks[i].n, 271 "masterck", 272 extra_pcks[i].id, | 261 if (IS_ERR(hw)) 262 goto err_free; 263 264 at91sam9x5_pmc->phws[at91sam9x5_periphck[i].id] = hw; 265 } 266 267 for (i = 0; extra_pcks[i].id; i++) { 268 hw = at91_clk_register_sam9x5_peripheral(regmap, &pmc_pcr_lock, 269 &at91sam9x5_pcr_layout, 270 extra_pcks[i].n, 271 "masterck", 272 extra_pcks[i].id, |
273 &range); | 273 &range, INT_MIN); |
274 if (IS_ERR(hw)) 275 goto err_free; 276 277 at91sam9x5_pmc->phws[extra_pcks[i].id] = hw; 278 } 279 280 of_clk_add_hw_provider(np, of_clk_hw_pmc_get, at91sam9x5_pmc); 281 --- 40 unchanged lines hidden --- | 274 if (IS_ERR(hw)) 275 goto err_free; 276 277 at91sam9x5_pmc->phws[extra_pcks[i].id] = hw; 278 } 279 280 of_clk_add_hw_provider(np, of_clk_hw_pmc_get, at91sam9x5_pmc); 281 --- 40 unchanged lines hidden --- |