Bo Shen | 5864590 | 2014-11-10 15:24:02 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2014 Atmel |
| 3 | * Bo Shen <voice.shen@atmel.com> |
| 4 | * |
| 5 | * SPDX-License-Identifier: GPL-2.0+ |
| 6 | */ |
| 7 | |
| 8 | #include <common.h> |
| 9 | #include <asm/arch/sama5d4.h> |
| 10 | |
| 11 | char *get_cpu_name() |
| 12 | { |
| 13 | unsigned int extension_id = get_extension_chip_id(); |
| 14 | |
| 15 | if (cpu_is_sama5d4()) |
| 16 | switch (extension_id) { |
| 17 | case ARCH_EXID_SAMA5D41: |
| 18 | return "SAMA5D41"; |
| 19 | case ARCH_EXID_SAMA5D42: |
| 20 | return "SAMA5D42"; |
| 21 | case ARCH_EXID_SAMA5D43: |
| 22 | return "SAMA5D43"; |
| 23 | case ARCH_EXID_SAMA5D44: |
| 24 | return "SAMA5D44"; |
| 25 | default: |
| 26 | return "Unknown CPU type"; |
| 27 | } |
| 28 | else |
| 29 | return "Unknown CPU type"; |
| 30 | } |