Displaying 6 results from an estimated 6 matches for "nouveau_led_set_bright".
2016 Aug 22
10
[PATCH v2] drm/nouveau: add a LED driver for the NVIDIA logo
...>dev;
+	struct nouveau_drm *drm = nouveau_drm(drm_dev);
+	struct nvif_object *device = &drm->device.object;
+	u32 div, duty;
+
+	div =  nvif_rd32(device, 0x61c880) & 0x00ffffff;
+	duty = nvif_rd32(device, 0x61c884) & 0x00ffffff;
+
+	return duty * LED_FULL / div;
+}
+
+static void
+nouveau_led_set_brightness(struct led_classdev *led, enum led_brightness value)
+{
+	struct drm_device *drm_dev = container_of(led, struct nouveau_led, led)->dev;
+	struct nouveau_drm *drm = nouveau_drm(drm_dev);
+	struct nvif_object *device = &drm->device.object;
+
+	u32 input_clk = 27e6; /* PDISPLAY.SOR[1].PW...
2016 Aug 22
0
[PATCH v2] drm/nouveau: add a LED driver for the NVIDIA logo
...>dev;
+	struct nouveau_drm *drm = nouveau_drm(drm_dev);
+	struct nvif_object *device = &drm->device.object;
+	u32 div, duty;
+
+	div =  nvif_rd32(device, 0x61c880) & 0x00ffffff;
+	duty = nvif_rd32(device, 0x61c884) & 0x00ffffff;
+
+	return duty * LED_FULL / div;
+}
+
+static void
+nouveau_led_set_brightness(struct led_classdev *led, enum led_brightness value)
+{
+	struct drm_device *drm_dev = container_of(led, struct nouveau_led, led)->dev;
+	struct nouveau_drm *drm = nouveau_drm(drm_dev);
+	struct nvif_object *device = &drm->device.object;
+
+	u32 input_clk = 27e6; /* PDISPLAY.SOR[1].PW...
2016 May 03
0
[PATCH] drm/nouveau: add a LED driver for the NVIDIA logo
...bject *device = &drm->device.object;
> +       u32 div, duty;
> +
> +       div =  nvif_rd32(device, 0x61c880) & 0x00ffffff;
> +       duty = nvif_rd32(device, 0x61c884) & 0x00ffffff;
> +
> +       return duty * LED_FULL / div;
> +}
> +
> +static void
> +nouveau_led_set_brightness(struct led_classdev *led, enum led_brightness value)
> +{
> +       struct drm_device *drm_dev = container_of(led, struct nouveau_led, led)->dev;
> +       struct nouveau_drm *drm = nouveau_drm(drm_dev);
> +       struct nvif_object *device = &drm->device.object;
> +
&g...
2016 Aug 23
0
[PATCH v2] drm/nouveau: add a LED driver for the NVIDIA logo
...bject *device = &drm->device.object;
> +       u32 div, duty;
> +
> +       div =  nvif_rd32(device, 0x61c880) & 0x00ffffff;
> +       duty = nvif_rd32(device, 0x61c884) & 0x00ffffff;
> +
> +       return duty * LED_FULL / div;
> +}
> +
> +static void
> +nouveau_led_set_brightness(struct led_classdev *led, enum led_brightness value)
> +{
> +       struct drm_device *drm_dev = container_of(led, struct nouveau_led, led)->dev;
> +       struct nouveau_drm *drm = nouveau_drm(drm_dev);
> +       struct nvif_object *device = &drm->device.object;
> +
&g...
2016 May 07
0
[PATCH] drm/nouveau: add a LED driver for the NVIDIA logo
...bject *device = &drm->device.object;
> +       u32 div, duty;
> +
> +       div =  nvif_rd32(device, 0x61c880) & 0x00ffffff;
> +       duty = nvif_rd32(device, 0x61c884) & 0x00ffffff;
> +
> +       return duty * LED_FULL / div;
> +}
> +
> +static void
> +nouveau_led_set_brightness(struct led_classdev *led, enum led_brightness value)
> +{
> +       struct drm_device *drm_dev = container_of(led, struct nouveau_led, led)->dev;
> +       struct nouveau_drm *drm = nouveau_drm(drm_dev);
> +       struct nvif_object *device = &drm->device.object;
> +
&g...
2016 Aug 23
1
[PATCH v2] drm/nouveau: add a LED driver for the NVIDIA logo
...ct;
>> +       u32 div, duty;
>> +
>> +       div =  nvif_rd32(device, 0x61c880) & 0x00ffffff;
>> +       duty = nvif_rd32(device, 0x61c884) & 0x00ffffff;
>> +
>> +       return duty * LED_FULL / div;
>> +}
>> +
>> +static void
>> +nouveau_led_set_brightness(struct led_classdev *led, enum led_brightness value)
>> +{
>> +       struct drm_device *drm_dev = container_of(led, struct nouveau_led, led)->dev;
>> +       struct nouveau_drm *drm = nouveau_drm(drm_dev);
>> +       struct nvif_object *device = &drm->device.o...