mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 10:01:43 +00:00
cd2fa6d603
To prevent lots of unnecessary call-backs into platform code, we're now using the GPIO regulator framework to control the 'enable' (en) and 'voltage select' (vsel) GPIO pins which in turn control the MMCI's secondary regulator settings. This already works with Device Tree, but when booting with ATAGs we need to register it as a platform device. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
25 lines
726 B
C
25 lines
726 B
C
/*
|
|
* Copyright (C) ST-Ericsson SA 2010
|
|
*
|
|
* License Terms: GNU General Public License v2
|
|
*
|
|
* Author: Bengt Jonsson <bengt.g.jonsson@stericsson.com> for ST-Ericsson
|
|
*
|
|
* MOP500 board specific initialization for regulators
|
|
*/
|
|
|
|
#ifndef __BOARD_MOP500_REGULATORS_H
|
|
#define __BOARD_MOP500_REGULATORS_H
|
|
|
|
#include <linux/regulator/machine.h>
|
|
#include <linux/regulator/ab8500.h>
|
|
|
|
extern struct ab8500_regulator_reg_init
|
|
ab8500_regulator_reg_init[AB8500_NUM_REGULATOR_REGISTERS];
|
|
extern struct regulator_init_data ab8500_regulators[AB8500_NUM_REGULATORS];
|
|
extern struct regulator_init_data tps61052_regulator;
|
|
extern struct regulator_init_data gpio_en_3v3_regulator;
|
|
extern struct regulator_init_data sdi0_reg_init_data;
|
|
|
|
#endif
|