]> git.baikalelectronics.ru Git - kernel.git/commit
microblaze: Support systems without lmb bram
authorMichal Simek <monstr@monstr.eu>
Mon, 15 Mar 2010 07:48:27 +0000 (08:48 +0100)
committerMichal Simek <monstr@monstr.eu>
Thu, 1 Apr 2010 06:38:23 +0000 (08:38 +0200)
commita118e82fd23a4abf73ca1a29e0c9c40ff910a4d9
tree25fb85eb407389adf81419c045415882090bb1f1
parent788d0a42f9e970bdd9ec971ae2a6158861df807e
microblaze: Support systems without lmb bram

When the system has no lmb bram, main memory should be start from
zero because of microblaze vectors.

DTS fragment could look like:
DDR2_SDRAM: memory@0 {
device_type = "memory";
reg = < 0x0 0x10000000 >;
} ;

Then you have to setup CONFIG_KERNEL_BASE_ADDR=0 which caused
that kernel physical start address will be zero. On reset vector place
will be jump to 0x100 and on 0x100 starts kernel text.

You have to solve how to load the kernel before cpu starts.
Tested with XMD.

Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/kernel/head.S