blob: da85c6deb9443a41c5aab73704fdc869ee563464 [file] [log] [blame]
/*
* OMAP3/OMAP4 DVFS Management Routines
*
* Author: Vishwanath BS <vishwanath.bs@ti.com>
*
* Copyright (C) 2011 Texas Instruments, Inc.
* Vishwanath BS <vishwanath.bs@ti.com>
*
* 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_OMAP2_DVFS_H
#define __ARCH_ARM_MACH_OMAP2_DVFS_H
#include <plat/omap_hwmod.h>
#include "voltage.h"
#ifdef CONFIG_PM
int omap_dvfs_register_device(struct device *dev, char *voltdm_name,
char *clk_name);
int omap_device_scale(struct device *req_dev, struct device *target_dev,
unsigned long rate);
#else
static inline int omap_dvfs_register_device(struct omap_hwmod *oh,
struct device *dev)
static inline int omap_dvfs_register_device(struct device *dev,
char *voltdm_name, char *clk_name)
{
return -EINVAL;
}
static inline int omap_device_scale(struct device *req_dev,
struct device *target_dev, unsigned long rate)
{
return -EINVAL;
}
#endif
#endif