summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-orion5x/ts78xx-fpga.h
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2009-02-19 22:16:36 -0500
committerNicolas Pitre <nico@cam.org>2009-02-19 22:21:57 -0500
commit22fc1db12515e1b528570c547fd27e38df792f1f (patch)
tree9c7308bbac04abbd55f1000b2122bf7f94a9eedd /arch/arm/mach-orion5x/ts78xx-fpga.h
parent402a917aca5daca69fcc91f43e6f1e6939cf393b (diff)
parent39008f959f4f3b60eecc5cec0ca077146c1f366b (diff)
downloadop-kernel-dev-22fc1db12515e1b528570c547fd27e38df792f1f.zip
op-kernel-dev-22fc1db12515e1b528570c547fd27e38df792f1f.tar.gz
Merge branch 'for-np' of git://git.wormnet.eu/alex/ts78xx into orion/master
Diffstat (limited to 'arch/arm/mach-orion5x/ts78xx-fpga.h')
-rw-r--r--arch/arm/mach-orion5x/ts78xx-fpga.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/mach-orion5x/ts78xx-fpga.h b/arch/arm/mach-orion5x/ts78xx-fpga.h
new file mode 100644
index 0000000..0b8e30f
--- /dev/null
+++ b/arch/arm/mach-orion5x/ts78xx-fpga.h
@@ -0,0 +1,27 @@
+#define FPGAID(_magic, _rev) ((_magic << 8) + _rev)
+
+/*
+ * get yer id's from http://ts78xx.digriz.org.uk/
+ * do *not* make up your own or 'borrow' any!
+ */
+enum fpga_ids {
+ /* Technologic Systems */
+ TS7800_REV_B = FPGAID(0x00b480, 0x03),
+};
+
+struct fpga_device {
+ unsigned present:1;
+ unsigned init:1;
+};
+
+struct fpga_devices {
+ /* Technologic Systems */
+ struct fpga_device ts_rtc;
+};
+
+struct ts78xx_fpga_data {
+ unsigned int id;
+ int state;
+
+ struct fpga_devices supports;
+};
OpenPOWER on IntegriCloud