Commit 5ed8f755bb22b792089258902ddb319977a4e233
1 parent
0c19e9793e
Exists in
master
arm:omap:am33xx: Voltage domain data
Currently this is being added to to prevent non registration of power & clock domains, nothing w.r.t actual hardware is done. TODO: Revisit the change later Signed-off-by: Afzal Mohammed <afzal@ti.com>
Showing 2 changed files with 33 additions and 0 deletions Side-by-side Diff
arch/arm/mach-omap2/voltage.h
... | ... | @@ -156,6 +156,7 @@ |
156 | 156 | |
157 | 157 | extern void omap2xxx_voltagedomains_init(void); |
158 | 158 | extern void omap3xxx_voltagedomains_init(void); |
159 | +extern void am33xx_voltagedomains_init(void); | |
159 | 160 | extern void omap44xx_voltagedomains_init(void); |
160 | 161 | |
161 | 162 | struct voltagedomain *voltdm_lookup(const char *name); |
arch/arm/mach-omap2/voltagedomains33xx_data.c
1 | +/* | |
2 | + * AM33XX voltage domain data | |
3 | + * | |
4 | + * Copyright (C) 2011 Texas Instruments, Inc. | |
5 | + * | |
6 | + * This program is free software; you can redistribute it and/or modify | |
7 | + * it under the terms of the GNU General Public License version 2 as | |
8 | + * published by the Free Software Foundation. | |
9 | + */ | |
10 | +#include <linux/kernel.h> | |
11 | +#include <linux/init.h> | |
12 | + | |
13 | +#include "voltage.h" | |
14 | + | |
15 | +static struct voltagedomain am33xx_voltdm_core = { | |
16 | + .name = "core", | |
17 | +}; | |
18 | + | |
19 | +static struct voltagedomain am33xx_voltdm_rtc = { | |
20 | + .name = "rtc", | |
21 | +}; | |
22 | + | |
23 | +static struct voltagedomain *voltagedomains_am33xx[] __initdata = { | |
24 | + &am33xx_voltdm_core, | |
25 | + &am33xx_voltdm_rtc, | |
26 | + NULL, | |
27 | +}; | |
28 | + | |
29 | +void __init am33xx_voltagedomains_init(void) | |
30 | +{ | |
31 | + voltdm_init(voltagedomains_am33xx); | |
32 | +} |