Browse Source
SMCCC_GET_SOC_VERSION SMC will return soc id to distinguish different varaints in sc7180 and sc7280 Signed-off-by: Bharath N <quic_bharn@quicinc.com> Change-Id: I72ea4bdb8193c816ba249c1e0755784c9b9bb7dapull/1989/head
Bharath N
2 years ago
6 changed files with 82 additions and 3 deletions
@ -0,0 +1,28 @@ |
|||
/*
|
|||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. |
|||
* |
|||
* SPDX-License-Identifier: BSD-3-Clause |
|||
*/ |
|||
#ifndef QTI_MAP_CHIPINFO_H |
|||
#define QTI_MAP_CHIPINFO_H |
|||
|
|||
#include <stdint.h> |
|||
|
|||
#include <qti_plat.h> |
|||
|
|||
#define QTI_JTAG_ID_REG 0x786130 |
|||
#define QTI_SOC_VERSION_MASK U(0xFFFF) |
|||
#define QTI_SOC_REVISION_REG 0x1FC8000 |
|||
#define QTI_SOC_REVISION_MASK U(0xFFFF) |
|||
#define QTI_JTAG_ID_SHIFT 12 |
|||
#define QTI_JTAG_ID_SC7180 U(0x012C) |
|||
#define QTI_JTAG_ID_SC7180P U(0x0195) |
|||
#define QTI_CHIPINFO_ID_SC7180 U(0x01A9) |
|||
#define QTI_CHIPINFO_ID_SC7180P U(0x01EF) |
|||
#define QTI_DEFAULT_CHIPINFO_ID U(0xFFFF) |
|||
|
|||
static const chip_id_info_t g_map_jtag_chipinfo_id[] = { |
|||
{QTI_JTAG_ID_SC7180, QTI_CHIPINFO_ID_SC7180}, |
|||
{QTI_JTAG_ID_SC7180P, QTI_CHIPINFO_ID_SC7180P}, |
|||
}; |
|||
#endif /* QTI_MAP_CHIPINFO_H */ |
@ -0,0 +1,34 @@ |
|||
/*
|
|||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. |
|||
* |
|||
* SPDX-License-Identifier: BSD-3-Clause |
|||
*/ |
|||
#ifndef QTI_MAP_CHIPINFO_H |
|||
#define QTI_MAP_CHIPINFO_H |
|||
|
|||
#include <stdint.h> |
|||
|
|||
#include <qti_plat.h> |
|||
|
|||
#define QTI_JTAG_ID_REG 0x786130 |
|||
#define QTI_JTAG_ID_SHIFT 12 |
|||
#define QTI_JTAG_ID_SC7280 U(0x0193) |
|||
#define QTI_JTAG_ID_SC7280P U(0x01EB) |
|||
#define QTI_JTAG_ID_SC8270 U(0x01E3) |
|||
#define QTI_JTAG_ID_SC8270P U(0x020A) |
|||
#define QTI_JTAG_ID_SC7270P U(0x0215) |
|||
#define QTI_CHIPINFO_ID_SC7280 U(0x01E7) |
|||
#define QTI_CHIPINFO_ID_SC7280P U(0x0222) |
|||
#define QTI_CHIPINFO_ID_SC8270 U(0x0229) |
|||
#define QTI_CHIPINFO_ID_SC8270P U(0x0233) |
|||
#define QTI_CHIPINFO_ID_SC7270P U(0x0237) |
|||
#define QTI_DEFAULT_CHIPINFO_ID U(0xFFFF) |
|||
|
|||
static const chip_id_info_t g_map_jtag_chipinfo_id[] = { |
|||
{QTI_JTAG_ID_SC7280, QTI_CHIPINFO_ID_SC7280}, |
|||
{QTI_JTAG_ID_SC7280P, QTI_CHIPINFO_ID_SC7280P}, |
|||
{QTI_JTAG_ID_SC8270, QTI_CHIPINFO_ID_SC8270}, |
|||
{QTI_JTAG_ID_SC8270P, QTI_CHIPINFO_ID_SC8270P}, |
|||
{QTI_JTAG_ID_SC7270P, QTI_CHIPINFO_ID_SC7270P}, |
|||
}; |
|||
#endif /* QTI_MAP_CHIPINFO_H */ |
Loading…
Reference in new issue