]> git.ipfire.org Git - people/ms/u-boot.git/blame - arch/sparc/include/asm/machines.h
Blackfin: Remove
[people/ms/u-boot.git] / arch / sparc / include / asm / machines.h
CommitLineData
c2f02da2
DH
1/* machines.h: Defines for taking apart the machine type value in the
2 * idprom and determining the kind of machine we are on.
3 *
4 * Taken from the SPARC port of Linux.
5 *
6 * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
7 * Copyright (C) 2007 Daniel Hellstrom (daniel@gaisler.com)
8 *
1a459660 9 * SPDX-License-Identifier: GPL-2.0+
c2f02da2
DH
10 */
11
12#ifndef __SPARC_MACHINES_H__
13#define __SPARC_MACHINES_H__
14
15struct Sun_Machine_Models {
16 char *name;
17 unsigned char id_machtype;
18};
19
20/* Current number of machines we know about that has an IDPROM
21 * machtype entry including one entry for the 0x80 OBP machines.
22 */
23#define NUM_SUN_MACHINES 16
24
25extern struct Sun_Machine_Models Sun_Machines[NUM_SUN_MACHINES];
26
27/* The machine type in the idprom area looks like this:
28 *
29 * ---------------
30 * | ARCH | MACH |
31 * ---------------
32 * 7 4 3 0
33 *
34 * The ARCH field determines the architecture line (sun4, sun4c, etc).
35 * The MACH field determines the machine make within that architecture.
36 */
37
38#define SM_ARCH_MASK 0xf0
39#define SM_SUN4 0x20
40#define M_LEON2 0x30
41#define SM_SUN4C 0x50
42#define SM_SUN4M 0x70
43#define SM_SUN4M_OBP 0x80
44
45#define SM_TYP_MASK 0x0f
46/* Sun4 machines */
47#define SM_4_260 0x01 /* Sun 4/200 series */
48#define SM_4_110 0x02 /* Sun 4/100 series */
49#define SM_4_330 0x03 /* Sun 4/300 series */
50#define SM_4_470 0x04 /* Sun 4/400 series */
51
52/* Leon machines */
53#define M_LEON2_SOC 0x01 /* Leon2 SoC */
54
55/* Sun4c machines Full Name - PROM NAME */
56#define SM_4C_SS1 0x01 /* Sun4c SparcStation 1 - Sun 4/60 */
57#define SM_4C_IPC 0x02 /* Sun4c SparcStation IPC - Sun 4/40 */
58#define SM_4C_SS1PLUS 0x03 /* Sun4c SparcStation 1+ - Sun 4/65 */
59#define SM_4C_SLC 0x04 /* Sun4c SparcStation SLC - Sun 4/20 */
60#define SM_4C_SS2 0x05 /* Sun4c SparcStation 2 - Sun 4/75 */
61#define SM_4C_ELC 0x06 /* Sun4c SparcStation ELC - Sun 4/25 */
62#define SM_4C_IPX 0x07 /* Sun4c SparcStation IPX - Sun 4/50 */
63
64/* Sun4m machines, these predate the OpenBoot. These values only mean
65 * something if the value in the ARCH field is SM_SUN4M, if it is
66 * SM_SUN4M_OBP then you have the following situation:
67 * 1) You either have a sun4d, a sun4e, or a recently made sun4m.
68 * 2) You have to consult OpenBoot to determine which machine this is.
69 */
70#define SM_4M_SS60 0x01 /* Sun4m SparcSystem 600 */
71#define SM_4M_SS50 0x02 /* Sun4m SparcStation 10 */
72#define SM_4M_SS40 0x03 /* Sun4m SparcStation 5 */
73
74/* Sun4d machines -- N/A */
75/* Sun4e machines -- N/A */
76/* Sun4u machines -- N/A */
77
78#endif /* !(_SPARC_MACHINES_H) */