Skip to content

Commit

Permalink
arch: arm64: dts: init xiaomi-libra's cpus by spin-table
Browse files Browse the repository at this point in the history
  • Loading branch information
fekz115 committed Nov 11, 2023
1 parent 3be6e77 commit 9c60c39
Showing 1 changed file with 33 additions and 11 deletions.
44 changes: 33 additions & 11 deletions arch/arm64/boot/dts/qcom/msm8992-xiaomi-libra.dts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,30 @@
/delete-node/ &dfps_data_mem;
/delete-node/ &cont_splash_mem;

&CPU0 {
enable-method = "spin-table";
};

&CPU1 {
enable-method = "spin-table";
};

&CPU2 {
enable-method = "spin-table";
};

&CPU3 {
enable-method = "spin-table";
};

&CPU4 {
enable-method = "spin-table";
};

&CPU5 {
enable-method = "spin-table";
};

/ {
model = "Xiaomi Mi 4C";
compatible = "xiaomi,libra", "qcom,msm8992";
Expand All @@ -27,9 +51,12 @@
qcom,pmic-id = <65545 65546 0 0>;
qcom,board-id = <12 0>;

/* libra firmware doesn't support PSCI */
/delete-node/ psci;

/* This enables graphical output via bootloader-enabled display */
chosen {
bootargs = "earlycon=tty0 console=tty0 maxcpus=1";
bootargs = "earlycon=tty0 console=tty0";

#address-cells = <2>;
#size-cells = <2>;
Expand Down Expand Up @@ -76,6 +103,11 @@
#size-cells = <2>;
ranges;

spin-table@6000000 {
reg = <0 0x06000000 0 0x1000>;
no-map;
};

memory_hole: hole@6400000 {
reg = <0 0x06400000 0 0x600000>;
no-map;
Expand All @@ -86,16 +118,6 @@
no-map;
};

mpss_mem: mpss@9000000 {
reg = <0 0x09000000 0 0x5a00000>;
no-map;
};

tzapp: tzapp@ea00000 {
reg = <0 0x0ea00000 0 0x1900000>;
no-map;
};

mdm_rfsa_mem: mdm-rfsa@ca0b0000 {
reg = <0 0xca0b0000 0 0x10000>;
no-map;
Expand Down

0 comments on commit 9c60c39

Please sign in to comment.