Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161600097
D56351.id176637.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D56351.id176637.diff
View Options
diff --git a/sys/dev/qcom_tlmm/qcom_tlmm_ipq4018_hw.c b/sys/dev/qcom_tlmm/qcom_tlmm_ipq4018_hw.c
--- a/sys/dev/qcom_tlmm/qcom_tlmm_ipq4018_hw.c
+++ b/sys/dev/qcom_tlmm/qcom_tlmm_ipq4018_hw.c
@@ -314,6 +314,7 @@
reg |= QCOM_TLMM_IPQ4018_REG_PIN_CONTROL_PUPD_PULLDOWN
<< QCOM_TLMM_IPQ4018_REG_PIN_CONTROL_PUPD_SHIFT;
break;
+ case QCOM_TLMM_PIN_PUPD_CONFIG_STRONG_PULL_UP:
case QCOM_TLMM_PIN_PUPD_CONFIG_PULL_UP:
reg |= QCOM_TLMM_IPQ4018_REG_PIN_CONTROL_PUPD_PULLUP
<< QCOM_TLMM_IPQ4018_REG_PIN_CONTROL_PUPD_SHIFT;
diff --git a/sys/dev/qcom_tlmm/qcom_tlmm_pin.c b/sys/dev/qcom_tlmm/qcom_tlmm_pin.c
--- a/sys/dev/qcom_tlmm/qcom_tlmm_pin.c
+++ b/sys/dev/qcom_tlmm/qcom_tlmm_pin.c
@@ -101,6 +101,7 @@
pin->gp_flags |= GPIO_PIN_PULLUP;
sc->sc_hw->qcom_tlmm_hw_pin_set_pupd_config(sc, pin->gp_pin,
QCOM_TLMM_PIN_PUPD_CONFIG_PULL_UP);
+ /* XXX todo: i2c strong pull-up? */
} else if (flags & GPIO_PIN_PULLDOWN) {
pin->gp_flags |= GPIO_PIN_PULLDOWN;
sc->sc_hw->qcom_tlmm_hw_pin_set_pupd_config(sc, pin->gp_pin,
@@ -197,6 +198,10 @@
case QCOM_TLMM_PIN_PUPD_CONFIG_PULL_UP:
*flags |= GPIO_PIN_PULLUP;
break;
+ case QCOM_TLMM_PIN_PUPD_CONFIG_STRONG_PULL_UP:
+ /* XXX flag i2c "strong" pull-up? */
+ *flags |= GPIO_PIN_PULLUP;
+ break;
case QCOM_TLMM_PIN_PUPD_CONFIG_BUS_HOLD:
*flags |= (GPIO_PIN_PULLUP | GPIO_PIN_PULLDOWN);
break;
diff --git a/sys/dev/qcom_tlmm/qcom_tlmm_var.h b/sys/dev/qcom_tlmm/qcom_tlmm_var.h
--- a/sys/dev/qcom_tlmm/qcom_tlmm_var.h
+++ b/sys/dev/qcom_tlmm/qcom_tlmm_var.h
@@ -95,6 +95,7 @@
QCOM_TLMM_PIN_PUPD_CONFIG_PULL_DOWN = 1,
QCOM_TLMM_PIN_PUPD_CONFIG_PULL_UP = 2,
QCOM_TLMM_PIN_PUPD_CONFIG_BUS_HOLD = 3,
+ QCOM_TLMM_PIN_PUPD_CONFIG_STRONG_PULL_UP = 4, /* i2c */
} qcom_tlmm_pin_pupd_config_t;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jul 6, 6:04 AM (11 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34739023
Default Alt Text
D56351.id176637.diff (1 KB)
Attached To
Mode
D56351: qcom_tlmm: add i2c pull up strength config option
Attached
Detach File
Event Timeline
Log In to Comment