summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-orion5x/ts78xx-fpga.h
diff options
context:
space:
mode:
authorRussell King2009-03-20 00:10:40 +0100
committerRussell King2009-03-20 00:10:40 +0100
commit7d83f8fca517b123cf0136503a9e50974f65ec49 (patch)
tree92ed1faaf112e98e29a00efc99e1a4e6c79e6a8e /arch/arm/mach-orion5x/ts78xx-fpga.h
parent[ARM] pass reboot command line to arch_reset() (diff)
parent[ARM] mv78xx0: Add Marvell RD-78x00-mASA Reference Design support (diff)
downloadkernel-qcow2-linux-7d83f8fca517b123cf0136503a9e50974f65ec49.tar.gz
kernel-qcow2-linux-7d83f8fca517b123cf0136503a9e50974f65ec49.tar.xz
kernel-qcow2-linux-7d83f8fca517b123cf0136503a9e50974f65ec49.zip
Merge branch 'master' of git://git.marvell.com/orion into devel
Conflicts: arch/arm/mach-mx1/devices.c
Diffstat (limited to 'arch/arm/mach-orion5x/ts78xx-fpga.h')
-rw-r--r--arch/arm/mach-orion5x/ts78xx-fpga.h29
1 files changed, 29 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 000000000000..0a314ddef658
--- /dev/null
+++ b/arch/arm/mach-orion5x/ts78xx-fpga.h
@@ -0,0 +1,29 @@
+#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_B2 = FPGAID(0x00b480, 0x02),
+ TS7800_REV_B3 = FPGAID(0x00b480, 0x03),
+};
+
+struct fpga_device {
+ unsigned present:1;
+ unsigned init:1;
+};
+
+struct fpga_devices {
+ /* Technologic Systems */
+ struct fpga_device ts_rtc;
+ struct fpga_device ts_nand;
+};
+
+struct ts78xx_fpga_data {
+ unsigned int id;
+ int state;
+
+ struct fpga_devices supports;
+};