facdf0ed4f
Create basic support for clk API. Recent changes to the FEC driver (used by many ColdFire family parts) need this. Initially only supports getting the master clock frequency. Signed-off-by: Greg Ungerer <gerg@uclinux.org>
41 lines
774 B
C
41 lines
774 B
C
/***************************************************************************/
|
|
|
|
/*
|
|
* clk.c -- general ColdFire CPU kernel clk handling
|
|
*
|
|
* Copyright (C) 2009, Greg Ungerer (gerg@snapgear.com)
|
|
*/
|
|
|
|
/***************************************************************************/
|
|
|
|
#include <linux/kernel.h>
|
|
#include <linux/clk.h>
|
|
#include <asm/coldfire.h>
|
|
|
|
/***************************************************************************/
|
|
|
|
struct clk *clk_get(struct device *dev, const char *id)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
int clk_enable(struct clk *clk)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
void clk_disable(struct clk *clk)
|
|
{
|
|
}
|
|
|
|
void clk_put(struct clk *clk)
|
|
{
|
|
}
|
|
|
|
unsigned long clk_get_rate(struct clk *clk)
|
|
{
|
|
return MCF_CLK;
|
|
}
|
|
|
|
/***************************************************************************/
|