S5PV210 GPIO配置

1.  int s3c_gpio_cfgpin(unsigned int pin, unsigned int to);

 * s3c_gpio_cfgpin() - Change the GPIO function of a pin.
 * @pin The pin number to configure.
 * @to The configuration for the pin's function.to is S3C_GPIO_INPUT, S3C_GPIO_OUTPUT OR  S3C_GPIO_SFN()

2.unsigned s3c_gpio_getcfg(unsigned int pin);

*s3c_gpio_getcfg - Read the current function for a GPIO pin
* @pin: The pin to read the configuration value for.

3.int s3c_gpio_setpull(unsigned int pin, s3c_gpio_pull_t pull);

*s3c_gpio_setpull() - set the state of a gpio pin pull resistor
* @pin: The pin number to configure the pull resistor.
* @pull: The configuration for the pull resistor.

 * This function sets the state of the pull-{up,down} resistor for the specified pin. It will return 0 if successfull, or a negative error  code if the pin cannot support the requested pull setting.

4.s3c_gpio_pull_t s3c_gpio_getpull(unsigned int pin);

*s3c_gpio_getpull() - get the pull resistor state of a gpio pin
* @pin: The pin number to get the settings for

5. s5p_gpio_get_drvstr(unsigned int pin);

* s5c_gpio_get_drvstr() - get the driver streght value of a gpio pin
* @pin: The pin number to get the settings for
* Read the driver streght value for the specified pin.

6.int s5p_gpio_set_drvstr(unsigned int pin, s5p_gpio_drvstr_t drvstr);

 * s3c_gpio_set_drvstr() - set the driver streght value of a gpio pin
 * @pin: The pin number to configure the driver streght value
 * @drvstr: The new value of the driver strength
 * This function sets the driver strength value for the specified pin. It will return 0 if successfull, or a negative error code if the pin cannot support the requested setting.

你可能感兴趣的:(linux)