soc.h 614 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright 2015 Freescale Semiconductor
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. struct cpu_type {
  7. char name[15];
  8. u32 soc_ver;
  9. u32 num_cores;
  10. };
  11. #define CPU_TYPE_ENTRY(n, v, nc) \
  12. { .name = #n, .soc_ver = SVR_##v, .num_cores = (nc)}
  13. #define SVR_WO_E 0xFFFFFE
  14. #define SVR_LS2045 0x870120
  15. #define SVR_LS2080 0x870110
  16. #define SVR_LS2085 0x870100
  17. #define SVR_MAJ(svr) (((svr) >> 4) & 0xf)
  18. #define SVR_MIN(svr) (((svr) >> 0) & 0xf)
  19. #define SVR_SOC_VER(svr) (((svr) >> 8) & SVR_WO_E)
  20. #define IS_E_PROCESSOR(svr) (!((svr >> 8) & 0x1))
  21. void fsl_lsch3_early_init_f(void);
  22. void cpu_name(char *name);