2 * Copyright (C) 2013-2014 Panasonic Corporation
3 * Copyright (C) 2015-2017 Socionext Inc.
4 * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
6 * SPDX-License-Identifier: GPL-2.0+
10 #include <linux/errno.h>
12 #include <linux/printk.h>
16 int print_cpuinfo(void)
18 unsigned int id, model, rev, required_model = 1, required_rev = 1;
20 id = uniphier_get_soc_id();
21 model = uniphier_get_soc_model();
22 rev = uniphier_get_soc_revision();
31 case UNIPHIER_PRO4_ID:
34 case UNIPHIER_SLD8_ID:
37 case UNIPHIER_PRO5_ID:
40 case UNIPHIER_PXS2_ID:
43 case UNIPHIER_LD6B_ID:
46 case UNIPHIER_LD11_ID:
49 case UNIPHIER_LD20_ID:
52 case UNIPHIER_PXS3_ID:
56 printf("Unknown Processor ID (0x%x)\n", id);
60 printf(" (model %d, revision %d)\n", model, rev);
62 if (model < required_model) {
63 pr_err("Only model %d or newer is supported.\n",
66 } else if (rev < required_rev) {
67 pr_err("Only revision %d or newer is supported.\n",