x86: Divide Intel Atom CPU compatible to x86 and x86_64

atom.dtsi enforces "intel,x86", but it doesn't help us discern if the
platform is 32 or 64-bit. We do that for example in RISC-V and it's
useful from the tooling perspective.

Signed-off-by: Piotr Zierhoffer <pzierhoffer@antmicro.com>
Signed-off-by: Mateusz Hołenko <mholenko@antmicro.com>
This commit is contained in:
Piotr Zierhoffer 2024-09-16 14:53:03 +02:00 committed by Anas Nashif
parent f556a76081
commit 8f14d08bf5
5 changed files with 19 additions and 4 deletions

View file

@ -46,3 +46,7 @@
status = "okay"; status = "okay";
current-speed = <115200>; current-speed = <115200>;
}; };
&cpu {
compatible = "intel,x86_64";
};

View file

@ -166,3 +166,7 @@
}; };
}; };
}; };
&cpu {
compatible = "intel,x86";
};

View file

@ -9,7 +9,7 @@
cpus { cpus {
cpu@1 { cpu@1 {
device_type = "cpu"; device_type = "cpu";
compatible = "intel,x86"; compatible = "intel,x86_64";
d-cache-line-size = <64>; d-cache-line-size = <64>;
reg = <1>; reg = <1>;
}; };
@ -29,3 +29,7 @@
status = "okay"; status = "okay";
}; };
}; };
&cpu {
compatible = "intel,x86_64";
};

View file

@ -9,9 +9,13 @@
cpus { cpus {
cpu@1 { cpu@1 {
device_type = "cpu"; device_type = "cpu";
compatible = "intel,x86"; compatible = "intel,x86_64";
d-cache-line-size = <64>; d-cache-line-size = <64>;
reg = <1>; reg = <1>;
}; };
}; };
}; };
&cpu {
compatible = "intel,x86_64";
};

View file

@ -12,9 +12,8 @@
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
cpu@0 { cpu: cpu@0 {
device_type = "cpu"; device_type = "cpu";
compatible = "intel,x86";
d-cache-line-size = <64>; d-cache-line-size = <64>;
reg = <0>; reg = <0>;
}; };