/*1* linux/arch/arm/mach-nuc93x/clock.h2*3* Copyright (c) 2008 Nuvoton technology corporation4*5* Wan ZongShun <[email protected]>6*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.10*/1112#include <linux/clkdev.h>1314void nuc93x_clk_enable(struct clk *clk, int enable);15void clks_register(struct clk_lookup *clks, size_t num);1617struct clk {18unsigned long cken;19unsigned int enabled;20void (*enable)(struct clk *, int enable);21};2223#define DEFINE_CLK(_name, _ctrlbit) \24struct clk clk_##_name = { \25.enable = nuc93x_clk_enable, \26.cken = (1 << _ctrlbit), \27}2829#define DEF_CLKLOOK(_clk, _devname, _conname) \30{ \31.clk = _clk, \32.dev_id = _devname, \33.con_id = _conname, \34}35363738