xref: /linux/arch/powerpc/boot/mvme5100.c (revision 75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37)
1*d2912cb1SThomas Gleixner // SPDX-License-Identifier: GPL-2.0-only
2be201981SStephen Chivers /*
3be201981SStephen Chivers  * Motorola/Emerson MVME5100 with PPCBug firmware.
4be201981SStephen Chivers  *
5be201981SStephen Chivers  * Author: Stephen Chivers <schivers@csc.com>
6be201981SStephen Chivers  *
7be201981SStephen Chivers  * Copyright 2013 CSC Australia Pty. Ltd.
8be201981SStephen Chivers  */
9be201981SStephen Chivers #include "types.h"
10be201981SStephen Chivers #include "ops.h"
11be201981SStephen Chivers #include "io.h"
12be201981SStephen Chivers 
13be201981SStephen Chivers BSS_STACK(4096);
14be201981SStephen Chivers 
platform_init(unsigned long r3,unsigned long r4,unsigned long r5)15be201981SStephen Chivers void platform_init(unsigned long r3, unsigned long r4, unsigned long r5)
16be201981SStephen Chivers {
17be201981SStephen Chivers 	u32			heapsize;
18be201981SStephen Chivers 
19be201981SStephen Chivers 	heapsize = 0x8000000 - (u32)_end; /* 128M */
20be201981SStephen Chivers 	simple_alloc_init(_end, heapsize, 32, 64);
21be201981SStephen Chivers 	fdt_init(_dtb_start);
22be201981SStephen Chivers 	serial_console_init();
23be201981SStephen Chivers }
24