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