1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

GPIO code updates, make the cf-mips driver compile against this gpio version

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10768 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian
2008-04-07 21:49:05 +00:00
parent c874812690
commit c26ad84f74
4 changed files with 103 additions and 163 deletions

View File

@@ -23,6 +23,7 @@
#include <asm/uaccess.h>
#include <asm/io.h>
#include <asm/gpio.h>
#include <asm/rc32434/rb.h>
@@ -242,7 +243,7 @@ static int cf_open(struct inode *inode, struct file *filp)
/* dirty workaround to set CFRDY GPIO as an input when some other
program sets it as an output */
gpio_set(CFG, (1 << dev->pin), 0);
gpio_set_value(dev->pin, 0);
return 0; /* success */
}