summaryrefslogtreecommitdiffstats
path: root/target/linux/ar7/files/include
diff options
context:
space:
mode:
authorejka <ejka@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-09-12 12:23:56 +0000
committerejka <ejka@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-09-12 12:23:56 +0000
commitfc58f2fd75ca18ab42813e6392c536c35c8e157f (patch)
tree14fea83bebf790612fc41f6bb01f005be1ffc2d5 /target/linux/ar7/files/include
parent769621dec9b67804269305515e936dee82b522f7 (diff)
vlynq cleanups:
* drivers can now set a clock divisor * irq handling cleanup, drivers now can handle error irqs themselves * style cleanup git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8759 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar7/files/include')
-rw-r--r--target/linux/ar7/files/include/asm-mips/ar7/vlynq.h24
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 34b940759..12865bebb 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;