Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: add SMUIO 11.0.6 register headers

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Likun Gao and committed by
Alex Deucher
2a53291e e1edaeaf

+76
+35
drivers/gpu/drm/amd/include/asic_reg/smuio/smuio_11_0_6_offset.h
··· 1 + /* 2 + * Copyright (C) 2020 Advanced Micro Devices, Inc. 3 + * 4 + * Permission is hereby granted, free of charge, to any person obtaining a 5 + * copy of this software and associated documentation files (the "Software"), 6 + * to deal in the Software without restriction, including without limitation 7 + * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 + * and/or sell copies of the Software, and to permit persons to whom the 9 + * Software is furnished to do so, subject to the following conditions: 10 + * 11 + * The above copyright notice and this permission notice shall be included 12 + * in all copies or substantial portions of the Software. 13 + * 14 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 15 + * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 + * THE COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18 + * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 + */ 21 + #ifndef _smuio_11_0_6_OFFSET_HEADER 22 + #define _smuio_11_0_6_OFFSET_HEADER 23 + 24 + 25 + 26 + // addressBlock: smuio_smuio_SmuSmuioDec 27 + // base address: 0x5a000 28 + #define mmCGTT_ROM_CLK_CTRL0 0x00e4 29 + #define mmCGTT_ROM_CLK_CTRL0_BASE_IDX 0 30 + #define mmROM_INDEX 0x00e5 31 + #define mmROM_INDEX_BASE_IDX 0 32 + #define mmROM_DATA 0x00e6 33 + #define mmROM_DATA_BASE_IDX 0 34 + 35 + #endif
+41
drivers/gpu/drm/amd/include/asic_reg/smuio/smuio_11_0_6_sh_mask.h
··· 1 + /* 2 + * Copyright (C) 2020 Advanced Micro Devices, Inc. 3 + * 4 + * Permission is hereby granted, free of charge, to any person obtaining a 5 + * copy of this software and associated documentation files (the "Software"), 6 + * to deal in the Software without restriction, including without limitation 7 + * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 + * and/or sell copies of the Software, and to permit persons to whom the 9 + * Software is furnished to do so, subject to the following conditions: 10 + * 11 + * The above copyright notice and this permission notice shall be included 12 + * in all copies or substantial portions of the Software. 13 + * 14 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 15 + * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 + * THE COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18 + * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 + */ 21 + #ifndef _smuio_11_0_6_SH_MASK_HEADER 22 + #define _smuio_11_0_6_SH_MASK_HEADER 23 + 24 + 25 + //CGTT_ROM_CLK_CTRL0 26 + #define CGTT_ROM_CLK_CTRL0__ON_DELAY__SHIFT 0x0 27 + #define CGTT_ROM_CLK_CTRL0__OFF_HYSTERESIS__SHIFT 0x4 28 + #define CGTT_ROM_CLK_CTRL0__SOFT_OVERRIDE1__SHIFT 0x1e 29 + #define CGTT_ROM_CLK_CTRL0__SOFT_OVERRIDE0__SHIFT 0x1f 30 + #define CGTT_ROM_CLK_CTRL0__ON_DELAY_MASK 0x0000000FL 31 + #define CGTT_ROM_CLK_CTRL0__OFF_HYSTERESIS_MASK 0x00000FF0L 32 + #define CGTT_ROM_CLK_CTRL0__SOFT_OVERRIDE1_MASK 0x40000000L 33 + #define CGTT_ROM_CLK_CTRL0__SOFT_OVERRIDE0_MASK 0x80000000L 34 + //ROM_INDEX 35 + #define ROM_INDEX__ROM_INDEX__SHIFT 0x0 36 + #define ROM_INDEX__ROM_INDEX_MASK 0x01FFFFFFL 37 + //ROM_DATA 38 + #define ROM_DATA__ROM_DATA__SHIFT 0x0 39 + #define ROM_DATA__ROM_DATA_MASK 0xFFFFFFFFL 40 + 41 + #endif