2 * Copyright (C) 2013 Boris BREZILLON <b.brezillon@overkiz.com>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
11 #include <linux/clk-provider.h>
12 #include <linux/clkdev.h>
13 #include <linux/clk/at91_pmc.h>
15 #include <linux/mfd/syscon.h>
16 #include <linux/regmap.h>
18 #include <asm/proc-fns.h>
22 int of_at91_get_clk_range(struct device_node
*np
, const char *propname
,
23 struct clk_range
*range
)
28 ret
= of_property_read_u32_index(np
, propname
, 0, &min
);
32 ret
= of_property_read_u32_index(np
, propname
, 1, &max
);
43 EXPORT_SYMBOL_GPL(of_at91_get_clk_range
);