aboutsummaryrefslogtreecommitdiff
path: root/arch/sandbox/include/asm/test.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-04-08 11:20:47 -0400
committerTom Rini <trini@konsulko.com>2023-04-08 11:20:47 -0400
commit187c7aba221f633dffa2f33bd582147059ed24f3 (patch)
tree0d6f97eae7f84c3a4beeb5ddac2ebe18c353907b /arch/sandbox/include/asm/test.h
parent965f74b5b3602fe681421bda5676c7300ee3975e (diff)
parentcc54a924cd28a2d1b0f0035bd7d78532b6bc4ad8 (diff)
Merge tag 'video-20230407' of https://source.denx.de/u-boot/custodians/u-boot-video
- fix building sandbox without SDL - improve tegra DC driver to work with panel ops and implement native 180 degree panel rotation support - add T30 support to tegra DC driver - add DSI driver (based on mainline Linux one with minor adjustments, only T30 tested) - add get_display_timing ops to simple panel driver - extend simple panel driver to use it for MIPI DSI panels which do not require additional DSI commands for setup
Diffstat (limited to 'arch/sandbox/include/asm/test.h')
-rw-r--r--arch/sandbox/include/asm/test.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/test.h b/arch/sandbox/include/asm/test.h
index 4853dc948f..e482271fe9 100644
--- a/arch/sandbox/include/asm/test.h
+++ b/arch/sandbox/include/asm/test.h
@@ -300,6 +300,7 @@ void sandbox_cros_ec_set_test_flags(struct udevice *dev, uint flags);
*/
int sandbox_cros_ec_get_pwm_duty(struct udevice *dev, uint index, uint *duty);
+#if IS_ENABLED(CONFIG_SANDBOX_SDL)
/**
* sandbox_sdl_set_bpp() - Set the depth of the sandbox display
*
@@ -315,6 +316,13 @@ int sandbox_cros_ec_get_pwm_duty(struct udevice *dev, uint index, uint *duty);
* after the change
*/
int sandbox_sdl_set_bpp(struct udevice *dev, enum video_log2_bpp l2bpp);
+#else
+static inline int sandbox_sdl_set_bpp(struct udevice *dev,
+ enum video_log2_bpp l2bpp)
+{
+ return -ENOSYS;
+}
+#endif
/**
* sandbox_set_fake_efi_mgr_dev() - Control EFI bootmgr producing valid bootflow