init.txt

来自「嵌入式系统」· 文本 代码 · 共 151 行

TXT
151
字号
com : ***********************************************************
com : System Configuration for LH79532 EVB
com : Uses SDRAM, no SRAM
com : Last Modified : 3 Dec 2002 
com : Pls initialise the system in the following sequence
com : ***********************************************************

com : ****************
com : Remap Memory
com : ****************
com : Set to default state first as a safety measure
smem 0xffff7808 0x00000000 32

com : ###################################
com : Default Configuration (Boot Sector)
com : ###################################
com : Supervisor & user has R/W access, No buffer & cacheable
com : Safety measure too
smem 0xffffac60 0x0000003c 32



com : ***********************************
com : Configure PIOC for SDRAM Operations
com : ***********************************
com : Set Function for PIO[49] - [52], [55], [56]
smem 0xffff4c50 0x00000000 32
smem 0xffff4c54 0x00000000 32



com : ***********************
com : Configure on-chip cache
com : ***********************
com : 4KB cache, but disabled. No SRAM
smem 0xffffac80 0x00000002 32



com : ****************
com : Configure EBI
com : ****************
com : ############################################
com : Set EBI Data Bus Driver to Hi-Z when in idle
com : ############################################
smem 0xffffa440 0x00000001 32


com : **************************
com : Configure SDRAM Controller
com : **************************
com : ################
com : For SDRAM 0
com : ################
com : Start Address = 0x0000 0000 (0x4000 0000), Size = 8MB (a) 16MB (b) 32MB (c)
smem 0xffffc000 0x8000000a 32
com : Data Bus = 16-bit, 4-Bank, RAW = 12; CAW = 8
smem 0xffffc004 0x00000012 32
com : ASB Bridge Write Buffer on
smem 0xffff782c 0x00000001 32


com : **************************
com : Configure SDRAM Parameters
com : **************************
com : Timming 0 Register
smem 0xffffc018 0x0000015c 32
com : Timming 1 Register
smem 0xffffc01c 0x04010201 32
com : Timming 2 Register
smem 0xffffc020 0x00010104 32
com : SDRAM Control Register
smem 0xffffc010 0x00000009 32






com : ****************
com : Configure MPU
com : ****************

smem 0xffffa404  0x80000007
smem 0xffffa424  0x87f75a

smem 0xffffa408  0x80000007
smem 0xffffa428  0x87f75a

smem 0xffffa40c  0x80000007
smem 0xffffa42c  0x87f75a



com : ######################
com : Segment X Flash Chip 0
com : ######################
com : Start Address from 0x80000000
smem 0xffffac00 0x80000000 32
com : Segment Size = 8MB(e) 4MB(d) 2MB(c) 1MB(b)
smem 0xffffac20 0x0000000b 32
com : Supervisor & user has R/W access, No buffer & cacheable
smem 0xffffac40 0x0000003c 32

com : ######################
com : Segment X Flash Chip 1
com : ######################
com : Start Address from 
com : smem 0xffffac08 0x80200000 32
com : Segment Size = 8MB(e) 4MB(d) 2MB(c) 1MB(b)
com : smem 0xffffac28 0x0000000c 32
com : Supervisor & user has R/W access, No buffer but cacheable
com : smem 0xffffac48 0x0000003c 32

com : ######################
com : Segment 0 SDRAM Chip 0
com : ######################
com : Start Address from 0x4000 0000
smem 0xffffac10 0x40000000 32
com : smem 0xffffac00 0x40000000 32
com : Segment Size = 32MB (10), 16MB (0f)
smem 0xffffac30 0x00000010 32
com : smem 0xffffac20 0x0000000e 32
com : Supervisor & user has R/W access, No buffer & cacheable
smem 0xffffac50 0x0000003c 32
com : smem 0xffffac40 0x0000003c 32

com : ######################
com : Segment 1 SDRAM Chip 1
com : ######################
com : Start Address from 0x4100 0000
com :smem 0xffffac14 0x42000000 32
com : smem 0xffffac04 0x41000000 32
com : Segment Size = 32MB
com :smem 0xffffac34 0x00000010 32
com : smem 0xffffac24 0x0000000f 32
com : Supervisor & user has R/W access, No buffer & cacheable
com :smem 0xffffac54 0x0000003c 32
com : smem 0xffffac44 0x0000003c 32


com : ****************
com : Remap Memory
com : ****************
com : Memory config setup now. Remap memory.
com : Set RPC_MAP = 1 ==>
com : SDRAM Mirror from 0x4000 0000 ~ 0x4fff ffff 
com : to 0x0000 0000 ~ 0x3fff ffff
com : EBI from 0x8000 0000 ~ 0xbfff ffff
smem 0xffff7808 0x00000001 32

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?