1 // 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 
9 DECLARE_GLOBAL_DATA_PTR;
10 
arch_print_bdinfo(void)11 void 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 }
25