android_kernel_xiaomi_sm8350/arch/powerpc/platforms/ps3
Geoff Levand bafdb64577 [POWERPC] PS3: Bootwrapper support.
Add support to build the PS3 flash rom image and remove some unneeded
lmb calls.

The PS3's lv1 loader supports loading gzipped binary images from flash
rom to addr zero. The loader enters the image at addr 0x100.

In this implementation a bootwrapper overlay is use to arrange for the
kernel to be loaded to addr zero and to have a suitable bootwrapper
entry at 0x100.  To construct the rom image, 0x100 bytes from offset
0x100 in the kernel is copied to the bootwrapper symbol
__system_reset_kernel.  The 0x100 bytes at the bootwrapper symbol
__system_reset_overlay is then copied to offset 0x100.  At runtime the
bootwrapper program copies the 0x100 bytes at __system_reset_kernel to
addr 0x100.

zImage.ps3 is a wrapped image that contains a flat device tree, an lv1
compatible entry point, and an optional initrd.  otheros.bld is the gzip
compresed rom image built from zImage.ps3.  otheros.bld is suitable for
programming into the PS3 boot flash memory.

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-07-10 21:56:40 +10:00
..
device-init.c [POWERPC] PS3: Storage device registration routines 2007-06-28 19:19:21 +10:00
exports.c
htab.c [POWERPC] PS3: Kexec support 2007-06-28 19:16:37 +10:00
hvcall.S
interrupt.c [POWERPC] PS3: Use clear_bit 2007-06-28 19:16:45 +10:00
Kconfig [POWERPC] PS3: Storage Driver Core 2007-06-28 19:19:20 +10:00
Makefile [POWERPC] PS3: Device registration routines. 2007-06-28 19:16:43 +10:00
mm.c [POWERPC] PS3: Bootwrapper support. 2007-07-10 21:56:40 +10:00
os-area.c [POWERPC] PS3: Fix sparse warnings 2007-06-28 19:16:35 +10:00
platform.h [POWERPC] PS3: Repository probe cleanups 2007-06-28 19:16:39 +10:00
repository.c [POWERPC] PS3: Repository probe cleanups 2007-06-28 19:16:39 +10:00
setup.c [POWERPC] PS3: Preallocate bootmem memory for the PS3 FLASH ROM storage driver 2007-06-28 19:18:08 +10:00
smp.c [POWERPC] PS3: Kexec support 2007-06-28 19:16:37 +10:00
spu.c [POWERPC] PS3: Map SPU regions as non-guarded 2007-06-28 19:16:34 +10:00
system-bus.c [POWERPC] PS3: System-bus modinfo attribute 2007-06-28 19:16:39 +10:00
time.c [POWERPC] PS3: Use __maybe_unused 2007-06-28 19:16:33 +10:00