soc/tegra: cbb: Improve handling for per SoC fabric data
authorSumit Gupta <sumitg@nvidia.com>
Thu, 3 Jul 2025 10:38:25 +0000 (16:08 +0530)
committerThierry Reding <treding@nvidia.com>
Wed, 9 Jul 2025 12:27:41 +0000 (14:27 +0200)
commit25de5c8fe0801361182b41c42f086bd089feda14
treed8cbc06aade815c71dfe8591f9e2d02ad7f23540
parent2f2c32f9cc940f908b42d070207c6d503362793c
soc/tegra: cbb: Improve handling for per SoC fabric data

Improve handling for the per SoC fabrics and targets.
The below changes make them more flexible and ready for future SoC's.
- Added SoC prefix to Fabric_ID enums.
- Rename *lookup_target_timeout() to *sw_lookup_target_timeout() to
  make it separate from HW based lookup function to be added later.
- Moved target_map within fabric_lookup table to make it easy to
  check whether SW vs HW lookup is supported and handle accordingly.
- Slight improvements to some error prints.

Signed-off-by: Sumit Gupta <sumitg@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/soc/tegra/cbb/tegra234-cbb.c