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

Output a list of supported SoCs #190

Merged
merged 2 commits into from
Oct 25, 2023

Conversation

apritzel
Copy link
Contributor

The list of supported SoCs is ever growing, so it would be useful to check whether a particular build supports a certain SoC. Add an option to dump this list to the terminal.

@apritzel apritzel requested a review from wens February 28, 2023 20:02
@apritzel apritzel requested review from paulkocialkowski and removed request for wens May 30, 2023 23:14
fel.c Outdated Show resolved Hide resolved
soc_info.c Outdated Show resolved Hide resolved
At the moment we can search for a specific SoC in our supported SoC
table by looking for its SoC ID, but we cannot otherwise enumerate all
supported SoCs.

Add a get_next_soc() function that allows iterating over our (internal)
table: The first call will take NULL as an argument, subsequent calls
pass in the pointer returned by the previous call. When we reach the end
of the list, the function returns NULL.

Signed-off-by: Andre Przywara <osp@andrep.de>
As over time we gain support for more and more SoCs, it would be
convenient to know which SoCs a particular build actually supports.

Add a "list-socs" command, that just iterates over the soc_info table
and outputs the SoC ID and the name for each entry.

Signed-off-by: Andre Przywara <osp@andrep.de>
@apritzel
Copy link
Contributor Author

@paulkocialkowski, if you are fine with the changes and want to merge it, can you do a "Rebase and merge", to avoid the extra merge commit for just two patches? That makes a cleaner history, IMHO.

@paulkocialkowski paulkocialkowski merged commit 91f9ccf into linux-sunxi:master Oct 25, 2023
1 check passed
@paulkocialkowski
Copy link
Member

Thanks!

@apritzel apritzel deleted the list-socs branch November 13, 2023 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants