Release 4.10 arch/powerpc/sysdev/mpc5xxx_clocks.c
/**
* mpc5xxx_get_bus_frequency - Find the bus frequency for a device
* @node: device node
*
* Returns bus frequency (IPS on MPC512x, IPB on MPC52xx),
* or 0 if the bus frequency cannot be found.
*/
#include <linux/kernel.h>
#include <linux/of_platform.h>
#include <linux/export.h>
#include <asm/mpc5xxx.h>
unsigned long mpc5xxx_get_bus_frequency(struct device_node *node)
{
const unsigned int *p_bus_freq = NULL;
of_node_get(node);
while (node) {
p_bus_freq = of_get_property(node, "bus-frequency", NULL);
if (p_bus_freq)
break;
node = of_get_next_parent(node);
}
of_node_put(node);
return p_bus_freq ? *p_bus_freq : 0;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
wolfgang denk | wolfgang denk | 62 | 93.94% | 1 | 33.33% |
anatolij gustschin | anatolij gustschin | 2 | 3.03% | 1 | 33.33% |
christophe jaillet | christophe jaillet | 2 | 3.03% | 1 | 33.33% |
| Total | 66 | 100.00% | 3 | 100.00% |
EXPORT_SYMBOL(mpc5xxx_get_bus_frequency);
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
wolfgang denk | wolfgang denk | 74 | 88.10% | 1 | 25.00% |
anatolij gustschin | anatolij gustschin | 5 | 5.95% | 1 | 25.00% |
paul gortmaker | paul gortmaker | 3 | 3.57% | 1 | 25.00% |
christophe jaillet | christophe jaillet | 2 | 2.38% | 1 | 25.00% |
| Total | 84 | 100.00% | 4 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.