]> git.baikalelectronics.ru Git - kernel.git/commit
OMAP3: control/PRCM: add omap3_ctrl_write_boot_mode()
authorPaul Walmsley <paul@pwsan.com>
Wed, 22 Dec 2010 03:01:21 +0000 (20:01 -0700)
committerPaul Walmsley <paul@pwsan.com>
Wed, 22 Dec 2010 03:01:21 +0000 (20:01 -0700)
commit6a2b424448f9a562c11aad3755159c21e24faeb1
treef7bda5c2c53d7c3ab253db9ddcb49c147afaaf42
parent13b99ba4cf5c8546c9f6ba5f5de1189c0d0f9d17
OMAP3: control/PRCM: add omap3_ctrl_write_boot_mode()

Get rid of the open-coded scratchpad write in mach-omap2/prcm.c and
replace it with an actual API, omap3_ctrl_write_boot_mode().  While
there, get rid of the gratuitous omap_writel().

There's not much documentation available for what should wind up in
the scratchpad here, so more documentation would be appreciated.
Also, at some point, we should formalize our treatment of the scratchpad;
right now, accesses to the scratchpad are not well-documented.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Reviewed-by: Kevin Hilman <khilman@deeprootsystems.com>
Tested-by: Kevin Hilman <khilman@deeprootsystems.com>
Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
arch/arm/mach-omap2/control.c
arch/arm/mach-omap2/control.h
arch/arm/mach-omap2/prcm.c