Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does the "MSM8952" in devices.md mean MSM8956? #406

Open
Icenowy opened this issue Aug 18, 2024 · 1 comment
Open

Does the "MSM8952" in devices.md mean MSM8956? #406

Icenowy opened this issue Aug 18, 2024 · 1 comment

Comments

@Icenowy
Copy link

Icenowy commented Aug 18, 2024

According to my knowledge (and what https://wiki.postmarketos.org/wiki/Qualcomm_Snapdragon_650/652/653_(MSM8956/MSM8976) ) says, Xiaomi kenzo and Sony suzu/kugo are MSM8956 devices; however they're listed in devices.md as part of lk2nd-msm8952 ...

Or are these SoCs so similar that they're sharing lk2nd binary?

@TravMurav
Copy link
Member

Or are these SoCs so similar that they're sharing lk2nd binary?

Exactly. lk2nd-msm8952 is a build target based on caf msm8952 build target, which is compatible with multiple "similar enough" socs. You can consult targets.md to see a rough mapping of chipsets to targets. (this table is not fully accurate since i.e. we use msm8952 for msm8937 as well)

You can also confirm that by looking at the platform code which provides per-soc checks:

int platform_is_msm8917(void)
{
uint32_t platform = board_platform_id();
uint32_t ret = 0;
switch(platform)
{
case MSM8917:
case MSM8920:
case MSM8217:
case MSM8617:
case APQ8017:
ret = 1;
break;
default:
ret = 0;
};
return ret;
}
int platform_is_qm215(void)
{
uint32_t platform = board_platform_id();
uint32_t ret = 0;
switch(platform)
{
case QM215:
case QCM2150:
ret = 1;
break;
default:
ret = 0;
};
return ret;
}
int platform_is_msm8937(void)
{
uint32_t platform = board_platform_id();
uint32_t ret = 0;
switch(platform)
{
case MSM8937:
case MSM8940:
case APQ8037:
ret = 1;
break;
default:
ret = 0;
};
return ret;
}
int platform_is_msm8952(void)
{
uint32_t platform = board_platform_id();
uint32_t ret = 0;
switch(platform)
{
case MSM8952:
case APQ8052:
ret = 1;
break;
default:
ret = 0;
};
return ret;
}
int platform_is_sdm429(void)
{
uint32_t platform = board_platform_id();
uint32_t ret = 0;
switch(platform)
{
case SDM429:
case SDA429:
ret = 1;
break;
default:
ret = 0;
};
return ret;
}
int platform_is_sdm439(void)
{
uint32_t platform = board_platform_id();
uint32_t ret = 0;
switch(platform)
{
case SDM439:
case SDA439:
ret = 1;
break;
default:
ret = 0;
};
return ret;
}
int platform_is_sdm429w(void)
{
uint32_t platform = board_platform_id();
uint32_t ret = 0;
switch(platform)
{
case SDM429W:
ret = 1;
break;
default:
ret = 0;
};
return ret;
}
int platform_is_sda429w(void)
{
uint32_t platform = board_platform_id();
uint32_t ret = 0;
switch(platform)
{
case SDA429W:
ret = 1;
break;
default:
ret = 0;
};
return ret;
}
int platform_is_msm8956(void)
{
uint32_t platform = board_platform_id();
uint32_t ret = 0;
switch(platform)
{
case MSM8956:
case APQ8056:
case APQ8076:
case MSM8976:
ret = 1;
break;
default:
ret = 0;
};
return ret;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants