From: Jaehoon Chung Date: Fri, 22 Sep 2017 23:15:36 +0900 Subject: [U-Boot] [PATCH v3 0/2] power: Add a driver to handle the PBIAS cell of the TI SOCs In-Reply-To: <1506006190-9498-1-git-send-email-jjhiblot@ti.com> References: <1506006190-9498-1-git-send-email-jjhiblot@ti.com> Message-ID: <0540562c-889d-bced-d36f-a08f3d40bc53@samsung.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 09/22/2017 12:03 AM, Jean-Jacques Hiblot wrote: > In the TI SOCs a PBIAS cell exists to provide a bias voltage to the MMC1 > IO cells. Without this bias voltage these I/O cells can not function > properly. This bias voltage is either 1.8v or 3.0v. > > The first patch adds 2 functions to the DM core: to count strings in a > stringlist and get a string from a stringlist based on its position in the > list. > The second patch implements the support for this PBIAS cell as a regulator > driver. Applied to u-boot-mmc for pmic. Best Regards, Jaehoon Chung > > Jean-Jacques > > > changes since v2: > * rebased on u-boot/master > * automatically select REGMAP and SYSCON if PBIAS is selected. > > changes since v1: > - add new functions to get strings from a stringlist in DM core > - use the dev_read_*() API to access the DT > - automatically select the PBIAS driver if DM_REGULATOR, DM_MMC and > MMC_OMAP_HS are set. > - removed the patch touching the DRA7 and AM57 config files. > > > Jean-Jacques Hiblot (2): > dm: core: Add functions to get strings and the string count from a > stringlist > regulator: pbias: Add PBIAS regulator for proper voltage switching on > MMC1 > > drivers/core/read.c | 11 ++ > drivers/mmc/Kconfig | 1 + > drivers/power/regulator/Kconfig | 13 ++ > drivers/power/regulator/Makefile | 1 + > drivers/power/regulator/pbias_regulator.c | 301 ++++++++++++++++++++++++++++++ > include/dm/read.h | 36 ++++ > 6 files changed, 363 insertions(+) > create mode 100644 drivers/power/regulator/pbias_regulator.c >