[U-Boot] [PATCH v3 0/2] power: Add a driver to handle the PBIAS cell of the TI SOCs

Jean-Jacques Hiblot jjhiblot at ti.com
Thu Sep 21 15:03:08 UTC 2017


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



More information about the U-Boot mailing list