]> git.dujemihanovic.xyz Git - u-boot.git/commit
cpu: add CPU driver for microblaze
authorOvidiu Panait <ovpanait@gmail.com>
Tue, 31 May 2022 18:14:35 +0000 (21:14 +0300)
committerMichal Simek <michal.simek@amd.com>
Fri, 24 Jun 2022 12:16:00 +0000 (14:16 +0200)
commit816226d27efa22d89821dfd0796f763a24c33944
treed68cb4e53ca64c646950f6f26a6648927ea7cec4
parent9df16c5937f68654fb2b67f932319c375f8e4e45
cpu: add CPU driver for microblaze

Add a basic CPU driver that retrieves information about the microblaze CPU
core. cpu_ops handlers are implemented so that the "cpu" command can work
properly:

U-Boot-mONStR> cpu list
  0: cpu@0      MicroBlaze @ 50MHz, Rev: 11.0, FPGA family: zynq7000
U-Boot-mONStR> cpu detail
  0: cpu@0      MicroBlaze @ 50MHz, Rev: 11.0, FPGA family: zynq7000
        ID = 0, freq = 50 MHz: L1 cache, MMU

Note: cpu_ver_lookup[] and family_string_lookup[] arrays were imported from
linux.

Signed-off-by: Ovidiu Panait <ovpanait@gmail.com>
Link: https://lore.kernel.org/r/20220531181435.3473549-14-ovpanait@gmail.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
arch/microblaze/cpu/cpuinfo.c
arch/microblaze/include/asm/cpuinfo.h
drivers/cpu/Kconfig
drivers/cpu/Makefile
drivers/cpu/microblaze_cpu.c [new file with mode: 0644]