📄 init_ddr.inc
字号:
;*================================================================================================;* Copyright (C) 2005, Freescale Semiconductor, Inc. All Rights Reserved;* THIS SOURCE CODE IS CONFIDENTIAL AND PROPRIETARY AND MAY NOT;* BE USED OR DISTRIBUTED WITHOUT THE WRITTEN PERMISSION OF;* Freescale Semiconductor, Inc.;*================================================================================================; Initialization script for i300-30 i.300-30 ADS board using Realview Debugger.;*================================================================================================; Revision History:; Modification Tracking; Author (core ID) Date D/M/Y Number Description of Changes; ------------------------- ------------ ---------- ----------------------------------------; Nicolas ROUX 02/06/2005 Creation of the file.;*================================================================================================wait = onsetreg @CP15_CONTROL=0x00050078; AHB clock divided by 6 - IPG clock divided by 6setmem /32 0x53F80004 =0x00800528; ESDCTL Reset/Initializesetmem /32 0xB8001010 =0x00000002pause 1; Initialize DDRAMsetmem /32 0xB800100C =0x00395728setmem /32 0xB8001010 =0x00000014pause 1 setmem /32 0xB8001008 =0x92116080setmem /16 0x90000400 =0x0000setmem /32 0xB8001008 =0xA2116080setmem /16 0x90000000 =0x0000setmem /16 0x90000000 =0x0000setmem /32 0xB8001008 =0xB2116080setmem /8 0x90000033 =0x00setmem /8 0x91000000 =0x00setmem /32 0xB8001008 =0x82116080setmem /16 0x90000000 =0x0000; Dummy DEADBEEF write into DDRAMsetmem /16 0x90000000 =0xDEADsetmem /16 0x90000002 =0xBEEF; Initialize NANDC; Select 16 bits NAND flash;setmem /32 0x53F8000C =0x00080000; Unlock blocks;setmem /16 0xB8000E0A =0x0002;setmem /16 0xB8000E14 =0x0000;setmem /16 0xB8000E16 =0x0FFF;setmem /16 0xB8000E12 =0x0004; Initialize WEIM for CS0 ; Asynchronous mode WEIM registers ; 16 bits, no wrapp does not match default configuration of i300_30setmem /32 0xB8002000 =0x23C29000 setmem /32 0xB8002004 =0x60000D01setmem /32 0xB8002008 =0x00000080; Initialize WEIM for CS0 (NOR FLASH on I300-30, Intel strata 64MBytes / 32 bits width by default) ; Asynchronous mode WEIM registers ; 32 bits, wrapp;setmem /32 0xB8002000 =0x20428F00;setmem /32 0xB8002004 =0x60000E03;setmem /32 0xB8002008 =0x00000080;*================================================================================================; Initialisation done !;*================================================================================================readfile,raw,gui "r:\tftp\i30030ads_redboot.bin"=0x91F00000setreg @CPSR_FLGE=0x00setreg @pc=0x91F00000
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -