[BACK]Return to sapmcreg.h CVS log [TXT][DIR] Up to [local] / funnyos / arch / sam7s64 / dev

File: [local] / funnyos / arch / sam7s64 / dev / sapmcreg.h (download)

Revision 1.1, Tue Nov 13 15:18:31 2007 UTC (16 years, 6 months ago) by nbrk
Branch: MAIN
CVS Tags: HEAD

Power Management Controller registers;
we need it at this stage to initialize some critical devices in config_machineinit()

/*
 * $Id: sapmcreg.h,v 1.1 2007/11/13 15:18:31 nbrk Exp $
 */
#ifndef _ARCH_SAM7S64_DEV_SAPMCREG_H
#define _ARCH_SAM7S64_DEV_SAPMCREG_H

#include <sys/types.h>

/*
 * Power Management Controller base address and offsets.
 */

#define SAPMC_BASE 			0xfffffc00
#define  SAPMC_PMC_SCER 	0x0000
#define  SAPMC_PMC_SCDR 	0x0004
#define  SAPMC_PMC_SCSR 	0x0008
/* 0x000c reserved */
#define  SAPMC_PMC_PCER 	0x0010
#define  SAPMC_PMC_PCDR		0x0014
#define  SAPMC_PMC_PCSR 	0x0018
/* 0x001c reserved */
#define  SAPMC_CKGR_MOR 	0x0020
#define  SAPMC_CKGR_MCFR 	0x0024
/* 0x0028 reserved */
#define  SAPMC_CKGR_PLLR 	0x002c
#define  SAPMC_PMC_MCKR 	0x0030
/* 0x0038 reserved */
/* 0x003c reserved */
#define  SAPMC_PMC_PCK0 	0x0040
#define  SAPMC_PMC_PCK1 	0x0044
#define  SAPMC_PMC_IER 		0x0060
#define  SAPMC_PMC_IDR 		0x0064
#define  SAPMC_PMC_SR 		0x0068
#define  SAPMC_PMC_IMR 		0x006c

#endif /* not _ARCH_SAM7S64_DEV_SAPMCREG_H */