Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Paul Burton | ad8783c | 2016-09-08 07:47:39 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2016 Imagination Technologies |
Paul Burton | ad8783c | 2016-09-08 07:47:39 +0100 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #include <common.h> |
Simon Glass | 691d719 | 2020-05-10 11:40:02 -0600 | [diff] [blame] | 7 | #include <init.h> |
Paul Burton | ad8783c | 2016-09-08 07:47:39 +0100 | [diff] [blame] | 8 | |
| 9 | #include <asm/io.h> |
| 10 | #include <asm/mipsregs.h> |
| 11 | |
| 12 | #include "boston-lcd.h" |
| 13 | #include "boston-regs.h" |
| 14 | |
| 15 | int checkboard(void) |
| 16 | { |
| 17 | u32 changelist; |
| 18 | |
| 19 | lowlevel_display("U-boot "); |
| 20 | |
| 21 | printf("Board: MIPS Boston\n"); |
| 22 | |
| 23 | printf("CPU: 0x%08x", read_c0_prid()); |
| 24 | changelist = __raw_readl((uint32_t *)BOSTON_PLAT_CORE_CL); |
| 25 | if (changelist > 1) |
| 26 | printf(" cl%x", changelist); |
| 27 | putc('\n'); |
| 28 | |
| 29 | return 0; |
| 30 | } |