/* * Memory Setup - initialize memory controller(s) for devices required * to boot and relocate * * See file CREDITS for list of people who contributed to this * project. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA */ #include #include /* memory controller */ #define BCRX_DEFAULT (0x0000fbe0) #define BCRX_MW_8 (0x00000000) #define BCRX_MW_16 (0x10000000) #define BCRX_MW_32 (0x20000000) #define BCRX_PME (0x08000000) #define BCRX_WP (0x04000000) #define BCRX_WST2_SHIFT (11) #define BCRX_WST1_SHIFT (5) #define BCRX_IDCY_SHIFT (0) /* Bank0 Async Flash */ #define BCR0 (0x80002000) #define BCR0_FLASH (BCRX_MW_32 | (0x08<