From: Kim Phillips Date: Wed, 28 Apr 2010 17:08:01 -0500 Subject: [U-Boot] [PATCH] mpc83xx: Add UPMA configuration to SIMPC8313 In-Reply-To: <1272476924-7695-1-git-send-email-ron_madrid@sbcglobal.net> References: <1272476924-7695-1-git-send-email-ron_madrid@sbcglobal.net> Message-ID: <20100428170801.ec8a5b3f.kim.phillips@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, 28 Apr 2010 10:48:44 -0700 Ron Madrid wrote: > + volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR; > + volatile fsl_lbus_t *lbus = &immap->lbus; > + volatile u32 *mxmr = &lbus->mamr; /* Pointer to mamr */ no volatiles... > + /* Set LUPWAIT to be active low and enabled */ > + *mxmr = 0x08000000 | MxMR_GPL_x4DIS; ...because we should now be using i/o accessors. Also, let's add a MxMR_UWPL in fsl_lbc.h please (can be in same patch). > +#define CONFIG_SYS_BR1_PRELIM ( 0xFF000000 /* FPGA Base Addr */ \ > + | BR_PS_16 \ > + | BR_MS_UPMA \ > + | BR_V ) > +#define CONFIG_SYS_OR1_PRELIM ( 0xFFE00000 /* length 2MB */ \ OR_AM_2MB (and therefore drop the comment). > + | OR_UPM_BCTLD) > + > +#define CONFIG_SYS_LBLAWBAR1_PRELIM 0xFF000000 /* FPGA Base Addr */ if FPGA base address becomes a recurring reference, best to name it something like CONFIG_SYS_FPGA_BASE. > +#define CONFIG_SYS_LBLAWAR1_PRELIM 0x80000014 /* 2MB */ (LBLAWAR_EN | LBLAWAR_2MB) Kim