OSDN Git Service

drm/ast: Add BMC virtual connector
authorJocelyn Falempe <jfalempe@redhat.com>
Thu, 13 Jul 2023 13:41:30 +0000 (15:41 +0200)
committerJocelyn Falempe <jfalempe@redhat.com>
Fri, 28 Jul 2023 15:08:14 +0000 (17:08 +0200)
commite329cb53b45da475966c4b2e49f6a4a430f307fa
tree0796f865313476c1acf07bc8e4e7fafcec0ec90d
parentaaf40405630a1a90f9af766497150198f4557851
drm/ast: Add BMC virtual connector

Most aspeed devices have a BMC, which allows to remotely see the screen.
Also in the common use case, those servers don't have a display connected.
So add a Virtual connector, to reflect that even if no display is
connected, the framebuffer can still be seen remotely.
This prepares the work to implement a detect_ctx() for the Display port
connector.

v4: call drm_add_modes_noedid() with 4096x4096 (Thomas Zimmermann)
    remove useless struct field init to 0 (Thomas Zimmermann)
    don't use drm_simple_encoder_init() (Thomas Zimmermann)
    inline ast_bmc_connector_init() (Thomas Zimmermann)

Fixes: fae7d186403e ("drm/probe-helper: Default to 640x480 if no EDID on DP")
Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20230713134316.332502-1-jfalempe@redhat.com
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_mode.c