Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit facdf0ed authored by Greg Ungerer's avatar Greg Ungerer
Browse files

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: default avatarGreg Ungerer <gerg@uclinux.org>
parent a5505464
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -14,7 +14,7 @@


asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1
asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1


obj-$(CONFIG_COLDFIRE)	+= dma.o entry.o vectors.o
obj-$(CONFIG_COLDFIRE)	+= clk.o dma.o entry.o vectors.o
obj-$(CONFIG_M5206)	+= timers.o
obj-$(CONFIG_M5206)	+= timers.o
obj-$(CONFIG_M5206e)	+= timers.o
obj-$(CONFIG_M5206e)	+= timers.o
obj-$(CONFIG_M520x)	+= pit.o
obj-$(CONFIG_M520x)	+= pit.o
+40 −0
Original line number Original line Diff line number Diff line
/***************************************************************************/

/*
 *	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;
}

/***************************************************************************/