/*1* arch/arm/mach-lpc32xx/clock.h2*3* Author: Kevin Wells <[email protected]>4*5* Copyright (C) 2010 NXP Semiconductors6*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License as published by9* the Free Software Foundation; either version 2 of the License, or10* (at your option) any later version.11*12* This program is distributed in the hope that it will be useful,13* but WITHOUT ANY WARRANTY; without even the implied warranty of14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15* GNU General Public License for more details.16*/1718#ifndef __LPC32XX_CLOCK_H19#define __LPC32XX_CLOCK_H2021struct clk {22struct list_head node;23struct clk *parent;24u32 rate;25u32 usecount;2627int (*set_rate) (struct clk *, unsigned long);28unsigned long (*round_rate) (struct clk *, unsigned long);29unsigned long (*get_rate) (struct clk *clk);30int (*enable) (struct clk *, int);3132/* Register address and bit mask for simple clocks */33void __iomem *enable_reg;34u32 enable_mask;35};3637#endif383940