aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/Kconfig
diff options
context:
space:
mode:
authorDave Kleikamp <shaggy@linux.vnet.ibm.com>2010-02-08 06:50:57 -0500
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2010-02-16 22:03:16 -0500
commit172ae2e7f8ff9053905a36672453a6d2ff95b182 (patch)
tree2469b6923a4d7756930ac9c83e8b8fc9bfcdcbe0 /arch/powerpc/Kconfig
parent789c299ca280f96368c0296b739e89c0bb232f8a (diff)
powerpc/booke: Introduce new CONFIG options for advanced debug registers
powerpc/booke: Introduce new CONFIG options for advanced debug registers From: Dave Kleikamp <shaggy@linux.vnet.ibm.com> Introduce new config options to simplify the ifdefs pertaining to the advanced debug registers for booke and 40x processors: CONFIG_PPC_ADV_DEBUG_REGS - boolean: true for dac-based processors CONFIG_PPC_ADV_DEBUG_IACS - number of IAC registers CONFIG_PPC_ADV_DEBUG_DACS - number of DAC registers CONFIG_PPC_ADV_DEBUG_DVCS - number of DVC registers CONFIG_PPC_ADV_DEBUG_DAC_RANGE - DAC ranges supported Beginning conservatively, since I only have the facilities to test 440 hardware. I believe all 40x and booke platforms support at least 2 IAC and 2 DAC registers. For 440, 4 IAC and 2 DVC registers are enabled, as well as the DAC ranges. Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com> Acked-by: David Gibson <dwg@au1.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/Kconfig')
-rw-r--r--arch/powerpc/Kconfig27
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index bf15e7b4cd3d..654bba5cf6b4 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -240,6 +240,33 @@ config PPC_OF_PLATFORM_PCI
240config ARCH_SUPPORTS_DEBUG_PAGEALLOC 240config ARCH_SUPPORTS_DEBUG_PAGEALLOC
241 def_bool y 241 def_bool y
242 242
243config PPC_ADV_DEBUG_REGS
244 bool
245 depends on 40x || BOOKE
246 default y
247
248config PPC_ADV_DEBUG_IACS
249 int
250 depends on PPC_ADV_DEBUG_REGS
251 default 4 if 44x
252 default 2
253
254config PPC_ADV_DEBUG_DACS
255 int
256 depends on PPC_ADV_DEBUG_REGS
257 default 2
258
259config PPC_ADV_DEBUG_DVCS
260 int
261 depends on PPC_ADV_DEBUG_REGS
262 default 2 if 44x
263 default 0
264
265config PPC_ADV_DEBUG_DAC_RANGE
266 bool
267 depends on PPC_ADV_DEBUG_REGS && 44x
268 default y
269
243source "init/Kconfig" 270source "init/Kconfig"
244 271
245source "kernel/Kconfig.freezer" 272source "kernel/Kconfig.freezer"