at91sam9x5.c (9d4d8572a539ef807e21c196f145aa365fd52f0e) | at91sam9x5.c (428d97e18594bc2c5cfd7207dff883384bac6822) |
---|---|
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" --- 288 unchanged lines hidden (view full) --- 297err_free: 298 kfree(at91sam9x5_pmc); 299} 300 301static void __init at91sam9g15_pmc_setup(struct device_node *np) 302{ 303 at91sam9x5_pmc_setup(np, at91sam9g15_periphck, true); 304} | 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" --- 288 unchanged lines hidden (view full) --- 297err_free: 298 kfree(at91sam9x5_pmc); 299} 300 301static void __init at91sam9g15_pmc_setup(struct device_node *np) 302{ 303 at91sam9x5_pmc_setup(np, at91sam9g15_periphck, true); 304} |
305CLK_OF_DECLARE_DRIVER(at91sam9g15_pmc, "atmel,at91sam9g15-pmc", 306 at91sam9g15_pmc_setup); | |
307 | 305 |
306CLK_OF_DECLARE(at91sam9g15_pmc, "atmel,at91sam9g15-pmc", at91sam9g15_pmc_setup); 307 |
|
308static void __init at91sam9g25_pmc_setup(struct device_node *np) 309{ 310 at91sam9x5_pmc_setup(np, at91sam9g25_periphck, false); 311} | 308static void __init at91sam9g25_pmc_setup(struct device_node *np) 309{ 310 at91sam9x5_pmc_setup(np, at91sam9g25_periphck, false); 311} |
312CLK_OF_DECLARE_DRIVER(at91sam9g25_pmc, "atmel,at91sam9g25-pmc", 313 at91sam9g25_pmc_setup); | |
314 | 312 |
313CLK_OF_DECLARE(at91sam9g25_pmc, "atmel,at91sam9g25-pmc", at91sam9g25_pmc_setup); 314 |
|
315static void __init at91sam9g35_pmc_setup(struct device_node *np) 316{ 317 at91sam9x5_pmc_setup(np, at91sam9g35_periphck, true); 318} | 315static void __init at91sam9g35_pmc_setup(struct device_node *np) 316{ 317 at91sam9x5_pmc_setup(np, at91sam9g35_periphck, true); 318} |
319CLK_OF_DECLARE_DRIVER(at91sam9g35_pmc, "atmel,at91sam9g35-pmc", 320 at91sam9g35_pmc_setup); | |
321 | 319 |
320CLK_OF_DECLARE(at91sam9g35_pmc, "atmel,at91sam9g35-pmc", at91sam9g35_pmc_setup); 321 |
|
322static void __init at91sam9x25_pmc_setup(struct device_node *np) 323{ 324 at91sam9x5_pmc_setup(np, at91sam9x25_periphck, false); 325} | 322static void __init at91sam9x25_pmc_setup(struct device_node *np) 323{ 324 at91sam9x5_pmc_setup(np, at91sam9x25_periphck, false); 325} |
326CLK_OF_DECLARE_DRIVER(at91sam9x25_pmc, "atmel,at91sam9x25-pmc", 327 at91sam9x25_pmc_setup); | |
328 | 326 |
327CLK_OF_DECLARE(at91sam9x25_pmc, "atmel,at91sam9x25-pmc", at91sam9x25_pmc_setup); 328 |
|
329static void __init at91sam9x35_pmc_setup(struct device_node *np) 330{ 331 at91sam9x5_pmc_setup(np, at91sam9x35_periphck, true); 332} | 329static void __init at91sam9x35_pmc_setup(struct device_node *np) 330{ 331 at91sam9x5_pmc_setup(np, at91sam9x35_periphck, true); 332} |
333CLK_OF_DECLARE_DRIVER(at91sam9x35_pmc, "atmel,at91sam9x35-pmc", 334 at91sam9x35_pmc_setup); | 333 334CLK_OF_DECLARE(at91sam9x35_pmc, "atmel,at91sam9x35-pmc", at91sam9x35_pmc_setup); |