Lines Matching +full:hpd +full:- +full:gpio
28 #include <subdev/gpio.h>
46 static const u8 hpd[] = { 0x07, 0x08, 0x51, 0x52, 0x5e, 0x5f, 0x60 }; in nvkm_conn_ctor() local
47 struct nvkm_gpio *gpio = disp->engine.subdev.device->gpio; in nvkm_conn_ctor() local
51 conn->disp = disp; in nvkm_conn_ctor()
52 conn->index = index; in nvkm_conn_ctor()
53 conn->info = *info; in nvkm_conn_ctor()
54 conn->info.hpd = DCB_GPIO_UNUSED; in nvkm_conn_ctor()
56 CONN_DBG(conn, "type %02x loc %d hpd %02x dp %x di %x sr %x lcdid %x", in nvkm_conn_ctor()
57 info->type, info->location, info->hpd, info->dp, in nvkm_conn_ctor()
58 info->di, info->sr, info->lcdid); in nvkm_conn_ctor()
60 if ((info->hpd = ffs(info->hpd))) { in nvkm_conn_ctor()
61 if (--info->hpd >= ARRAY_SIZE(hpd)) { in nvkm_conn_ctor()
62 CONN_ERR(conn, "hpd %02x unknown", info->hpd); in nvkm_conn_ctor()
65 info->hpd = hpd[info->hpd]; in nvkm_conn_ctor()
67 ret = nvkm_gpio_find(gpio, 0, info->hpd, DCB_GPIO_UNUSED, &func); in nvkm_conn_ctor()
69 CONN_ERR(conn, "func %02x lookup failed, %d", info->hpd, ret); in nvkm_conn_ctor()
73 conn->info.hpd = func.line; in nvkm_conn_ctor()
82 return -ENOMEM; in nvkm_conn_new()