Tuesday, September 28, 2010

Bare Metal: PuppyBeagle low level initialization code header file [low_init.h]

#ifndef __BEAGLE_H__
#define __BEAGLE_H__

#define MMC_REG_BASE 0x4809C010
#define SDRC_REG_BASE 0x6D000010

#define RAMSZ_TYP_CLR 0xFFFC00FE
#define RAMSZ_TYP 0x00007801


typedef struct {
unsigned int SDRC_SYSCONFIG; //0x10
unsigned int SDRC_SYSSTATUS;//0x14
unsigned int rsvd1[10];//0x18,1c,20,24,28,2c,30,34,38,3c
unsigned int SDRC_CS_CFG;//40
unsigned int SDRC_SHARING;//44
unsigned int SDRC_ERR_ADDR;//48
unsigned int SDRC_ERR_TYPE;//4c
unsigned int rsvd2[4];//50,54,58,5c
unsigned int SDRC_DLLA_CTRL;//60
unsigned int SDRC_DLLA_STATUS;//64
unsigned int rsvd5[2];//68,6c
unsigned int SDRC_POWER_REG; //70
unsigned int rsvd3[3];//74,78,7c
unsigned int SDRC_MCFG_0;//80
unsigned int SDRC_MR_0;//84
unsigned int SDRC_EMR2_0;//8c
unsigned int rsvd4[3];//90,94,98
unsigned int SDRC_ACTIM_CTRLA_0;//9c
unsigned int SDRC_ACTIM_CTRLB_0;//a0
unsigned int SDRC_RFR_CTRL_0;//a4
unsigned int SDRC_MANUAL_0;//a8
} sdrc_reg;

#endif

No comments:

Post a Comment