2019-05-29 23:57:47 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
regulator: tps6507x: allow driver to use DEFDCDC{2,3}_HIGH register
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
In TPS6507x, depending on the status of DEFDCDC{2,3} pin either
DEFDCDC{2,3}_LOW or DEFDCDC{2,3}_HIGH register needs to be read or
programmed to change the output voltage.
The current driver assumes DEFDCDC{2,3} pins are always tied low
and thus operates only on DEFDCDC{2,3}_LOW register. This need
not always be the case (as is found on OMAP-L138 EVM).
Unfortunately, software cannot read the status of DEFDCDC{2,3} pins.
So, this information is passed through platform data depending on
how the board is wired.
Signed-off-by: Anuj Aggarwal <anuj.aggarwal@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
2010-07-12 12:24:06 +00:00
|
|
|
/*
|
|
|
|
* tps6507x.h -- Voltage regulation for the Texas Instruments TPS6507X
|
|
|
|
*
|
|
|
|
* Copyright (C) 2010 Texas Instruments, Inc.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef REGULATOR_TPS6507X
|
|
|
|
#define REGULATOR_TPS6507X
|
|
|
|
|
|
|
|
/**
|
|
|
|
* tps6507x_reg_platform_data - platform data for tps6507x
|
|
|
|
* @defdcdc_default: Defines whether DCDC high or the low register controls
|
|
|
|
* output voltage by default. Valid for DCDC2 and DCDC3 outputs only.
|
|
|
|
*/
|
|
|
|
struct tps6507x_reg_platform_data {
|
|
|
|
bool defdcdc_default;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|