drm/radeon: add a asic callback to get the xclk
This is required to get the reference clock used by the gfx engine for things like timestamps. Fixes support for GL extensions the use timestamps on certain boards. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -109,6 +109,19 @@ void r600_fini(struct radeon_device *rdev);
|
||||
void r600_irq_disable(struct radeon_device *rdev);
|
||||
static void r600_pcie_gen2_enable(struct radeon_device *rdev);
|
||||
|
||||
/**
|
||||
* r600_get_xclk - get the xclk
|
||||
*
|
||||
* @rdev: radeon_device pointer
|
||||
*
|
||||
* Returns the reference clock used by the gfx engine
|
||||
* (r6xx, IGPs, APUs).
|
||||
*/
|
||||
u32 r600_get_xclk(struct radeon_device *rdev)
|
||||
{
|
||||
return rdev->clock.spll.reference_freq;
|
||||
}
|
||||
|
||||
/* get temperature in millidegrees */
|
||||
int rv6xx_get_temp(struct radeon_device *rdev)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user