blob: 6d2d7b0bd02b376deefef547bc08a327115efa96 [file] [log] [blame]
Igor Grinberga937fd12014-11-03 11:32:18 +02001/*
2 * (C) Copyright 2014 CompuLab, Ltd. <www.compulab.co.il>
3 *
4 * Authors: Igor Grinberg <grinberg@compulab.co.il>
5 *
6 * SPDX-License-Identifier: GPL-2.0+
7 */
8
9#include <common.h>
10#include <asm/bootm.h>
11
12#include "common.h"
13#include "eeprom.h"
14
15void cl_print_pcb_info(void)
16{
17 u32 board_rev = get_board_rev();
18 u32 rev_major = board_rev / 100;
19 u32 rev_minor = board_rev - (rev_major * 100);
20
21 if ((rev_minor / 10) * 10 == rev_minor)
22 rev_minor = rev_minor / 10;
23
24 printf("PCB: %u.%u\n", rev_major, rev_minor);
25}