diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2022-10-06 11:53:52 +0200 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2022-10-07 13:47:09 +0200 |
commit | ed24ed48be13fb8a866862f371614d546172cf6f (patch) | |
tree | 81d58379532e59b86c298222a09fb4bbc29813af /drivers/gpu/drm/udl/udl_proto.h | |
parent | 9869e40df1a72eede80b4816d6e522e57a6fd97b (diff) | |
download | linux-ed24ed48be13fb8a866862f371614d546172cf6f.tar.gz |
drm/udl: Add register constants for color depth
Add the register constants for setting the color depth. The driver only uses 16bpp. No functional changes. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20221006095355.23579-14-tzimmermann@suse.de
Diffstat (limited to 'drivers/gpu/drm/udl/udl_proto.h')
-rw-r--r-- | drivers/gpu/drm/udl/udl_proto.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/udl/udl_proto.h b/drivers/gpu/drm/udl/udl_proto.h index 5a6c960bd10d..22bc1ae8420c 100644 --- a/drivers/gpu/drm/udl/udl_proto.h +++ b/drivers/gpu/drm/udl/udl_proto.h @@ -3,7 +3,10 @@ #ifndef UDL_PROTO_H #define UDL_PROTO_H +/* Color depth */ +#define UDL_REG_COLORDEPTH 0x00 #define UDL_COLORDEPTH_16BPP 0 +#define UDL_COLORDEPTH_24BPP 1 /* Display-mode settings */ #define UDL_REG_XDISPLAYSTART 0x01 |