diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2012-12-12 23:24:47 +0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-12-14 08:34:33 +0100 |
commit | eaa76cc34dba5680597f3841aa47bc33e4c87157 (patch) | |
tree | dc1dba6ef097e38be7692313dfdf124f45da7c23 /arch | |
parent | f369f64ed1b29451c82c69c698da60ed8a8eb28f (diff) | |
download | barebox-eaa76cc34dba5680597f3841aa47bc33e4c87157.tar.gz barebox-eaa76cc34dba5680597f3841aa47bc33e4c87157.tar.xz |
MIPS: qemu-malta: add trivial pbl support
Trivial pbl support has no cpu specific setup.
We will add cache setup routines in the future.
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/boards/qemu-malta/include/board/board_pbl_start.h | 34 | ||||
-rw-r--r-- | arch/mips/mach-malta/Kconfig | 2 |
2 files changed, 36 insertions, 0 deletions
diff --git a/arch/mips/boards/qemu-malta/include/board/board_pbl_start.h b/arch/mips/boards/qemu-malta/include/board/board_pbl_start.h new file mode 100644 index 0000000000..5b067706cc --- /dev/null +++ b/arch/mips/boards/qemu-malta/include/board/board_pbl_start.h @@ -0,0 +1,34 @@ +/* + * Startup Code for MIPS CPU + * + * Copyright (C) 2012 Antony Pavlov <antonynpavlov@gmail.com> + * + * This file is part of barebox. + * See file CREDITS for list of people who contributed to this project. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + */ + +#include <asm/pbl_macros.h> + + .macro board_pbl_start + .set push + .set noreorder + + mips_disable_interrupts + + /* cpu specific setup ... */ + /* ... absent */ + + copy_to_link_location pbl_start + + .set pop + .endm diff --git a/arch/mips/mach-malta/Kconfig b/arch/mips/mach-malta/Kconfig index 8e0666ce9a..1d291dc72e 100644 --- a/arch/mips/mach-malta/Kconfig +++ b/arch/mips/mach-malta/Kconfig @@ -9,6 +9,8 @@ choice config BOARD_QEMU_MALTA bool "qemu malta" + select HAVE_PBL_IMAGE + select HAVE_IMAGE_COMPRESSION endchoice |