summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHervé Fache <h-fache@ti.com>2012-06-21 11:40:44 +0200
committerXavier Boudet <x-boudet@ti.com>2012-07-10 17:26:54 +0200
commit1fcebfedbb0be855a60e7bf4fcc5d31a7242a3b1 (patch)
treeb792e0863d082183280f9c0f97190478380e0d1c
parent5868b36d38e3ea276de43d054193ce26ecdf33f5 (diff)
Blaze: register regulators to resource manager
Signed-off-by: Hervé Fache <h-fache@ti.com>
-rw-r--r--arch/arm/mach-omap2/board-4430sdp.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c
index 30144b8521c9..1b2f5f71e1fa 100644
--- a/arch/arm/mach-omap2/board-4430sdp.c
+++ b/arch/arm/mach-omap2/board-4430sdp.c
@@ -35,6 +35,7 @@
#include <asm/mach/map.h>
#include <plat/board.h>
+#include <plat/rpmsg_resmgr.h>
#include "common.h"
#include <plat/usb.h>
#include <plat/mmc.h>
@@ -389,6 +390,13 @@ static struct platform_device sdp4430_vbat = {
},
};
+static struct omap_rprm_regulator sdp4430_rprm_regulators[] = {
+ {
+ .name = "cam2pwr",
+ .fixed = true,
+ },
+};
+
static struct platform_device sdp4430_dmic_codec = {
.name = "dmic-codec",
.id = -1,
@@ -1008,6 +1016,9 @@ static void __init omap_4430sdp_init(void)
pr_err("TPS62361 initialization failed: %d\n", status);
}
omap_enable_smartreflex_on_init();
+ omap_rprm_regulator_init(sdp4430_rprm_regulators,
+ ARRAY_SIZE(sdp4430_rprm_regulators));
+
}
static void __init omap_4430sdp_reserve(void)