mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 16:00:39 +01:00
[v1.06][ARM] Add support for NXP i.MX 8M Plus (#261)
This commit is contained in:
@@ -954,9 +954,10 @@ struct system_on_chip* guess_soc_from_devtree(struct system_on_chip* soc) {
|
||||
return soc;
|
||||
}
|
||||
|
||||
DT_START
|
||||
// The following are internal codenames of Asahi Linux
|
||||
// https://github.com/AsahiLinux/docs/wiki/Codenames
|
||||
DT_START
|
||||
// https://github.com/Dr-Noob/cpufetch/issues/263
|
||||
DT_EQ(dt, len, soc, "apple,t8103", "M1", SOC_APPLE_M1, 5)
|
||||
DT_EQ(dt, len, soc, "apple,t6000", "M1 Pro", SOC_APPLE_M1_PRO, 5)
|
||||
DT_EQ(dt, len, soc, "apple,t6001", "M1 Max", SOC_APPLE_M1_MAX, 5)
|
||||
@@ -969,6 +970,9 @@ struct system_on_chip* guess_soc_from_devtree(struct system_on_chip* soc) {
|
||||
DT_EQ(dt, len, soc, "apple,t6030", "M3 Pro", SOC_APPLE_M3_PRO, 3)
|
||||
DT_EQ(dt, len, soc, "apple,t6031", "M3 Max", SOC_APPLE_M3_MAX, 3)
|
||||
DT_EQ(dt, len, soc, "apple,t6034", "M3 Max", SOC_APPLE_M3_MAX, 3)
|
||||
// https://github.com/Dr-Noob/cpufetch/issues/261
|
||||
// https://www.nxp.com/docs/en/fact-sheet/IMX8MPLUSFS.pdf
|
||||
DT_EQ(dt, len, soc, "imx8mp-nitrogen8mp", "i.MX 8M Plus", SOC_NXP_IMX8MP, 14)
|
||||
DT_END(dt, len)
|
||||
}
|
||||
|
||||
|
||||
@@ -382,6 +382,8 @@ enum {
|
||||
SOC_TEGRA_X1,
|
||||
// ALTRA
|
||||
SOC_AMPERE_ALTRA,
|
||||
// NXP
|
||||
SOC_NXP_IMX8MP,
|
||||
// UNKNOWN
|
||||
SOC_MODEL_UNKNOWN
|
||||
};
|
||||
@@ -399,6 +401,7 @@ inline static VENDOR get_soc_vendor_from_soc(SOC soc) {
|
||||
else if(soc >= SOC_GOOGLE_TENSOR && soc <= SOC_GOOGLE_TENSOR_G3) return SOC_VENDOR_GOOGLE;
|
||||
else if(soc >= SOC_TEGRA_X1 && soc <= SOC_TEGRA_X1) return SOC_VENDOR_NVIDIA;
|
||||
else if(soc >= SOC_AMPERE_ALTRA && soc <= SOC_AMPERE_ALTRA) return SOC_VENDOR_AMPERE;
|
||||
else if(soc >= SOC_NXP_IMX8MP && soc <= SOC_NXP_IMX8MP) return SOC_VENDOR_NXP;
|
||||
return SOC_VENDOR_UNKNOWN;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user