Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) // SPDX-License-Identifier: GPL-2.0-only
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * Copyright (c) 2008 PIKA Technologies
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *   Sean MacLennan <smaclennan@pikatech.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) #include "ops.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #include "4xx.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #include "cuboot.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #include "stdio.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #define TARGET_4xx
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #define TARGET_44x
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #include "ppcboot.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) static bd_t bd;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) static void warp_fixups(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	ibm440ep_fixup_clocks(66000000, 11059200, 50000000);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 	ibm4xx_sdram_fixup_memsize();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	ibm4xx_fixup_ebc_ranges("/plb/opb/ebc");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 	dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) void platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 		   unsigned long r6, unsigned long r7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 	CUBOOT_INIT();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 	platform_ops.fixups = warp_fixups;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 	platform_ops.exit = ibm44x_dbcr_reset;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 	fdt_init(_dtb_start);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 	serial_console_init();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) }