mirror of
https://github.com/torvalds/linux.git
synced 2024-11-19 10:31:48 +00:00
8d021d71b3
We received a donation of a Titan which has this useless feature allowing users to control the brightness of the LED behind the logo of NVIDIA. In the true spirit of open source, let's expose that to the users of very expensive cards! This patch hooks up this LED/PWM to the LED subsystem which allows blinking it in sync with cpu/disk/network/whatever activity (heartbeat is quite nice!). Users may also implement some breathing effect or morse code support in the userspace if they feel like it. v2: - surround the use of the LED framework with ifdef CONFIG_LEDS_CLASS v3: - avoid using ifdefs everywhere, follow the recommendations of /doc/Documentation/CodingStyle. Suggested by Emil Velikov. v4 (Ben): - squashed series of fixes from ml Signed-off-by: Martin Peres <martin.peres@free.fr> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
66 lines
1.8 KiB
Makefile
66 lines
1.8 KiB
Makefile
ccflags-y := -Iinclude/drm
|
|
ccflags-y += -I$(src)/include
|
|
ccflags-y += -I$(src)/include/nvkm
|
|
ccflags-y += -I$(src)/nvkm
|
|
ccflags-y += -I$(src)
|
|
|
|
# NVKM - HW resource manager
|
|
#- code also used by various userspace tools/tests
|
|
include $(src)/nvif/Kbuild
|
|
nouveau-y := $(nvif-y)
|
|
|
|
# NVIF - NVKM interface library (NVKM user interface also defined here)
|
|
#- code also used by various userspace tools/tests
|
|
include $(src)/nvkm/Kbuild
|
|
nouveau-y += $(nvkm-y)
|
|
|
|
# DRM - general
|
|
ifdef CONFIG_X86
|
|
nouveau-$(CONFIG_ACPI) += nouveau_acpi.o
|
|
endif
|
|
nouveau-$(CONFIG_DEBUG_FS) += nouveau_debugfs.o
|
|
nouveau-y += nouveau_drm.o
|
|
nouveau-y += nouveau_hwmon.o
|
|
nouveau-$(CONFIG_COMPAT) += nouveau_ioc32.o
|
|
nouveau-$(CONFIG_LEDS_CLASS) += nouveau_led.o
|
|
nouveau-y += nouveau_nvif.o
|
|
nouveau-$(CONFIG_NOUVEAU_PLATFORM_DRIVER) += nouveau_platform.o
|
|
nouveau-y += nouveau_usif.o # userspace <-> nvif
|
|
nouveau-y += nouveau_vga.o
|
|
|
|
# DRM - memory management
|
|
nouveau-y += nouveau_bo.o
|
|
nouveau-y += nouveau_gem.o
|
|
nouveau-y += nouveau_prime.o
|
|
nouveau-y += nouveau_sgdma.o
|
|
nouveau-y += nouveau_ttm.o
|
|
|
|
# DRM - modesetting
|
|
nouveau-$(CONFIG_DRM_NOUVEAU_BACKLIGHT) += nouveau_backlight.o
|
|
nouveau-y += nouveau_connector.o
|
|
nouveau-y += nouveau_display.o
|
|
nouveau-y += nv50_display.o
|
|
nouveau-y += nouveau_dp.o
|
|
nouveau-y += nouveau_fbcon.o
|
|
nouveau-y += nv04_fbcon.o
|
|
nouveau-y += nv50_fbcon.o
|
|
nouveau-y += nvc0_fbcon.o
|
|
|
|
# DRM - command submission
|
|
nouveau-y += nouveau_abi16.o
|
|
nouveau-y += nouveau_chan.o
|
|
nouveau-y += nouveau_dma.o
|
|
nouveau-y += nouveau_fence.o
|
|
nouveau-y += nv04_fence.o
|
|
nouveau-y += nv10_fence.o
|
|
nouveau-y += nv17_fence.o
|
|
nouveau-y += nv50_fence.o
|
|
nouveau-y += nv84_fence.o
|
|
nouveau-y += nvc0_fence.o
|
|
|
|
# DRM - prehistoric modesetting (NV04-G7x)
|
|
nouveau-y += nouveau_bios.o
|
|
include $(src)/dispnv04/Kbuild
|
|
|
|
obj-$(CONFIG_DRM_NOUVEAU) += nouveau.o
|