Skip to content

Commit

Permalink
snippets: xen_dom0: add support of rcar_spider_ca55
Browse files Browse the repository at this point in the history
Add support of rcar_spider_ca55 to xen_dom0 snippet.

Disable CONFIG_UART_INTERRUPT_DRIVEN for xen_dom0, because
xen dom0 consoleio doesn't support interrupt driven mode.

Signed-off-by: Mykola Kvach <mykola_kvach@epam.com>
  • Loading branch information
xakep-amatop committed Apr 25, 2024
1 parent 7abd4ee commit 853e5d9
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
43 changes: 43 additions & 0 deletions snippets/xen_dom0/boards/rcar_spider_s4_r8a779f0_a55.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*
* Copyright (C) 2024 EPAM Systems.
*
* SPDX-License-Identifier: Apache-2.0
*/

/delete-node/ &ram;
/delete-node/ &hscif0;

/ {
/*
* This node may differs on different setups, please check
* following line in Xen boot log to set it right:
* (XEN) Grant table range: 0x00000078080000-0x000000780c0000
* Also, add extended region 1:
* (XEN) Extended region 1: 0x40000000->0x47e00000
*
* Xen passes actual values for setup in domain device tree, but Zephyr
* is not capable to parse and handle it in runtime.
*/
hypervisor: hypervisor@78080000 {
compatible = "xen,xen";
reg = <0x0 0x78080000 0x0 0x40000 0x0 0x40000000 0x0 0x7e00000>;
interrupts = <GIC_PPI 0x0 IRQ_TYPE_EDGE IRQ_DEFAULT_PRIORITY>;
interrupt-parent = <&gic>;
status = "okay";
};

/*
* This node may differs on different setups, because Xen picks
* region for Domain-0 for every specific configuration. You can
* start Xen for your platform and check following log:
* (XEN) Allocating 1:1 mappings for dom0:
* (XEN) BANK[0] 0x00000080000000-0x00000090000000 (256MB)
*
* Xen passes actual values for setup in domain device tree, but Zephyr
* is not capable to parse and handle it in runtime.
*/
ram: memory@80000000 {
device_type = "mmio-sram";
reg = <0x00 0x80000000 0x00 DT_SIZE_M(256)>;
};
};
3 changes: 3 additions & 0 deletions snippets/xen_dom0/snippet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ boards:
rcar_salvator_xs/r8a77961:
append:
EXTRA_DTC_OVERLAY_FILE: boards/rcar_salvator_xs.overlay
rcar_spider_s4/r8a779f0/a55:
append:
EXTRA_DTC_OVERLAY_FILE: boards/rcar_spider_s4_r8a779f0_a55.overlay
1 change: 1 addition & 0 deletions snippets/xen_dom0/xen_dom0.conf
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
CONFIG_XEN_DOM0=y
CONFIG_UART_INTERRUPT_DRIVEN=n

0 comments on commit 853e5d9

Please sign in to comment.