aboutsummaryrefslogtreecommitdiff
path: root/board/imgtec/boston/checkboard.c
blob: 93eae7f6039bcac175346de305426f310219106c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * Copyright (C) 2016 Imagination Technologies
 *
 * SPDX-License-Identifier:	GPL-2.0
 */

#include <common.h>

#include <asm/io.h>
#include <asm/mipsregs.h>

#include "boston-lcd.h"
#include "boston-regs.h"

int checkboard(void)
{
	u32 changelist;

	lowlevel_display("U-boot  ");

	printf("Board: MIPS Boston\n");

	printf("CPU:   0x%08x", read_c0_prid());
	changelist = __raw_readl((uint32_t *)BOSTON_PLAT_CORE_CL);
	if (changelist > 1)
		printf(" cl%x", changelist);
	putc('\n');

	return 0;
}