mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-08-28 00:29:57 +00:00

Adding adaption/glue layer where the I2C host adapter (Synopsys DesignWare I2C adapter) and the I2C clients (the microcontroller units) are enumerated. The microcontroller units (MCU) that are attached to the GPU depend on the OEM. The initially supported MCU will be the Add-In Management Controller (AMC). Co-developed-by: Michael J. Ruhl <michael.j.ruhl@intel.com> Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com> Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com> Link: https://lore.kernel.org/r/20250701122252.2590230-4-heikki.krogerus@linux.intel.com Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> [Rodrigo fixed the co-developed tags and SPDX format in the .c file]
25 lines
655 B
C
25 lines
655 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2024 Intel Corporation
|
|
*/
|
|
#ifndef _XE_PMT_H_
|
|
#define _XE_PMT_H_
|
|
|
|
#include "xe_regs.h"
|
|
|
|
#define BMG_PMT_BASE_OFFSET 0xDB000
|
|
#define BMG_DISCOVERY_OFFSET (SOC_BASE + BMG_PMT_BASE_OFFSET)
|
|
|
|
#define PUNIT_TELEMETRY_GUID XE_REG(BMG_DISCOVERY_OFFSET + 0x4)
|
|
#define BMG_ENERGY_STATUS_PMT_OFFSET (0x30)
|
|
#define ENERGY_PKG REG_GENMASK64(31, 0)
|
|
#define ENERGY_CARD REG_GENMASK64(63, 32)
|
|
|
|
#define BMG_TELEMETRY_BASE_OFFSET 0xE0000
|
|
#define BMG_TELEMETRY_OFFSET (SOC_BASE + BMG_TELEMETRY_BASE_OFFSET)
|
|
|
|
#define SG_REMAP_INDEX1 XE_REG(SOC_BASE + 0x08)
|
|
#define SG_REMAP_BITS REG_GENMASK(31, 24)
|
|
|
|
#endif
|