David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | // SPDX-License-Identifier: GPL-2.0-only |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Motorola/Emerson MVME5100 with PPCBug firmware. |
| 4 | * |
| 5 | * Author: Stephen Chivers <schivers@csc.com> |
| 6 | * |
| 7 | * Copyright 2013 CSC Australia Pty. Ltd. |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 8 | */ |
| 9 | #include "types.h" |
| 10 | #include "ops.h" |
| 11 | #include "io.h" |
| 12 | |
| 13 | BSS_STACK(4096); |
| 14 | |
| 15 | void platform_init(unsigned long r3, unsigned long r4, unsigned long r5) |
| 16 | { |
| 17 | u32 heapsize; |
| 18 | |
| 19 | heapsize = 0x8000000 - (u32)_end; /* 128M */ |
| 20 | simple_alloc_init(_end, heapsize, 32, 64); |
| 21 | fdt_init(_dtb_start); |
| 22 | serial_console_init(); |
| 23 | } |