linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] ARM: OMAP2+: Add command line parameter for debugSS module control
@ 2013-03-04 11:35 hvaibhav
  2013-03-14 11:29 ` Hiremath, Vaibhav
  0 siblings, 1 reply; 4+ messages in thread
From: hvaibhav @ 2013-03-04 11:35 UTC (permalink / raw)
  To: linux-omap
  Cc: tony, khilman, paul, rnayak, linux-arm-kernel, Vaibhav Hiremath

From: Vaibhav Hiremath <hvaibhav@ti.com>

Currently there is no clean mechanism to control debugSS module and
you have to always keep clocks enabled, either,

    - By enabling it during boot as part of clk_init function
      (post common-clock migration).
    Or
    - By having HWMOD_INIT_NO_IDLE flag in hwmod data
      (Joel submitted patch for AM335x earlier).

Based on the discussion with Kevin H,
http://www.mail-archive.com/linux-omap@vger.kernel.org/msg81771.html

This patch introduces new kernel parameter "omap_debugss_en",
which will allow user to control debugSS module enable/disable
part during boot-time.

In case of OMAP3, the debugSS is part of EMU domain and
is currently controlled by clock tree alone.

In case of OMAP4, the debugSS is part of EMU domain and
is currently controlled by clock tree, as MODULEMODE_SWCTRL
is not defined for hwmod.

In case of AM335x, the debugSS is in wakeup domain and is currently
controlled through hwmod alone. Currently we keep it always enabled.

Testing:
	- Tested on AM335x based EVM and BeagleBone platform

	  As required, without this flag the debugSS module will be disabled
	  during kernel boot.

OMAP (2/3/4) may require some changes from clock/hwmod perspective
in order to use this new parameter.
I am still looking into OMAP spec and this RFC version of patch-series
is to get comments or opinion from list.

Vaibhav Hiremath (3):
  ARM: AM33XX: clock: Add debugSS clock nodes to clock tree
  ARM: AM33XX: hwmod: Add hwmod data for debugSS
  ARM: OMAP2+: Add command line parameter for debugSS module control

 Documentation/kernel-parameters.txt        |    3 +
 arch/arm/mach-omap2/Makefile               |    2 +-
 arch/arm/mach-omap2/cclock33xx_data.c      |   47 +++++++++++++++--
 arch/arm/mach-omap2/debugss.c              |   80 ++++++++++++++++++++++++++++
 arch/arm/mach-omap2/omap_hwmod_33xx_data.c |   69 ++++++++++++++++--------
 5 files changed, 173 insertions(+), 28 deletions(-)
 create mode 100644 arch/arm/mach-omap2/debugss.c


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

end of thread, other threads:[~2013-04-09  8:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-04 11:35 [RFC PATCH 0/3] ARM: OMAP2+: Add command line parameter for debugSS module control hvaibhav
2013-03-14 11:29 ` Hiremath, Vaibhav
2013-04-08 17:30   ` Tony Lindgren
2013-04-09  8:11     ` Hiremath, Vaibhav

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).