|
@@ -153,6 +153,25 @@ extern int s3c_gpio_setpull(unsigned int pin, s3c_gpio_pull_t pull);
|
|
|
*/
|
|
|
extern s3c_gpio_pull_t s3c_gpio_getpull(unsigned int pin);
|
|
|
|
|
|
+/* configure `all` aspects of an gpio */
|
|
|
+
|
|
|
+/**
|
|
|
+ * s3c_gpio_cfgall_range() - configure range of gpio functtion and pull.
|
|
|
+ * @start: The gpio number to start at.
|
|
|
+ * @nr: The number of gpio to configure from @start.
|
|
|
+ * @cfg: The configuration to use
|
|
|
+ * @pull: The pull setting to use.
|
|
|
+ *
|
|
|
+ * Run s3c_gpio_cfgpin() and s3c_gpio_setpull() over the gpio range starting
|
|
|
+ * @gpio and running for @size.
|
|
|
+ *
|
|
|
+ * @sa s3c_gpio_cfgpin
|
|
|
+ * @sa s3c_gpio_setpull
|
|
|
+ * @sa s3c_gpio_cfgpin_range
|
|
|
+ */
|
|
|
+extern int s3c_gpio_cfgall_range(unsigned int start, unsigned int nr,
|
|
|
+ unsigned int cfg, s3c_gpio_pull_t pull);
|
|
|
+
|
|
|
/* Define values for the drvstr available for each gpio pin.
|
|
|
*
|
|
|
* These values control the value of the output signal driver strength,
|