Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] ARM: Enable dynamic clock gating?
@ 2014-07-31 14:24 Sören Brinkmann
  2014-07-31 15:15 ` Will Deacon
  0 siblings, 1 reply; 3+ messages in thread
From: Sören Brinkmann @ 2014-07-31 14:24 UTC (permalink / raw)
  To: linux-arm-kernel

Hi all,

similar to the patch enabling the SCU standby mode
(https://lkml.org/lkml/2014/7/30/122), I have a patch to enable the A9's
'dynamic clock gating'
(http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0388f/CIHBGEHE.html)
in platform code. This might also be a candidate to enable in common
code.
Do you think that would make sense?
I tried to find the right place to add this and was looking at
mm/proc-v7.S. It probably works to put it there, but does not really
seem to be the right place.

As reference, this is what I currently have as part of platform code:
  /* A9 clock gating */
  asm volatile ("mrc  p15, 0, r12, c15, c0, 0\n"
                "orr  r12, r12, #1\n"
                "mcr  p15, 0, r12, c15, c0, 0\n"
                : /* no outputs */
                : /* no inputs */
                : "r12");

	Thanks,
	S?ren

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-07-31 15:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-31 14:24 [RFC] ARM: Enable dynamic clock gating? Sören Brinkmann
2014-07-31 15:15 ` Will Deacon
2014-07-31 15:17   ` Sören Brinkmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox