summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/baytrail/include/soc/gpio.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/soc/intel/baytrail/include/soc/gpio.h b/src/soc/intel/baytrail/include/soc/gpio.h
index 3757eb012c..9c6b7fd025 100644
--- a/src/soc/intel/baytrail/include/soc/gpio.h
+++ b/src/soc/intel/baytrail/include/soc/gpio.h
@@ -454,4 +454,11 @@ static inline void ssus_disable_internal_pull(int pad)
write32(ssus_pconf0(pad), read32(ssus_pconf0(pad)) & pull_mask);
}
+static inline void ssus_enable_internal_pull(int pad, int mask)
+{
+ const int pull_mask = ~(0xf << 7);
+ write32(ssus_pconf0(pad),
+ (read32(ssus_pconf0(pad)) & pull_mask) | mask);
+}
+
#endif /* _BAYTRAIL_GPIO_H_ */