blob: 41b7a216a431e4cae324377e345acc92ef7776b6 [file] [log] [blame]
Ovidiu Panaitf4599862022-08-29 20:02:05 +03001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2022, Ovidiu Panait <ovpanait@gmail.com>
4 */
5#include <init.h>
6#include <asm/cpuinfo.h>
7#include <asm/global_data.h>
8
9DECLARE_GLOBAL_DATA_PTR;
10
11void arch_print_bdinfo(void)
12{
13 struct microblaze_cpuinfo *ci = gd_cpuinfo();
14
15 if (ci->icache_size) {
16 bdinfo_print_size("icache", ci->icache_size);
17 bdinfo_print_size("icache line", ci->icache_line_length);
18 }
19
20 if (ci->dcache_size) {
21 bdinfo_print_size("dcache", ci->dcache_size);
22 bdinfo_print_size("dcache line", ci->dcache_line_length);
23 }
24}