blob: b0f7d3243c5eb218af10f4b73afa15d1b09f0438 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0
Paul Burtonf5de32a2016-09-08 07:47:39 +01002/*
3 * Copyright (C) 2016 Imagination Technologies
Paul Burtonf5de32a2016-09-08 07:47:39 +01004 */
5
Simon Glass97589732020-05-10 11:40:02 -06006#include <init.h>
Paul Burtonf5de32a2016-09-08 07:47:39 +01007
8#include <asm/io.h>
9#include <asm/mipsregs.h>
10
11#include "boston-lcd.h"
12#include "boston-regs.h"
13
14int checkboard(void)
15{
16 u32 changelist;
17
Michal Simek22dc1132023-06-05 13:58:59 +020018 lowlevel_display("U-Boot ");
Paul Burtonf5de32a2016-09-08 07:47:39 +010019
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}