Skip to content
Snippets Groups Projects
Commit 843a76b6 authored by Gabor Juhos's avatar Gabor Juhos Committed by Tom Rini
Browse files

MIPS: start.S: emulate REVISION register for qemu-malta


On the origial Malta boards the REVISION register is
accessible at the 0x1fc00010 address. The contents of
this register gives information about the revision
of the Malta and Core Boards.

This register is used by the Linux kernel to identify
the actual board it is running on. However the register
is not emulated properly by Qemu, so put a hardcoded
value into the flash to make Linux work.

Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
parent a79b5e68
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,7 @@ _start: ...@@ -41,7 +41,7 @@ _start:
nop nop
.org 0x10 .org 0x10
#ifdef CONFIG_SYS_XWAY_EBU_BOOTCFG #if defined(CONFIG_SYS_XWAY_EBU_BOOTCFG)
/* /*
* Almost all Lantiq XWAY SoC devices have an external bus unit (EBU) to * Almost all Lantiq XWAY SoC devices have an external bus unit (EBU) to
* access external NOR flashes. If the board boots from NOR flash the * access external NOR flashes. If the board boots from NOR flash the
...@@ -51,6 +51,12 @@ _start: ...@@ -51,6 +51,12 @@ _start:
*/ */
.word CONFIG_SYS_XWAY_EBU_BOOTCFG .word CONFIG_SYS_XWAY_EBU_BOOTCFG
.word 0x0 .word 0x0
#elif defined(CONFIG_QEMU_MALTA)
/*
* Linux expects the Board ID here.
*/
.word 0x00000420 # 0x420 (Malta Board with CoreLV)
.word 0x00000000
#endif #endif
.org 0x200 .org 0x200
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment