diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-arm/arch-pxa/lubbock.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'include/asm-arm/arch-pxa/lubbock.h')
-rw-r--r-- | include/asm-arm/arch-pxa/lubbock.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/include/asm-arm/arch-pxa/lubbock.h b/include/asm-arm/arch-pxa/lubbock.h new file mode 100644 index 000000000000..11ee73593fc3 --- /dev/null +++ b/include/asm-arm/arch-pxa/lubbock.h | |||
@@ -0,0 +1,40 @@ | |||
1 | /* | ||
2 | * linux/include/asm-arm/arch-pxa/lubbock.h | ||
3 | * | ||
4 | * Author: Nicolas Pitre | ||
5 | * Created: Jun 15, 2001 | ||
6 | * Copyright: MontaVista Software Inc. | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #define LUBBOCK_ETH_PHYS PXA_CS3_PHYS | ||
14 | |||
15 | #define LUBBOCK_FPGA_PHYS PXA_CS2_PHYS | ||
16 | #define LUBBOCK_FPGA_VIRT (0xf0000000) | ||
17 | #define LUB_P2V(x) ((x) - LUBBOCK_FPGA_PHYS + LUBBOCK_FPGA_VIRT) | ||
18 | #define LUB_V2P(x) ((x) - LUBBOCK_FPGA_VIRT + LUBBOCK_FPGA_PHYS) | ||
19 | |||
20 | #ifndef __ASSEMBLY__ | ||
21 | # define __LUB_REG(x) (*((volatile unsigned long *)LUB_P2V(x))) | ||
22 | #else | ||
23 | # define __LUB_REG(x) LUB_P2V(x) | ||
24 | #endif | ||
25 | |||
26 | /* FPGA register virtual addresses */ | ||
27 | #define LUB_WHOAMI __LUB_REG(LUBBOCK_FPGA_PHYS + 0x000) | ||
28 | #define LUB_HEXLED __LUB_REG(LUBBOCK_FPGA_PHYS + 0x010) | ||
29 | #define LUB_DISC_BLNK_LED __LUB_REG(LUBBOCK_FPGA_PHYS + 0x040) | ||
30 | #define LUB_CONF_SWITCHES __LUB_REG(LUBBOCK_FPGA_PHYS + 0x050) | ||
31 | #define LUB_USER_SWITCHES __LUB_REG(LUBBOCK_FPGA_PHYS + 0x060) | ||
32 | #define LUB_MISC_WR __LUB_REG(LUBBOCK_FPGA_PHYS + 0x080) | ||
33 | #define LUB_MISC_RD __LUB_REG(LUBBOCK_FPGA_PHYS + 0x090) | ||
34 | #define LUB_IRQ_MASK_EN __LUB_REG(LUBBOCK_FPGA_PHYS + 0x0c0) | ||
35 | #define LUB_IRQ_SET_CLR __LUB_REG(LUBBOCK_FPGA_PHYS + 0x0d0) | ||
36 | #define LUB_GP __LUB_REG(LUBBOCK_FPGA_PHYS + 0x100) | ||
37 | |||
38 | #ifndef __ASSEMBLY__ | ||
39 | extern void lubbock_set_misc_wr(unsigned int mask, unsigned int set); | ||
40 | #endif | ||