1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- /*
- * linux/arch/arm/mach-omap1/clock.h
- *
- * Copyright (C) 2004 - 2005, 2009 Nokia corporation
- * Written by Tuukka Tikkanen <tuukka.tikkanen@elektrobit.com>
- * Based on clocks.h by Tony Lindgren, Gordon McNutt and RidgeRun, Inc
- *
- * 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 __ARCH_ARM_MACH_OMAP1_CLOCK_H
- #define __ARCH_ARM_MACH_OMAP1_CLOCK_H
- #include <linux/clk.h>
- #include <linux/list.h>
- #include <linux/clkdev.h>
- struct module;
- struct clk;
- struct omap_clk {
- u16 cpu;
- struct clk_lookup lk;
- };
- #define CLK(dev, con, ck, cp) \
- { \
- .cpu = cp, \
- .lk = { \
- .dev_id = dev, \
- .con_id = con, \
- .clk = ck, \
- }, \
- }
- /* Platform flags for the clkdev-OMAP integration code */
- #define CK_310 (1 << 0)
- #define CK_7XX (1 << 1) /* 7xx, 850 */
- #define CK_1510 (1 << 2)
- #define CK_16XX (1 << 3) /* 16xx, 17xx, 5912 */
- #define CK_1710 (1 << 4) /* 1710 extra for rate selection */
- /* Temporary, needed during the common clock framework conversion */
- #define __clk_get_name(clk) (clk->name)
- #define __clk_get_parent(clk) (clk->parent)
- #define __clk_get_rate(clk) (clk->rate)
- /**
- * struct clkops - some clock function pointers
- * @enable: fn ptr that enables the current clock in hardware
- * @disable: fn ptr that enables the current clock in hardware
- * @find_idlest: function returning the IDLEST register for the clock's IP blk
|