Sdram Porting; Sdram Initialization In Sibl - Philips LPC3180 Application Note

Getting started linux with
Table of Contents

Advertisement

Philips Semiconductors
source file
that.
User can know their minor difference by comparing the current two files.
E.g. Add MTD partitions definitions in Linux driver
const static struct mtd_partition partition_info[] =
{
#define NUM_PARTITIONS
};

8. SDRAM porting

In the Phytec reference board, a Micron MT48H8M16LF 32Mbyte SDRAM is mounted.
Users may use different SDRAM with it. This section gives a guide on how to make the
necessary modification for new type SDRAM in SIBL and U-boot.

8.1 SDRAM initialization in SIBL

In the Linux staged boot process, SIBL does the SDRAM initialization before loading
images from NAND flash to SDRAM.
In the file
; ------------------------------------------------------------
; Sdram init
;
; ------------------------------------------------------------
The overall implementation of SDRAM initialization is in
including the functions of SDRAM controller control, mode control, memory control, bus
control, etc. All of the listed registers should be initialized properly according the specific
SDRAM device user manual:
<12NC>
Application note
./linux-2.6.10/drivers/mtd/nand/lpc3180_nand_phytec.c
1
{
.name
= "LPC3180 NAND PART 0",
.offset = 0x01000000,
.size
= 15*1024*1024
}
./sibl/sibl_startup.s
TMBT_SDRAM_SZ EQU 256
IMPORT
tmbtSdramInit
MOV
r0, #(((TMBT_AHB_FREQ/13)-1)*4)
MOV
r1, #(((TMBT_SDRAM_SZ/128)-1)*4)
BL
tmbtSdramInit
MPMCControl
MPMCConfig
MPMCAHBControl0
MPMCAHBControl2
MPMCAHBControl3
MPMCAHBControl4
MPMCDynamicConfig0
MPMCDynamicRasCas0
MPMCDynamicReadConfig
MPMCDynamictRP
MPMCDynamictRAS
MPMCDynamictSREX
MPMCDynamictWR
MPMCDynamictRC
MPMCDynamictRFC
MPMCDynamictXSR
MPMCDynamictRRD
MPMCDynamictMRD
MPMCDynamicCDLR
MPMCDynamicControl
MPMCDynamicControl
MPMCDynamicRefresh
Rev.03 — 21 Dec 2006
Getting started Linux with LPC3180
, SDRAM size and working frequency are defined:
; Mbit
AN10476
is quite similar with
./sibl/lpc3180_sdram.s
© Koninklijke Philips Electronics N.V. 2004. All rights reserved.
,
24 of 28

Advertisement

Table of Contents
loading

Table of Contents