diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-01-20 18:25:19 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-01-20 18:25:19 +0900 |
commit | d9116d07f60383cef134c43a0ba15ec4375310fc (patch) | |
tree | 076c1698dcd4886b1f4e9c1311eb0cf8b68cdef9 /arch/sh/include/mach-sdk7786 | |
parent | 920efaabcbd34e6b8dc05c5b777df3e936af5812 (diff) |
sh: mach-sdk7786: Probe system FPGA area mapping.
This implements dynamic probing for the system FPGA. The system reset
controller contains a fixed magic read word in order to identify the
FPGA. This just utilizes a simple loop that scans across all of the fixed
physical areas (area 0 through area 6) to locate the FPGA.
The FPGA also contains register information detailing the area mappings
and chip select settings for all of the other blocks, so this needs to be
done before we can set up anything else.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/mach-sdk7786')
-rw-r--r-- | arch/sh/include/mach-sdk7786/mach/fpga.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sh/include/mach-sdk7786/mach/fpga.h b/arch/sh/include/mach-sdk7786/mach/fpga.h index a85d9853d34f..2120d67dec70 100644 --- a/arch/sh/include/mach-sdk7786/mach/fpga.h +++ b/arch/sh/include/mach-sdk7786/mach/fpga.h @@ -6,6 +6,8 @@ #include <linux/bitops.h> #define SRSTR 0x000 +#define SRSTR_MAGIC 0x1971 /* Fixed magical read value */ + #define INTASR 0x010 #define INTAMR 0x020 #define MODSWR 0x030 |