Skip to content

Commit

Permalink
Merge pull request #136 from dansmathers/patch-22
Browse files Browse the repository at this point in the history
attempt at a DTS entry for CLIC for issue #91
  • Loading branch information
Kevin-Andes authored Apr 12, 2021
2 parents 9b9ec57 + 3555825 commit 36a28ce
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions clic.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2222,3 +2222,27 @@ Interrupt map with PLIC recommendation:
The CLIC specification does not dictate how CLIC memory-mapped registers are split between M/S/U regions as well as the layout of multiple harts as this is generally a platform issue and each platform needs to define a discovery mechanism to determine the memory map locations. Some considerations for platforms to consider are selecting regions that allow for efficient PMP and virtual memory configuration.
For example, it may desired that the bases of each S/U-mode CLIC region is VM page (4k) aligned so they can be mapped through the TLBs.

== Appendix

=== Prototype DTS Entry
Modified from Example at https://elinux.org/Device_Tree_Usage

/dts-v1/;

/ {
...

interrupt-parent = <&intc>;

...

intc: interrupt-controller@MCLICBASE {
compatible = "xxx,xxx";
reg = <MCLICBASE 0x5000 >;
interrupt-controller;
#interrupt-cells = <NUM_INTERRUPT>;
};

...

};

0 comments on commit 36a28ce

Please sign in to comment.