libpayload: arch/mips: Add basic MIPS architecture support

Hardware / Coreboot - Ionela Voinescu [imgtec.com] - 21 March 2015 05:07 EDT

Add the basic build infrastructure and architectural support required to build for targets using the MIPS architecture. This will require the addition of cache maintenance.

BUG=chrome-os-partner:31438 TEST=tested on Pistachio FPGA with Depthcharge as payload; successfully executed payload. BRANCH=none

Change-Id: I75cfd0536860b6d84b53a567940fe6668d9b2cbb

ce22c02 libpayload: arch/mips: Add basic MIPS architecture support
payloads/libpayload/Config.in | 12 ++
payloads/libpayload/Makefile | 2 +
payloads/libpayload/Makefile.inc | 1 +
payloads/libpayload/arch/Config.in | 3 +-
payloads/libpayload/arch/mips/Config.in | 29 +++
payloads/libpayload/arch/mips/Makefile.inc | 39 ++++
payloads/libpayload/arch/mips/cache.c | 76 ++++++++
payloads/libpayload/arch/mips/coreboot.c | 55 ++++++
payloads/libpayload/arch/mips/dummy_media.c | 41 ++++
payloads/libpayload/arch/mips/exception.c | 107 +++++++++++
payloads/libpayload/arch/mips/exception_asm.S | 208 +++++++++++++++++++++
payloads/libpayload/arch/mips/gdb.c | 32 ++++
payloads/libpayload/arch/mips/head.S | 110 +++++++++++
payloads/libpayload/arch/mips/libpayload.ldscript | 95 ++++++++++
payloads/libpayload/arch/mips/main.c | 62 ++++++
payloads/libpayload/arch/mips/selfboot.c | 36 ++++
payloads/libpayload/arch/mips/string.c | 72 +++++++
payloads/libpayload/arch/mips/sysinfo.c | 53 ++++++
payloads/libpayload/arch/mips/timer.c | 43 +++++
payloads/libpayload/arch/mips/util.S | 26 +++
payloads/libpayload/arch/mips/virtual.c | 27 +++
payloads/libpayload/bin/lpgcc | 6 +
payloads/libpayload/configs/config.arm64-generic | 5 +-
payloads/libpayload/configs/defconfig | 3 +-
payloads/libpayload/configs/defconfig-arm | 5 +-
payloads/libpayload/configs/defconfig-mips | 75 ++++++++
payloads/libpayload/drivers/Makefile.inc | 2 +
payloads/libpayload/drivers/timer/img_pistachio.c | 36 ++++
payloads/libpayload/include/mips/arch/byteorder.h | 43 +++++
payloads/libpayload/include/mips/arch/cache.h | 98 ++++++++++
payloads/libpayload/include/mips/arch/cpu.h | 85 +++++++++
payloads/libpayload/include/mips/arch/exception.h | 90 +++++++++
payloads/libpayload/include/mips/arch/io.h | 67 +++++++
payloads/libpayload/include/mips/arch/stdint.h | 95 ++++++++++
payloads/libpayload/include/mips/arch/types.h | 76 ++++++++
payloads/libpayload/include/mips/arch/virtual.h | 31 +++
payloads/libpayload/include/swab.h | 44 +++++
payloads/libpayload/util/xcompile/xcompile | 28 ++-
38 files changed, 1906 insertions(+), 12 deletions(-)

Upstream: review.coreboot.org


  • Share