diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-01-28 13:01:23 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-01-28 13:20:51 +0000 |
commit | bb6d9b56c1d5c1cbff39b7c337c900e2b3d8387a (patch) | |
tree | 7ceb92448f96f99f590f16a22b0e6cb66b9ff744 /include/asm-arm/arch-s3c2410 | |
parent | 9f613be4a9b6d680772b0a52a43a4a94d8e131b6 (diff) | |
download | kernel-crypto-bb6d9b56c1d5c1cbff39b7c337c900e2b3d8387a.tar.gz kernel-crypto-bb6d9b56c1d5c1cbff39b7c337c900e2b3d8387a.tar.xz kernel-crypto-bb6d9b56c1d5c1cbff39b7c337c900e2b3d8387a.zip |
[ARM] 4783/1: S3C24XX: Add s3c2410_gpio_getpull()
Add the call s3c2410_gpio_getpull() to return the
current state of the pin's pull-up.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/arch-s3c2410')
-rw-r--r-- | include/asm-arm/arch-s3c2410/hardware.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/asm-arm/arch-s3c2410/hardware.h b/include/asm-arm/arch-s3c2410/hardware.h index faeaba514ff..20509e4540f 100644 --- a/include/asm-arm/arch-s3c2410/hardware.h +++ b/include/asm-arm/arch-s3c2410/hardware.h @@ -87,6 +87,18 @@ extern int s3c2410_gpio_irqfilter(unsigned int pin, unsigned int on, extern void s3c2410_gpio_pullup(unsigned int pin, unsigned int to); +/* s3c2410_gpio_getpull + * + * Read the state of the pull-up on a given pin + * + * return: + * < 0 => error code + * 0 => enabled + * 1 => disabled +*/ + +extern int s3c2410_gpio_getpull(unsigned int pin); + extern void s3c2410_gpio_setpin(unsigned int pin, unsigned int to); extern unsigned int s3c2410_gpio_getpin(unsigned int pin); |