linux/arch/powerpc
Stephen Neuendorffer b786af117b [POWERPC] Refactor DCR code
Previously, DCR support was configured at compile time to either use
MMIO or native dcr instructions.  Although this works for most
platforms, it fails on FPGA platforms:

1) Systems may include more than one DCR bus.
2) Systems may be native DCR capable and still use memory mapped DCR interface.

This patch provides runtime support based on the device trees for the
case where CONFIG_PPC_DCR_MMIO and CONFIG_PPC_DCR_NATIVE are both
selected.  Previously, this was a poorly defined configuration, which
happened to provide NATIVE support.  The runtime selection is made
based on the dcr-controller having a 'dcr-access-method' attribute
in the device tree.  If only one of the above options is selected,
then the code uses #defines to select only the used code in order to
avoid introducing overhead in existing usage.

Signed-off-by: Stephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
2008-05-29 07:06:56 -05:00
..
boot Merge branch 'for-2.6.26' of master.kernel.org:/pub/scm/linux/kernel/git/galak/powerpc into merge 2008-05-20 19:46:37 +10:00
configs [POWERPC] Update defconfigs for desktop/server systems 2008-05-20 20:04:12 +10:00
kernel Merge branch 'merge' into powerpc-next 2008-05-23 16:53:23 +10:00
kvm KVM: ppc: deliver INTERRUPT_FP_UNAVAIL to the guest 2008-05-04 14:44:45 +03:00
lib [POWERPC] ppc: More compile fixes 2008-05-12 22:57:51 +10:00
math-emu
mm Merge branch 'merge' into powerpc-next 2008-05-23 16:53:23 +10:00
oprofile
platforms Merge branch 'merge' into powerpc-next 2008-05-23 16:53:23 +10:00
sysdev [POWERPC] Refactor DCR code 2008-05-29 07:06:56 -05:00
xmon [POWERPC] Make cpus_in_xmon static and remove extern mess from hvc_console.c 2008-05-14 22:31:57 +10:00
.gitignore
Kconfig
Kconfig.debug
Makefile