mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
![Thomas Gleixner](/assets/img/avatar_default.png)
Based on 3 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version [author] [kishon] [vijay] [abraham] [i] [kishon]@[ti] [com] this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version [author] [graeme] [gregory] [gg]@[slimlogic] [co] [uk] [author] [kishon] [vijay] [abraham] [i] [kishon]@[ti] [com] [based] [on] [twl6030]_[usb] [c] [author] [hema] [hk] [hemahk]@[ti] [com] this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 1105 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Richard Fontana <rfontana@redhat.com> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190527070033.202006027@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
39 lines
757 B
C
39 lines
757 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* da9211.h - Regulator device driver for DA9211/DA9212
|
|
* /DA9213/DA9223/DA9214/DA9224/DA9215/DA9225
|
|
* Copyright (C) 2015 Dialog Semiconductor Ltd.
|
|
*/
|
|
|
|
#ifndef __LINUX_REGULATOR_DA9211_H
|
|
#define __LINUX_REGULATOR_DA9211_H
|
|
|
|
#include <linux/regulator/machine.h>
|
|
|
|
#define DA9211_MAX_REGULATORS 2
|
|
|
|
struct gpio_desc;
|
|
|
|
enum da9211_chip_id {
|
|
DA9211,
|
|
DA9212,
|
|
DA9213,
|
|
DA9223,
|
|
DA9214,
|
|
DA9224,
|
|
DA9215,
|
|
DA9225,
|
|
};
|
|
|
|
struct da9211_pdata {
|
|
/*
|
|
* Number of buck
|
|
* 1 : 4 phase 1 buck
|
|
* 2 : 2 phase 2 buck
|
|
*/
|
|
int num_buck;
|
|
struct gpio_desc *gpiod_ren[DA9211_MAX_REGULATORS];
|
|
struct device_node *reg_node[DA9211_MAX_REGULATORS];
|
|
struct regulator_init_data *init_data[DA9211_MAX_REGULATORS];
|
|
};
|
|
#endif
|