diff options
author | Eugene Konev <ejka@imfi.kspu.ru> | 2007-09-12 12:23:56 +0000 |
---|---|---|
committer | Eugene Konev <ejka@imfi.kspu.ru> | 2007-09-12 12:23:56 +0000 |
commit | db5e1437566072cca83e9f11e90c6779a0f0b03b (patch) | |
tree | 1c82f6f0bdff5f5ab31f3712e2a2e94fbe1788b0 /target/linux/ar7/files/include/asm-mips | |
parent | 09b45caf093366be331e166fb51f7626a3db5391 (diff) | |
download | master-31e0f0ae-db5e1437566072cca83e9f11e90c6779a0f0b03b.tar.gz master-31e0f0ae-db5e1437566072cca83e9f11e90c6779a0f0b03b.tar.bz2 master-31e0f0ae-db5e1437566072cca83e9f11e90c6779a0f0b03b.zip |
vlynq cleanups: * drivers can now set a clock divisor * irq handling cleanup, drivers now can handle error irqs themselves * style cleanup
SVN-Revision: 8759
Diffstat (limited to 'target/linux/ar7/files/include/asm-mips')
-rw-r--r-- | target/linux/ar7/files/include/asm-mips/ar7/vlynq.h | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/target/linux/ar7/files/include/asm-mips/ar7/vlynq.h b/target/linux/ar7/files/include/asm-mips/ar7/vlynq.h index 34b940759a..12865bebba 100644 --- a/target/linux/ar7/files/include/asm-mips/ar7/vlynq.h +++ b/target/linux/ar7/files/include/asm-mips/ar7/vlynq.h @@ -16,7 +16,6 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ - #ifndef __VLYNQ_H__ #define __VLYNQ_H__ @@ -29,13 +28,34 @@ struct vlynq_device_id { u32 id; }; +enum vlynq_divisor { + vlynq_div_auto = 0, + vlynq_ldiv1, + vlynq_ldiv2, + vlynq_ldiv3, + vlynq_ldiv4, + vlynq_ldiv5, + vlynq_ldiv6, + vlynq_ldiv7, + vlynq_ldiv8, + vlynq_rdiv1, + vlynq_rdiv2, + vlynq_rdiv3, + vlynq_rdiv4, + vlynq_rdiv5, + vlynq_rdiv6, + vlynq_rdiv7, + vlynq_rdiv8, + vlynq_div_external +}; + struct vlynq_regs; struct vlynq_device { u32 id; int irq; int local_irq; int remote_irq; - int clock_div; + enum vlynq_divisor divisor; u32 regs_start, regs_end; u32 mem_start, mem_end; u32 irq_start, irq_end; |