xref: /linux/arch/powerpc/boot/holly.c (revision 75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37)
1*d2912cb1SThomas Gleixner // SPDX-License-Identifier: GPL-2.0-only
27487a224SJosh Boyer /*
37487a224SJosh Boyer  * Copyright 2007 IBM Corporation
47487a224SJosh Boyer  *
57487a224SJosh Boyer  * Stephen Winiecki <stevewin@us.ibm.com>
67487a224SJosh Boyer  * Josh Boyer <jwboyer@linux.vnet.ibm.com>
77487a224SJosh Boyer  *
87487a224SJosh Boyer  * Based on earlier code:
97487a224SJosh Boyer  * Copyright (C) Paul Mackerras 1997.
107487a224SJosh Boyer  */
117487a224SJosh Boyer #include <stdarg.h>
127487a224SJosh Boyer #include <stddef.h>
137487a224SJosh Boyer #include "types.h"
147487a224SJosh Boyer #include "elf.h"
157487a224SJosh Boyer #include "string.h"
167487a224SJosh Boyer #include "stdio.h"
177487a224SJosh Boyer #include "page.h"
187487a224SJosh Boyer #include "ops.h"
197487a224SJosh Boyer #include "io.h"
207487a224SJosh Boyer 
217487a224SJosh Boyer BSS_STACK(4096);
227487a224SJosh Boyer 
platform_init(unsigned long r3,unsigned long r4,unsigned long r5)237487a224SJosh Boyer void platform_init(unsigned long r3, unsigned long r4, unsigned long r5)
247487a224SJosh Boyer {
257487a224SJosh Boyer 	u32 heapsize = 0x8000000 - (u32)_end; /* 128M */
267487a224SJosh Boyer 
277487a224SJosh Boyer 	simple_alloc_init(_end, heapsize, 32, 64);
282f0dfeaaSDavid Gibson 	fdt_init(_dtb_start);
297487a224SJosh Boyer 	serial_console_init();
307487a224SJosh Boyer }
31