Skip to content

Commit

Permalink
firmware: Reformat firmware version info table
Browse files Browse the repository at this point in the history
Disable clanmg-format for it and transform it into a readable form by
padding columns with spaces.

Signed-off-by: Janne Grunau <[email protected]>
  • Loading branch information
jannau committed Nov 6, 2023
1 parent 5d38988 commit 1f7ed9d
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions src/firmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,24 @@ struct fw_version_info system_firmware;
} while (0)

const struct fw_version_info fw_versions[NUM_FW_VERSIONS] = {
[V_UNKNOWN] = {V_UNKNOWN, "unknown", {0}, 1, "unknown"},
[V12_1] = {V12_1, "12.1", {12, 1, 0}, 3, "iBoot-7429.61.2"},
[V12_2] = {V12_2, "12.2", {12, 2, 0}, 3, "iBoot-7429.81.3"},
[V12_3] = {V12_3, "12.3", {12, 3, 0}, 3, "iBoot-7459.101.2"},
[V12_3_1] = {V12_3_1, "12.3.1", {12, 3, 1}, 3, "iBoot-7459.101.3"},
[V12_4] = {V12_4, "12.4", {12, 4, 0}, 3, "iBoot-7459.121.3"},
[V12_5] = {V12_5, "12.5", {12, 5, 0}, 3, "iBoot-7459.141.1"},
// clang-format off
[V_UNKNOWN] = {V_UNKNOWN, "unknown", {0}, 1, "unknown"},
[V12_1] = {V12_1, "12.1", {12, 1, 0}, 3, "iBoot-7429.61.2"},
[V12_2] = {V12_2, "12.2", {12, 2, 0}, 3, "iBoot-7429.81.3"},
[V12_3] = {V12_3, "12.3", {12, 3, 0}, 3, "iBoot-7459.101.2"},
[V12_3_1] = {V12_3_1, "12.3.1", {12, 3, 1}, 3, "iBoot-7459.101.3"},
[V12_4] = {V12_4, "12.4", {12, 4, 0}, 3, "iBoot-7459.121.3"},
[V12_5] = {V12_5, "12.5", {12, 5, 0}, 3, "iBoot-7459.141.1"},
// Same as 12.5
// {V12_6, "12.6", {12, 6, 0}, 3, "iBoot-7459.141.1"},
[V13_0B4] = {V13_0B4, "13.0 beta4", {12, 99, 4}, 3, "iBoot-8419.0.151.0.1"},
[V13_0] = {V13_0, "13.0", {13, 0, 0}, 3, "iBoot-8419.41.10"},
[V13_1] = {V13_1, "13.1", {13, 1, 0}, 3, "iBoot-8419.60.44"},
[V13_2] = {V13_2, "13.2", {13, 2, 0}, 3, "iBoot-8419.80.7"},
[V13_3] = {V13_3, "13.3", {13, 3, 0}, 3, "iBoot-8422.100.650"},
[V13_5B4] = {V13_5B4, "13.5 beta4", {13, 4, 99, 4}, 4, "iBoot-8422.140.50.0.2"},
[V13_5] = {V13_5, "13.5", {13, 5, 0}, 3, "iBoot-8422.141.2"},
[V13_0B4] = {V13_0B4, "13.0 beta4", {12, 99, 4}, 3, "iBoot-8419.0.151.0.1"},
[V13_0] = {V13_0, "13.0", {13, 0, 0}, 3, "iBoot-8419.41.10"},
[V13_1] = {V13_1, "13.1", {13, 1, 0}, 3, "iBoot-8419.60.44"},
[V13_2] = {V13_2, "13.2", {13, 2, 0}, 3, "iBoot-8419.80.7"},
[V13_3] = {V13_3, "13.3", {13, 3, 0}, 3, "iBoot-8422.100.650"},
[V13_5B4] = {V13_5B4, "13.5 beta4", {13, 4, 99, 4}, 4, "iBoot-8422.140.50.0.2"},
[V13_5] = {V13_5, "13.5", {13, 5, 0}, 3, "iBoot-8422.141.2"},
// clang-format on
};

int firmware_set_fdt(void *fdt, int node, const char *prop, const struct fw_version_info *ver)
Expand Down

0 comments on commit 1f7ed9d

Please sign in to comment.