1 // SPDX-License-Identifier: GPL-2.0-or-later 1 2 /* 3 * Motload compatibility for the Emerson/Artes 4 * 5 * Copyright 2016 Elettra-Sincrotrone Trieste 6 * 7 * Author: Alessio Igor Bogani <alessio.bogani 8 */ 9 10 #include "ops.h" 11 #include "stdio.h" 12 #include "cuboot.h" 13 14 #define TARGET_86xx 15 #define TARGET_HAS_ETH1 16 #define TARGET_HAS_ETH2 17 #define TARGET_HAS_ETH3 18 #include "ppcboot.h" 19 20 static bd_t bd; 21 22 BSS_STACK(16384); 23 24 static void mvme7100_fixups(void) 25 { 26 void *devp; 27 unsigned long busfreq = bd.bi_busfreq 28 29 dt_fixup_cpu_clocks(bd.bi_intfreq * 10 30 31 devp = finddevice("/soc@f1000000"); 32 if (devp) 33 setprop(devp, "bus-frequency", 34 35 devp = finddevice("/soc/serial@4500"); 36 if (devp) 37 setprop(devp, "clock-frequency 38 39 dt_fixup_memory(bd.bi_memstart, bd.bi_ 40 41 dt_fixup_mac_address_by_alias("etherne 42 dt_fixup_mac_address_by_alias("etherne 43 dt_fixup_mac_address_by_alias("etherne 44 dt_fixup_mac_address_by_alias("etherne 45 } 46 47 void platform_init(unsigned long r3, unsigned 48 unsigned long r6, unsigned 49 { 50 CUBOOT_INIT(); 51 fdt_init(_dtb_start); 52 serial_console_init(); 53 platform_ops.fixups = mvme7100_fixups; 54 } 55
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.