Commit 76356a96 authored by Joel Stanley's avatar Joel Stanley Committed by Daniel Vetter

drm: aspeed: Clean up Kconfig options

The GFX IP is inside of the ASPEED BMC SoC so there is little use
enabling it on a kernel that does not support ASPEED.

When building with COMPILE_TEST the architecture many not have CMA
support, so to avoid breaking the build we only select these options if
the architecture supports the contiguous allocator.

I suspect the DRM_PANEL came from a cut/paste error.

Fixes: 4f2a8f58 ("drm: Add ASPEED GFX driver")
Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarJoel Stanley <joel@jms.id.au>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190405081117.27339-1-joel@jms.id.au
parent 5e498abf
config DRM_ASPEED_GFX config DRM_ASPEED_GFX
tristate "ASPEED BMC Display Controller" tristate "ASPEED BMC Display Controller"
depends on DRM && OF depends on DRM && OF
depends on (COMPILE_TEST || ARCH_ASPEED)
select DRM_KMS_HELPER select DRM_KMS_HELPER
select DRM_KMS_CMA_HELPER select DRM_KMS_CMA_HELPER
select DRM_PANEL select DMA_CMA if HAVE_DMA_CONTIGUOUS
select DMA_CMA select CMA if HAVE_DMA_CONTIGUOUS
select CMA
select MFD_SYSCON select MFD_SYSCON
help help
Chose this option if you have an ASPEED AST2500 SOC Display Chose this option if you have an ASPEED AST2500 SOC Display
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment