-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
m68knommu: introduce basic clk infrastructure
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>
- Loading branch information
Greg Ungerer
committed
Mar 24, 2009
1 parent
a550546
commit facdf0e
Showing
2 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/***************************************************************************/ | ||
|
||
/* | ||
* 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; | ||
} | ||
|
||
/***************************************************************************/ |