[PATCH 04/12] mpc5121: Added reset module registers representation.

Scott Wood scottwood at freescale.com
Thu May 7 06:29:47 EST 2009


Wolfgang Denk wrote:
> From: Piotr Ziecik <kosmo at semihalf.com>
> 
> Signed-off-by: Piotr Ziecik <kosmo at semihalf.com>
> Signed-off-by: Wolfgang Denk <wd at denx.de>
> Cc: Grant Likely <grant.likely at secretlab.ca>
> Cc: John Rigby <jcrigby at gmail.com>
> ---
>  arch/powerpc/include/asm/mpc512x.h |   13 +++++++++++++
>  1 files changed, 13 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/powerpc/include/asm/mpc512x.h b/arch/powerpc/include/asm/mpc512x.h
> index c48a165..ea50d8d 100644
> --- a/arch/powerpc/include/asm/mpc512x.h
> +++ b/arch/powerpc/include/asm/mpc512x.h
> @@ -16,6 +16,19 @@
>  #ifndef __ASM_POWERPC_MPC512x_H__
>  #define __ASM_POWERPC_MPC512x_H__
>  
> +/* MPC512x Reset module registers */
> +struct mpc512x_reset_module {
> +	u32	rcwlr;	/* Reset Configuration Word Low Register */
> +	u32	rcwhr;	/* Reset Configuration Word High Register */
> +	u32	reserved1;
> +	u32	reserved2;
> +	u32	rsr;	/* Reset Status Register */
> +	u32	rmr;	/* Reset Mode Register */
> +	u32	rpr;	/* Reset Protection Register */
> +	u32	rcr;	/* Reset Control Register */
> +	u32	rcer;	/* Reset Control Enable Register */
> +} __attribute__ ((__packed__));
> +

83xx has the same registers; we should define it in a non-512x-specific 
header.

-Scott



More information about the Linuxppc-dev mailing list