Skip to content

Commit

Permalink
soc: arm64: xenvm: Move GIC version to DT
Browse files Browse the repository at this point in the history
Move the GIC version to the device tree for xenvm
to improve readability

Signed-off-by: Piotr Wojnarowski <pwojnarowski@antmicro.com>
  • Loading branch information
p-woj committed Jun 2, 2023
1 parent 9336dae commit 13b3193
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 14 deletions.
8 changes: 0 additions & 8 deletions boards/arm64/xenvm/Kconfig

This file was deleted.

2 changes: 1 addition & 1 deletion boards/arm64/xenvm/xenvm.dts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
};

gic: interrupt-controller@3001000 {
compatible = "arm,gic";
compatible = "arm,gic-v2", "arm,gic";
#interrupt-cells = <0x04>;
#address-cells = <0x00>;
interrupt-controller;
Expand Down
1 change: 1 addition & 0 deletions boards/arm64/xenvm/xenvm_gicv3.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
#include "xenvm.dts"

&gic {
compatible = "arm,gic-v3", "arm,gic";
reg = <0x00 0x3001000 0x00 0x10000 0x00 0x3020000 0x00 0x1000000>;
};
3 changes: 0 additions & 3 deletions boards/arm64/xenvm/xenvm_gicv3_defconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
CONFIG_SOC_XENVM=y
CONFIG_BOARD_XENVM=y

# Use GICv3
CONFIG_XENVM_USE_GIC_V3=y

# Enable UART driver
CONFIG_SERIAL=y

Expand Down
2 changes: 0 additions & 2 deletions soc/arm64/xenvm/Kconfig.soc
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ config SOC_XENVM
bool "Xen virtual machine on aarch64"
select ARM64
select ARM_ARCH_TIMER
select GIC_V3 if XENVM_USE_GIC_V3
select GIC_V2 if !XENVM_USE_GIC_V3
select CPU_CORTEX_A72

config XEN_INITIAL_DOMAIN
Expand Down

0 comments on commit 13b3193

Please sign in to comment.