1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-10-02 17:00:43 +03:00

Wrong bit shifting for the cfrdy function, will always return cf-mips busy

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9446 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2007-10-25 16:22:27 +00:00
parent 7b6e0a6a10
commit 56daf77aa7

View File

@ -69,7 +69,7 @@ static inline u8 rareg(unsigned reg, struct cf_mips_dev* dev)
static inline int cfrdy(struct cf_mips_dev *dev)
{
return (SW_READ_REG(GPIO_CONF0) & (1 << ADM5120_GPIO_PIN4));
return (SW_READ_REG(GPIO_CONF0) & (1 << 12));
}
static inline void prepare_cf_irq(struct cf_mips_dev *dev)