From: Romit Dasgupta <romit@ti.com>
To: paul@pwsan.com, nm@ti.com, khilman@deeprootsystems.com
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: [PATCH 6/10] OPP layer and additional cleanups
Date: Thu, 31 Dec 2009 18:59:22 +0530 [thread overview]
Message-ID: <1262266162.20175.182.camel@boson> (raw)
Introduce a new types for
1. for identifying voltage rails.
2. generic voltage scaling routine and its registration function.
and the prototype for the registration function itself.
diff --git a/arch/arm/mach-omap2/pm.h b/arch/arm/mach-omap2/pm.h
index 65a6e04..d36cd1d 100644
--- a/arch/arm/mach-omap2/pm.h
+++ b/arch/arm/mach-omap2/pm.h
@@ -12,6 +12,9 @@
#define __ARCH_ARM_MACH_OMAP2_PM_H
#include <plat/powerdomain.h>
+#ifdef CONFIG_ARCH_OMAP3
+#include <plat/opp.h>
+#endif
extern u32 enable_off_mode;
extern u32 sleep_while_idle;
@@ -23,6 +26,20 @@ extern void omap_sram_idle(void);
extern int omap3_can_sleep(void);
extern int set_pwrdm_state(struct powerdomain *pwrdm, u32 state);
extern int omap3_idle_init(void);
+#ifdef CONFIG_ARCH_OMAP3
+extern unsigned long get_l3_target_freq(struct omap_opp *);
+enum volt_rail {
+ RAIL_NONE,
+ RAIL_VDD1,
+ RAIL_VDD2,
+};
+
+typedef int (*volt_scale_t) (enum volt_rail, struct omap_opp *,
+ struct omap_opp *);
+extern volt_scale_t voltage_scale;
+extern int pm_register_volt_scaling(volt_scale_t);
+#endif
+
struct cpuidle_params {
u8 valid;
reply other threads:[~2009-12-31 13:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1262266162.20175.182.camel@boson \
--to=romit@ti.com \
--cc=khilman@deeprootsystems.com \
--cc=linux-omap@vger.kernel.org \
--cc=nm@ti.com \
--cc=paul@pwsan.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox