[PATCH 08/17] ARM: S5PC1XX: add cpu idle and system reset support
Harald Welte
laforge at gnumonks.org
Thu Nov 5 22:26:44 EST 2009
On Tue, Oct 13, 2009 at 10:11:13AM +0200, Marek Szyprowski wrote:
> Add CPU idle support by a call to SoC build-in power management core.
> Add system reset support by a simple write to system controll register.
looks great, and is definitely an improvement.
However, one small comment:
> static void arch_reset(char mode, const char *cmd)
> {
> - /* nothing here yet */
> -}
> + unsigned long reset;
>
> + reset = 0xc100;
> + __raw_writel(reset, S5PC1XX_VA_CLK_OTHER);
> + return;
> +}
why do we first define an unsigned long reset and then set it to some magic
value? why not simply make this one line like
__raw_writel(0xc100, S5PC1XX_VA_CLK_OTHER);
also, it might be a good idea to use some #define values rather than the 0xc100
magic value.
--
- Harald Welte <laforge at gnumonks.org> http://laforge.gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
(ETSI EN 300 175-7 Ch. A6)
More information about the linux-arm-kernel
mailing list