blob: 9a292720721519354ee36d0c29b9c05acbd2db68 [file] [log] [blame]
Scott Woodb991b982015-03-20 19:28:12 -07001/*
2 * Copyright 2015 Freescale Semiconductor
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
Prabhakar Kushwaha22629662015-05-28 14:54:06 +05307struct cpu_type {
8 char name[15];
9 u32 soc_ver;
10 u32 num_cores;
11};
12
13#define CPU_TYPE_ENTRY(n, v, nc) \
14 { .name = #n, .soc_ver = SVR_##v, .num_cores = (nc)}
15
16#define SVR_WO_E 0xFFFFFE
17#define SVR_LS2045 0x870120
18#define SVR_LS2080 0x870110
19#define SVR_LS2085 0x870100
20
21#define SVR_MAJ(svr) (((svr) >> 4) & 0xf)
22#define SVR_MIN(svr) (((svr) >> 0) & 0xf)
23#define SVR_SOC_VER(svr) (((svr) >> 8) & SVR_WO_E)
24#define IS_E_PROCESSOR(svr) (!((svr >> 8) & 0x1))
25
Scott Woodb991b982015-03-20 19:28:12 -070026void fsl_lsch3_early_init_f(void);
Prabhakar Kushwaha22629662015-05-28 14:54:06 +053027void cpu_name(char *name);
Scott Woodb991b982015-03-20 19:28:12 -070028