diff options
Diffstat (limited to 'arch/arm/mach-mx5/cpu_regulator-mx5.c')
-rw-r--r-- | arch/arm/mach-mx5/cpu_regulator-mx5.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/arm/mach-mx5/cpu_regulator-mx5.c b/arch/arm/mach-mx5/cpu_regulator-mx5.c new file mode 100644 index 00000000..b7d01e91 --- /dev/null +++ b/arch/arm/mach-mx5/cpu_regulator-mx5.c @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2011 Freescale Semiconductor, Inc. All Rights Reserved. + */ + +/* + * The code contained herein is licensed under the GNU General Public + * License. You may obtain a copy of the GNU General Public License + * Version 2 or later at the following locations: + * + * http://www.opensource.org/licenses/gpl-license.html + * http://www.gnu.org/copyleft/gpl.html + */ + +#include <linux/types.h> +#include <linux/kernel.h> +#include <mach/hardware.h> +#include <linux/err.h> +#include <linux/regulator/consumer.h> + +struct regulator *cpu_regulator; +char *gp_reg_id; + + +void mx5_cpu_regulator_init(void) +{ + cpu_regulator = regulator_get(NULL, gp_reg_id); + if (IS_ERR(cpu_regulator)) + printk(KERN_ERR "%s: failed to get cpu regulator\n", __func__); +} + |