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)  * arch/arm/plat-iop/setup.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Author: Nicolas Pitre <nico@fluxnic.net>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  * Copyright (C) 2001 MontaVista Software, Inc.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  * Copyright (C) 2004 Intel Corporation.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #include <linux/mm.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #include <linux/init.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #include <asm/mach/map.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #include "iop3xx.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)  * Standard IO mapping for all IOP3xx based systems.  Note that
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)  * the IOP3xx OCCDR must be mapped uncached and unbuffered.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) static struct map_desc iop3xx_std_desc[] __initdata = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	{	/* mem mapped registers */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 		.virtual	= IOP3XX_PERIPHERAL_VIRT_BASE,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 		.pfn		= __phys_to_pfn(IOP3XX_PERIPHERAL_PHYS_BASE),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 		.length		= IOP3XX_PERIPHERAL_SIZE,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 		.type		= MT_UNCACHED,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) void __init iop3xx_map_io(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 	iotable_init(iop3xx_std_desc, ARRAY_SIZE(iop3xx_std_desc));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) }