Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions backends/qualcomm/serialization/qc_compiler_spec.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ enum HtpArch: int {
V73 = 73,
V75 = 75,
V79 = 79,
V81 = 81,
}

table HtpInfo {
Expand All @@ -43,6 +44,8 @@ enum QcomChipset: int {
SXR1230P = 45,
SXR2230P = 53,
SXR2330P = 75,
SM8850 = 87,
SM8735 = 85,
}

/// Indicate the information of the specified SoC.
Expand Down
5 changes: 5 additions & 0 deletions backends/qualcomm/serialization/qc_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class HtpArch(IntEnum):
V73 = 73
V75 = 75
V79 = 79
V81 = 81


@dataclass
Expand All @@ -49,6 +50,8 @@ class QcomChipset(IntEnum):
SXR1230P = 45 # v73
SXR2230P = 53 # v69
SXR2330P = 75 # v79
SM8850 = 87, # v81
SM8735 = 85, # v73


@dataclass
Expand All @@ -69,6 +72,8 @@ class SocInfo:
QcomChipset.SXR1230P: SocInfo(QcomChipset.SXR1230P, HtpInfo(HtpArch.V73, 2)),
QcomChipset.SXR2230P: SocInfo(QcomChipset.SXR2230P, HtpInfo(HtpArch.V69, 8)),
QcomChipset.SXR2330P: SocInfo(QcomChipset.SXR2330P, HtpInfo(HtpArch.V79, 8)),
QcomChipset.SM8850: SocInfo(QcomChipset.SM8850, HtpInfo(HtpArch.V81, 8)),
QcomChipset.SM8735: SocInfo(QcomChipset.SM8735, HtpInfo(HtpArch.V73, 8)),
}


Expand Down
4 changes: 4 additions & 0 deletions backends/qualcomm/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1099,6 +1099,8 @@ def get_soc_to_arch_map():
"SXR1230P": HtpArch.V73,
"SXR2230P": HtpArch.V69,
"SXR2330P": HtpArch.V79,
"SM8850": HtpArch.V81,
"SM8735": HtpArch.V73,
}


Expand All @@ -1115,6 +1117,8 @@ def get_soc_to_chipset_map():
"SXR1230P": QcomChipset.SXR1230P,
"SXR2230P": QcomChipset.SXR2230P,
"SXR2330P": QcomChipset.SXR2330P,
"SM8850": QcomChipset.SM8850,
"SM8735": QcomChipset.SM8735,
}


Expand Down
Loading
Loading