Commit e48f7eb27f0e38e1a461fa4e43025d18100d250b

Authored by Dmitry Eremin-Solenikov
Committed by Benjamin Herrenschmidt
1 parent 3d41e0f6d9

powerpc/maple: Enable scom access functions on Maple

Enable functions used to access SCOM if PPC_MAPLE is defined: they are
used by cpufreq driver to control hardware.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

arch/powerpc/kernel/misc_64.S
... ... @@ -339,7 +339,7 @@
339 339 #endif /* CONFIG_PPC_PASEMI */
340 340  
341 341  
342   -#ifdef CONFIG_CPU_FREQ_PMAC64
  342 +#if defined(CONFIG_CPU_FREQ_PMAC64) || defined(CONFIG_CPU_FREQ_MAPLE)
343 343 /*
344 344 * SCOM access functions for 970 (FX only for now)
345 345 *
... ... @@ -408,7 +408,7 @@
408 408 /* restore interrupts */
409 409 mtmsrd r5,1
410 410 blr
411   -#endif /* CONFIG_CPU_FREQ_PMAC64 */
  411 +#endif /* CONFIG_CPU_FREQ_PMAC64 || CONFIG_CPU_FREQ_MAPLE */
412 412  
413 413  
414 414 /*