Skip to content

Commit

Permalink
x86: Add intel,x86_64 compat to all x86-64 platforms
Browse files Browse the repository at this point in the history
This will help distinguish 64 and 32-bit platforms by tooling, following
the pattern visible in e.g. RISC-V.

Signed-off-by: Piotr Zierhoffer <[email protected]>
Signed-off-by: Mateusz Hołenko <[email protected]>
  • Loading branch information
PiotrZierhoffer authored and nashif committed Nov 16, 2024
1 parent 12a27f3 commit b05136f
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions boards/intel/adl/intel_adl.dts
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@
sdhc0 = &emmc;
};
};

&cpu {
compatible = "intel,x86_64";
};
4 changes: 2 additions & 2 deletions boards/up-bridge-the-gap/up_squared/up_squared.dts
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@

cpu@0 {
device_type = "cpu";
compatible = "intel,apollo-lake";
compatible = "intel,apollo-lake", "intel,x86_64";
d-cache-line-size = <64>;
reg = <0>;
};

cpu@1 {
device_type = "cpu";
compatible = "intel,apollo-lake";
compatible = "intel,apollo-lake", "intel,x86_64";
d-cache-line-size = <64>;
reg = <1>;
};
Expand Down
4 changes: 2 additions & 2 deletions dts/x86/intel/alder_lake.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
#address-cells = <1>;
#size-cells = <0>;

cpu@0 {
cpu: cpu@0 {
device_type = "cpu";
compatible = "intel,alder-lake";
compatible = "intel,alder-lake", "intel,x86_64";
d-cache-line-size = <64>;
reg = <0>;
};
Expand Down
2 changes: 1 addition & 1 deletion dts/x86/intel/apollo_lake.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

cpu@0 {
device_type = "cpu";
compatible = "intel,apollo-lake";
compatible = "intel,apollo-lake", "intel,x86_64";
d-cache-line-size = <64>;
reg = <0>;
};
Expand Down
2 changes: 1 addition & 1 deletion dts/x86/intel/elkhart_lake.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

cpu@0 {
device_type = "cpu";
compatible = "intel,elkhart-lake";
compatible = "intel,elkhart-lake", "intel,x86_64";
d-cache-line-size = <64>;
reg = <0>;
};
Expand Down
2 changes: 1 addition & 1 deletion dts/x86/intel/raptor_lake_p.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#size-cells = <0>;

cpu@0 {
compatible = "intel,raptor-lake";
compatible = "intel,raptor-lake", "intel,x86_64";
device_type = "cpu";
d-cache-line-size = <64>;
reg = <0>;
Expand Down
2 changes: 1 addition & 1 deletion dts/x86/intel/raptor_lake_s.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

cpu@0 {
device_type = "cpu";
compatible = "intel,raptor-lake";
compatible = "intel,raptor-lake", "intel,x86_64";
d-cache-line-size = <64>;
reg = <0>;
};
Expand Down

0 comments on commit b05136f

Please sign in to comment.