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 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * machines.h:  Defines for taking apart the machine type value in the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *              idprom and determining the kind of machine we are on.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #ifndef _SPARC_MACHINES_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #define _SPARC_MACHINES_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) struct Sun_Machine_Models {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 	char *name;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 	unsigned char id_machtype;
^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) /* The machine type in the idprom area looks like this:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)  * ---------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)  * | ARCH | MACH |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)  * ---------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)  *  7    4 3    0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)  * The ARCH field determines the architecture line (sun4m, etc).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)  * The MACH field determines the machine make within that architecture.
^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) #define SM_ARCH_MASK  0xf0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #define  M_LEON       0x30
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #define SM_SUN4M      0x70
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) #define SM_SUN4M_OBP  0x80
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #define SM_TYP_MASK   0x0f
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) /* Leon machines */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) #define M_LEON3_SOC   0x02    /* Leon3 SoC */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) /* Sun4m machines, these predate the OpenBoot.  These values only mean
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38)  * something if the value in the ARCH field is SM_SUN4M, if it is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39)  * SM_SUN4M_OBP then you have the following situation:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40)  * 1) You either have a sun4d, a sun4e, or a recently made sun4m.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41)  * 2) You have to consult OpenBoot to determine which machine this is.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) #define SM_4M_SS60    0x01    /* Sun4m SparcSystem 600                  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) #define SM_4M_SS50    0x02    /* Sun4m SparcStation 10                  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) #define SM_4M_SS40    0x03    /* Sun4m SparcStation 5                   */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) /* Sun4d machines -- N/A */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) /* Sun4e machines -- N/A */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) /* Sun4u machines -- N/A */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) #endif /* !(_SPARC_MACHINES_H) */