/*
 * Clock management for AT32AP CPUs
 *
 * Copyright (C) 2006 Atmel Corporation
 *
 * Based on arch/arm/mach-at91/clock.c
 *   Copyright (C) 2005 David Brownell
 *   Copyright (C) 2005 Ivan Kokshaysky
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */
#include <linux/clk.h>
#include <linux/list.h>


void at32_clk_register(struct clk *clk);

struct clk {
	struct list_head list;		/* linking element */
	const char	*name;		/* Clock name/function */
	struct device	*dev;		/* Device the clock is used by */
	struct clk	*parent;	/* Parent clock, if any */
	void		(*mode)(struct clk *clk, int enabled);
	unsigned long	(*get_rate)(struct clk *clk);
	long		(*set_rate)(struct clk *clk, unsigned long rate,
				    int apply);
	int		(*set_parent)(struct clk *clk, struct clk *parent);
	u16		users;		/* Enabled if non-zero */
	u16		index;		/* Sibling index */
};

unsigned long pba_clk_get_rate(struct clk *clk);
void pba_clk_mode(struct clk *clk, int enabled);
u have been warned.</td><td class='sub right'>UNKNOWN</td></tr></table>
<table class='tabs'><tr><td>
<a href='/~mlankhorst/linux/'>summary</a><a href='/~mlankhorst/linux/refs/'>refs</a><a class='active' href='/~mlankhorst/linux/log/arch/um/configs'>log</a><a href='/~mlankhorst/linux/tree/arch/um/configs'>tree</a><a href='/~mlankhorst/linux/commit/arch/um/configs'>commit</a><a href='/~mlankhorst/linux/diff/arch/um/configs'>diff</a></td><td class='form'><form class='right' method='get' action='/~mlankhorst/linux/log/arch/um/configs'>
<select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/~mlankhorst/linux/log/'>root</a>/<a href='/~mlankhorst/linux/log/arch'>arch</a>/<a href='/~mlankhorst/linux/log/arch/um'>um</a>/<a href='/~mlankhorst/linux/log/arch/um/configs'>configs</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/~mlankhorst/linux/log/arch/um/configs?showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>