aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/voltagedomains2xxx_data.c
diff options
context:
space:
mode:
authorKevin Hilman <khilman@ti.com>2011-03-23 16:09:41 -0700
committerKevin Hilman <khilman@ti.com>2011-09-15 11:39:10 -0700
commitaae030fa329307895eb935b057a72b12c6bd678b (patch)
tree4b39015d62f9edf1a8519166bc8f3ef55739c0b4 /arch/arm/mach-omap2/voltagedomains2xxx_data.c
parentOMAP2+: powerdomain: add voltagedomain to struct powerdomain (diff)
downloadlinux-dev-aae030fa329307895eb935b057a72b12c6bd678b.tar.xz
linux-dev-aae030fa329307895eb935b057a72b12c6bd678b.zip
OMAP2: add voltage domains and connect to powerdomains
Create basic voltagedomains for OMAP2 and associate OMAP2 powerdomains with the newly created voltage domains. While here, update copyright on powerdomain data to 2011. Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/voltagedomains2xxx_data.c')
-rw-r--r--arch/arm/mach-omap2/voltagedomains2xxx_data.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/voltagedomains2xxx_data.c b/arch/arm/mach-omap2/voltagedomains2xxx_data.c
new file mode 100644
index 000000000000..7a41349981e5
--- /dev/null
+++ b/arch/arm/mach-omap2/voltagedomains2xxx_data.c
@@ -0,0 +1,32 @@
+/*
+ * OMAP3 voltage domain data
+ *
+ * Copyright (C) 2011 Texas Instruments, 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.
+ */
+#include <linux/kernel.h>
+#include <linux/init.h>
+
+#include "voltage.h"
+
+static struct voltagedomain omap2_voltdm_core = {
+ .name = "core",
+};
+
+static struct voltagedomain omap2_voltdm_wkup = {
+ .name = "wakeup",
+};
+
+static struct voltagedomain *voltagedomains_omap2[] __initdata = {
+ &omap2_voltdm_core,
+ &omap2_voltdm_wkup,
+ NULL,
+};
+
+void __init omap2xxx_voltagedomains_init(void)
+{
+ voltdm_init(voltagedomains_omap2);
+}