mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Update generic platform
This patch adds .is_railgated() callback for the generic gpu platform. Change-Id: Ief13a6fba82b376aafbe861e8f3823a19bb7f679 Signed-off-by: Arto Merilainen <amerilainen@nvidia.com> Reviewed-on: http://git-master/r/433059 Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User
This commit is contained in:
committed by
Dan Willemsen
parent
75e334fceb
commit
c230159665
@@ -26,6 +26,17 @@
|
||||
#include "hal_gk20a.h"
|
||||
#include "gk20a.h"
|
||||
|
||||
/*
|
||||
* gk20a_generic_is_railgated()
|
||||
*
|
||||
* Check status of gk20a power rail
|
||||
*/
|
||||
|
||||
static bool gk20a_generic_is_railgated(struct platform_device *pdev)
|
||||
{
|
||||
return !tegra_powergate_is_powered(TEGRA_POWERGATE_GPU);
|
||||
}
|
||||
|
||||
/*
|
||||
* gk20a_generic_railgate()
|
||||
*
|
||||
@@ -108,6 +119,7 @@ static int gk20a_generic_late_probe(struct platform_device *dev)
|
||||
struct gk20a_platform gk20a_generic_platform = {
|
||||
.railgate = gk20a_generic_railgate,
|
||||
.unrailgate = gk20a_generic_unrailgate,
|
||||
.is_railgated = gk20a_generic_is_railgated,
|
||||
|
||||
.probe = gk20a_generic_probe,
|
||||
.late_probe = gk20a_generic_late_probe,
|
||||
|
||||
Reference in New Issue
Block a user