mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-24 02:07:34 +03:00
tegra: hwpm: t264: Merge t264-hwpm files to hwpm
Merge the T264 private source code to hwpm common code. This is done after T264 source code can be made public. Bug 4856428 Bug 4943517 Signed-off-by: vasukis <vasukis@nvidia.com> Change-Id: Ie830c5465f32f49978cb465d68785ab3dbaee984 Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/3219865 GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Seema Khowala <seemaj@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
b8a884d226
commit
bb4b1def61
@@ -31,13 +31,11 @@
|
||||
|
||||
#include <hal/t234/t234_init.h>
|
||||
#include <hal/th500/th500_init.h>
|
||||
#include <hal/t264/t264_init.h>
|
||||
|
||||
#ifdef CONFIG_TEGRA_NEXT1_HWPM
|
||||
#include <tegra_hwpm_next1_init.h>
|
||||
#endif
|
||||
#ifdef CONFIG_TEGRA_NEXT3_HWPM
|
||||
#include <tegra_hwpm_next3_init.h>
|
||||
#endif
|
||||
|
||||
static int tegra_hwpm_init_chip_ip_structures(struct tegra_soc_hwpm *hwpm,
|
||||
u32 chip_id, u32 chip_id_rev)
|
||||
@@ -76,19 +74,21 @@ static int tegra_hwpm_init_chip_ip_structures(struct tegra_soc_hwpm *hwpm,
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
#if defined(CONFIG_TEGRA_NEXT3_HWPM)
|
||||
err = tegra_hwpm_next3_init_chip_ip_structures(
|
||||
hwpm, chip_id, chip_id_rev);
|
||||
if (err == 0) {
|
||||
/* Execution is for NEXT3 chip */
|
||||
#ifdef CONFIG_TEGRA_T264_HWPM
|
||||
case 0x26:
|
||||
switch (chip_id_rev) {
|
||||
case 0x4:
|
||||
err = t264_hwpm_init_chip_info(hwpm);
|
||||
break;
|
||||
default:
|
||||
tegra_hwpm_err(hwpm, "Chip 0x%x rev 0x%x not supported",
|
||||
chip_id, chip_id_rev);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if !defined(CONFIG_TEGRA_NEXT3_HWPM)
|
||||
default:
|
||||
tegra_hwpm_err(hwpm, "Chip 0x%x not supported", chip_id);
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user