Scott Wood | b991b98 | 2015-03-20 19:28:12 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015 Freescale Semiconductor |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
| 6 | |
Prabhakar Kushwaha | 2262966 | 2015-05-28 14:54:06 +0530 | [diff] [blame] | 7 | struct 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 Wood | b991b98 | 2015-03-20 19:28:12 -0700 | [diff] [blame] | 26 | void fsl_lsch3_early_init_f(void); |
Prabhakar Kushwaha | 2262966 | 2015-05-28 14:54:06 +0530 | [diff] [blame] | 27 | void cpu_name(char *name); |
Scott Wood | b991b98 | 2015-03-20 19:28:12 -0700 | [diff] [blame] | 28 | |