video: Always compile cache flushing code
authorAlexander Graf <agraf@csgraf.de>
Tue, 3 Jan 2023 21:50:03 +0000 (22:50 +0100)
committerSimon Glass <sjg@chromium.org>
Thu, 1 May 2025 10:32:55 +0000 (04:32 -0600)
commit369c6a6c35ea22e3ff60fac45664962d6350adcc
treee2bc9d8fd976115f5c8c6fbd663d2ad73b89b252
parent70dfd674782adb47a641288925484d6edc8df963
video: Always compile cache flushing code

The dcache flushing code path was conditional on ARM && !DCACHE config
options. However, dcaches exist on other platforms as well and may need
clearing if their driver requires it.

Simplify the compile logic and always enable the dcache flush logic in
the video core. That way, drivers can always rely on it to call the arch
specific callbacks.

This will increase code size for non-ARM platforms with CONFIG_VIDEO=y
slightly.

Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@csgraf.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Link: https://lore.kernel.org/u-boot/20230821135111.3558478-13-alpernebiyasak@gmail.com/
Added workaround for CONFIG_SYS_CACHELINE_SIZE for ibex-ast2700:
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/video/video-uclass.c