mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
49 lines
1.8 KiB
Diff
49 lines
1.8 KiB
Diff
From 44de637a650e23153abf663b9d896287a9619e18 Mon Sep 17 00:00:00 2001
|
|
From: Robert Marko <robimarko@gmail.com>
|
|
Date: Fri, 21 Aug 2020 16:56:49 +0200
|
|
Subject: [PATCH] regulator: qcom_spmi: Add support for LD011 in PMD9655
|
|
|
|
LDO11 in PMD9655 is used for SD card support.
|
|
|
|
Signed-off-by: Robert Marko <robimarko@gmail.com>
|
|
---
|
|
drivers/regulator/qcom_spmi-regulator.c | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
--- a/drivers/regulator/qcom_spmi-regulator.c
|
|
+++ b/drivers/regulator/qcom_spmi-regulator.c
|
|
@@ -152,6 +152,7 @@ enum spmi_regulator_subtype {
|
|
SPMI_REGULATOR_SUBTYPE_ULT_HF_CTL4 = 0x10,
|
|
SPMI_REGULATOR_SUBTYPE_HFS430 = 0x0a,
|
|
SPMI_REGULATOR_SUBTYPE_VMPWM_CTL = 0x0a,
|
|
+ SPMI_REGULATOR_SUBTYPE_HT_P150 = 0x35,
|
|
};
|
|
|
|
enum spmi_common_regulator_registers {
|
|
@@ -479,7 +480,8 @@ static struct spmi_voltage_range smps_ra
|
|
};
|
|
|
|
static struct spmi_voltage_range smps_vmpwm_ranges[] = {
|
|
- SPMI_VOLTAGE_RANGE(0, 664000, 664000, 1104000, 1104000, 8000),
|
|
+ SPMI_VOLTAGE_RANGE(0, 664000, 664000, 1104000, 1104000, 8000),
|
|
+ SPMI_VOLTAGE_RANGE(1, 1104000, 1104000, 3300000, 3300000, 8000),
|
|
};
|
|
|
|
static struct spmi_voltage_range ftsmps_ranges[] = {
|
|
@@ -1526,6 +1528,7 @@ static const struct spmi_regulator_mappi
|
|
SPMI_VREG(LDO, LV_P300, 0, INF, LDO, ldo, pldo, 10000),
|
|
SPMI_VREG(LDO, LV_P600, 0, INF, LDO, ldo, pldo, 10000),
|
|
SPMI_VREG(LDO, LV_P1200, 0, INF, LDO, ldo, pldo, 10000),
|
|
+ SPMI_VREG(LDO, HT_P150, 0, INF, LDO, smps_vmpwm, smps_vmpwm, 0),
|
|
SPMI_VREG_VS(LV100, 0, INF),
|
|
SPMI_VREG_VS(LV300, 0, INF),
|
|
SPMI_VREG_VS(MV300, 0, INF),
|
|
@@ -2026,6 +2029,7 @@ static const struct spmi_regulator_data
|
|
static const struct spmi_regulator_data pmd9655_regulators[] = {
|
|
{ "s3", 0x1a00, "vdd_s3", },
|
|
{ "s4", 0x1d00, "vdd_s4", },
|
|
+ { "ldo11", 0x4a00, "vdd_ldo11", },
|
|
{ }
|
|
};
|
|
|