[PATCH 3/9] lpc2k: clk API

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


> diff --git a/arch/arm/mach-lpc2k/include/mach/regs-clock.h
> b/arch/arm/mach-lpc2k/include/mach/regs-clock.h
> new file mode 100644
> index 0000000..1c94582
> --- /dev/null
> +++ b/arch/arm/mach-lpc2k/include/mach/regs-clock.h
> @@ -0,0 +1,36 @@
> +/*
> + * 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_REGS_CLOCK_H
> +#define MACH_LPC2K_REGS_CLOCK_H
> +
> +#define CLKSRCSEL	0x10c
> +#define CLKSRC(x)	((x) & 3)
> +#define PLLCON		0x080
> +#define PLLCFG		0x084
> +#define PLLSTAT		0x088
> +#define M(x)		(((x) & 0x7fff) + 1)
> +#define N(x)		((((x) >> 16) & 0xf) + 1)

N has a field size of 8 bits? Mask should be 0xff

> +#define PLLE		(1 << 24)




More information about the linux-arm-kernel mailing list