mirror of
https://github.com/torvalds/linux.git
synced 2024-11-19 10:31:48 +00:00
04c366f063
Signed-off-by: Uwe Kleine-König <Uwe.Kleine-Koenig@digi.com>
36 lines
762 B
C
36 lines
762 B
C
/*
|
|
* arch/arm/mach-ns9xxx/clock.h
|
|
*
|
|
* Copyright (C) 2007 by Digi International Inc.
|
|
* All rights reserved.
|
|
*
|
|
* 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.
|
|
*/
|
|
#ifndef __NS9XXX_CLOCK_H
|
|
#define __NS9XXX_CLOCK_H
|
|
|
|
#include <linux/list.h>
|
|
|
|
struct clk {
|
|
struct module *owner;
|
|
const char *name;
|
|
int id;
|
|
|
|
struct clk *parent;
|
|
|
|
unsigned long rate;
|
|
int (*endisable)(struct clk *, int enable);
|
|
unsigned long (*get_rate)(struct clk *);
|
|
|
|
struct list_head node;
|
|
unsigned long refcount;
|
|
unsigned long usage;
|
|
};
|
|
|
|
int clk_register(struct clk *clk);
|
|
int clk_unregister(struct clk *clk);
|
|
|
|
#endif /* ifndef __NS9XXX_CLOCK_H */
|