[PATCH 1/9] lpc2k: Core support

Kevin Wells kevin.wells at nxp.com
Thu Mar 17 18:08:04 EDT 2011


Hi Ithamar,

> diff --git a/arch/arm/mach-lpc2k/include/mach/system.h b/arch/arm/mach-
> lpc2k/include/mach/system.h
> new file mode 100644
> index 0000000..fbbea43
> --- /dev/null
> +++ b/arch/arm/mach-lpc2k/include/mach/system.h
> @@ -0,0 +1,23 @@
> +/*
> + * Copyright 2011 Team Embedded VOF
> + *     Ithamar R. Adema <ihamar.adema at team-embedded.nl>
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 as
> + * published by the Free Software Foundation.
> + */
> +
> +#ifndef MACH_LPC2K_SYSTEM_H
> +#define MACH_LPC2K_SYSTEM_H
> +
> +static void arch_idle(void)
> +{
> +	cpu_do_idle();
> +}

The 24xx devices have a CPU idle down register (PCON) that will suspend
the CPU clock until the next interrupt. *pcon = 1;

> +
> +static inline void arch_reset(char mode, const char *cmd)
> +{
> +	cpu_reset(0);
> +}

The entire system can be reset via RESETOUT using the watchdog timer.




More information about the linux-arm-kernel mailing list