mirror of
https://github.com/torvalds/linux.git
synced 2026-04-22 16:53:59 -04:00
In A6x family (which is a pretty big one), there are separate adreno_func definitions for each sub-generations. To streamline the identification of the correct struct for a gpu, move it to the catalogue and move the gpu_init routine to struct adreno_gpu_funcs. Signed-off-by: Akhil P Oommen <akhilpo@oss.qualcomm.com> Patchwork: https://patchwork.freedesktop.org/patch/689003/ Message-ID: <20251118-kaana-gpu-support-v4-6-86eeb8e93fb6@oss.qualcomm.com> Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
49 lines
1.1 KiB
C
49 lines
1.1 KiB
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* Copyright (C) 2013-2014 Red Hat
|
|
* Author: Rob Clark <robdclark@gmail.com>
|
|
*
|
|
* Copyright (c) 2014,2017 The Linux Foundation. All rights reserved.
|
|
*/
|
|
|
|
#include "adreno_gpu.h"
|
|
#include "a4xx_gpu.h"
|
|
|
|
static const struct adreno_info a4xx_gpus[] = {
|
|
{
|
|
.chip_ids = ADRENO_CHIP_IDS(0x04000500),
|
|
.family = ADRENO_4XX,
|
|
.revn = 405,
|
|
.fw = {
|
|
[ADRENO_FW_PM4] = "a420_pm4.fw",
|
|
[ADRENO_FW_PFP] = "a420_pfp.fw",
|
|
},
|
|
.gmem = SZ_256K,
|
|
.inactive_period = DRM_MSM_INACTIVE_PERIOD,
|
|
.funcs = &a4xx_gpu_funcs,
|
|
}, {
|
|
.chip_ids = ADRENO_CHIP_IDS(0x04020000),
|
|
.family = ADRENO_4XX,
|
|
.revn = 420,
|
|
.fw = {
|
|
[ADRENO_FW_PM4] = "a420_pm4.fw",
|
|
[ADRENO_FW_PFP] = "a420_pfp.fw",
|
|
},
|
|
.gmem = (SZ_1M + SZ_512K),
|
|
.inactive_period = DRM_MSM_INACTIVE_PERIOD,
|
|
.funcs = &a4xx_gpu_funcs,
|
|
}, {
|
|
.chip_ids = ADRENO_CHIP_IDS(0x04030002),
|
|
.family = ADRENO_4XX,
|
|
.revn = 430,
|
|
.fw = {
|
|
[ADRENO_FW_PM4] = "a420_pm4.fw",
|
|
[ADRENO_FW_PFP] = "a420_pfp.fw",
|
|
},
|
|
.gmem = (SZ_1M + SZ_512K),
|
|
.inactive_period = DRM_MSM_INACTIVE_PERIOD,
|
|
.funcs = &a4xx_gpu_funcs,
|
|
}
|
|
};
|
|
DECLARE_ADRENO_GPULIST(a4xx);
|