Ovidiu Panait | 87a739e | 2022-05-31 21:14:31 +0300 | [diff] [blame^] | 1 | // 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 | |
| 9 | DECLARE_GLOBAL_DATA_PTR; |
| 10 | |
| 11 | void 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 | } |