From: Jean-Jacques Hiblot Date: Thu, 21 Sep 2017 17:03:08 +0200 Subject: [U-Boot] [PATCH v3 0/2] power: Add a driver to handle the PBIAS cell of the TI SOCs Message-ID: <1506006190-9498-1-git-send-email-jjhiblot@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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. 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 -- 1.9.1