dt-compat.c (171e502c6a1fee63ab6f3fc685d38960398ce6d5) | dt-compat.c (c2f2ca0be8a62ce61a6878cd3dddd8fc6d622999) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2#include <linux/clk-provider.h> 3#include <linux/clk/at91_pmc.h> 4#include <linux/of.h> 5#include <linux/mfd/syscon.h> 6#include <linux/regmap.h> 7#include <linux/slab.h> 8 --- 476 unchanged lines hidden (view full) --- 485 if (id >= PERIPHERAL_MAX) 486 continue; 487 488 if (of_property_read_string(np, "clock-output-names", &name)) 489 name = periphclknp->name; 490 491 if (type == PERIPHERAL_AT91RM9200) { 492 hw = at91_clk_register_peripheral(regmap, name, | 1// SPDX-License-Identifier: GPL-2.0 2#include <linux/clk-provider.h> 3#include <linux/clk/at91_pmc.h> 4#include <linux/of.h> 5#include <linux/mfd/syscon.h> 6#include <linux/regmap.h> 7#include <linux/slab.h> 8 --- 476 unchanged lines hidden (view full) --- 485 if (id >= PERIPHERAL_MAX) 486 continue; 487 488 if (of_property_read_string(np, "clock-output-names", &name)) 489 name = periphclknp->name; 490 491 if (type == PERIPHERAL_AT91RM9200) { 492 hw = at91_clk_register_peripheral(regmap, name, |
493 parent_name, id); | 493 parent_name, NULL, id); |
494 } else { 495 struct clk_range range = CLK_RANGE(0, 0); 496 unsigned long flags = 0; 497 498 of_at91_get_clk_range(periphclknp, 499 "atmel,clk-output-range", 500 &range); 501 --- 5 unchanged lines hidden (view full) --- 507 if (!strcmp(periphclknp->name, "mpddr_clk")) 508 flags = CLK_IS_CRITICAL; 509 510 hw = at91_clk_register_sam9x5_peripheral(regmap, 511 &pmc_pcr_lock, 512 &dt_pcr_layout, 513 name, 514 parent_name, | 494 } else { 495 struct clk_range range = CLK_RANGE(0, 0); 496 unsigned long flags = 0; 497 498 of_at91_get_clk_range(periphclknp, 499 "atmel,clk-output-range", 500 &range); 501 --- 5 unchanged lines hidden (view full) --- 507 if (!strcmp(periphclknp->name, "mpddr_clk")) 508 flags = CLK_IS_CRITICAL; 509 510 hw = at91_clk_register_sam9x5_peripheral(regmap, 511 &pmc_pcr_lock, 512 &dt_pcr_layout, 513 name, 514 parent_name, |
515 NULL, |
|
515 id, &range, 516 INT_MIN, 517 flags); 518 } 519 520 if (IS_ERR(hw)) 521 continue; 522 --- 543 unchanged lines hidden --- | 516 id, &range, 517 INT_MIN, 518 flags); 519 } 520 521 if (IS_ERR(hw)) 522 continue; 523 --- 543 unchanged lines hidden --- |