blob: 3f0b1d2c04ac3ac8ad1b9ccb1ee5301cd3cab798 [file] [log] [blame]
Ovidiu Panait87a739e2022-05-31 21:14:31 +03001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2022, Ovidiu Panait <ovpanait@gmail.com>
4 */
5#include <common.h>
6#include <asm/cpuinfo.h>
7#include <asm/global_data.h>
8
9DECLARE_GLOBAL_DATA_PTR;
10
11void microblaze_early_cpuinfo_init(void)
12{
13 struct microblaze_cpuinfo *ci = gd_cpuinfo();
14
15 ci->icache_size = CONFIG_XILINX_MICROBLAZE0_ICACHE_SIZE;
16 ci->icache_line_length = 4;
17
18 ci->dcache_size = CONFIG_XILINX_MICROBLAZE0_DCACHE_SIZE;
19 ci->dcache_line_length = 4;
20}