Commit 2cfad4b0 authored by Ben Skeggs's avatar Ben Skeggs Committed by Dave Airlie
Browse files

drm/nouveau/gpio/tu102-: prepare for GSP-RM

parent c41aebc9
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -21,6 +21,8 @@
 */
#include "priv.h"

#include <subdev/gsp.h>

static void
ga102_gpio_reset(struct nvkm_gpio *gpio, u8 match)
{
@@ -115,5 +117,8 @@ int
ga102_gpio_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
	       struct nvkm_gpio **pgpio)
{
	if (nvkm_gsp_rm(device->gsp))
		return -ENODEV;

	return nvkm_gpio_new_(&ga102_gpio, device, type, inst, pgpio);
}
+5 −0
Original line number Diff line number Diff line
@@ -23,6 +23,8 @@
 */
#include "priv.h"

#include <subdev/gsp.h>

static void
gk104_gpio_intr_stat(struct nvkm_gpio *gpio, u32 *hi, u32 *lo)
{
@@ -71,5 +73,8 @@ int
gk104_gpio_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
	       struct nvkm_gpio **pgpio)
{
	if (nvkm_gsp_rm(device->gsp))
		return -ENODEV;

	return nvkm_gpio_new_(&gk104_gpio, device, type, inst, pgpio);
}