diff options
author | Florian Fainelli <florian@openwrt.org> | 2007-10-25 16:22:27 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2007-10-25 16:22:27 +0000 |
commit | fae75b2f4d6e590278188753b630f9fd5f5d2a2a (patch) | |
tree | a7ed1461f578d16fa0315dea76279bdf39d1ab3a /target/linux/adm5120 | |
parent | ee65a023201a25e8a93ef172f674b50ce40e55ce (diff) | |
download | mtk-20170518-fae75b2f4d6e590278188753b630f9fd5f5d2a2a.zip mtk-20170518-fae75b2f4d6e590278188753b630f9fd5f5d2a2a.tar.gz mtk-20170518-fae75b2f4d6e590278188753b630f9fd5f5d2a2a.tar.bz2 |
Wrong bit shifting for the cfrdy function, will always return cf-mips busy
SVN-Revision: 9446
Diffstat (limited to 'target/linux/adm5120')
-rw-r--r-- | target/linux/adm5120/files/drivers/block/rb1xx/ata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/adm5120/files/drivers/block/rb1xx/ata.c b/target/linux/adm5120/files/drivers/block/rb1xx/ata.c index c73d219..55df75e 100644 --- a/target/linux/adm5120/files/drivers/block/rb1xx/ata.c +++ b/target/linux/adm5120/files/drivers/block/rb1xx/ata.c @@ -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) |