sh: mach-sdk7786: Probe system FPGA area mapping.
commitd9116d07f60383cef134c43a0ba15ec4375310fc
authorPaul Mundt <lethal@linux-sh.org>
Wed, 20 Jan 2010 09:25:19 +0000 (20 18:25 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 20 Jan 2010 09:25:19 +0000 (20 18:25 +0900)
tree076c1698dcd4886b1f4e9c1311eb0cf8b68cdef9
parent920efaabcbd34e6b8dc05c5b777df3e936af5812
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>
arch/sh/boards/mach-sdk7786/fpga.c
arch/sh/include/cpu-sh4/cpu/addrspace.h
arch/sh/include/mach-sdk7786/mach/fpga.h