This source file includes following definitions.
- platform_fixups
- platform_init
1
2
3
4
5
6
7
8
9
10
11 #include "ops.h"
12 #include "stdio.h"
13 #include "cuboot.h"
14
15 #include "ppcboot.h"
16
17 static bd_t bd;
18
19 static void platform_fixups(void)
20 {
21 dt_fixup_memory(bd.bi_memstart, bd.bi_memsize);
22 dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 4, bd.bi_busfreq);
23 }
24
25 void platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
26 unsigned long r6, unsigned long r7)
27 {
28 CUBOOT_INIT();
29 fdt_init(_dtb_start);
30 serial_console_init();
31 platform_ops.fixups = platform_fixups;
32 }