Gop.c 855 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /** @file
  2. Others Board's PCD function hook.
  3. Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #include <Uefi.h>
  7. #include <Library/DebugLib.h>
  8. #include <GopConfigLib.h>
  9. //
  10. // Null function for nothing GOP VBT update.
  11. //
  12. VOID
  13. EFIAPI
  14. GopVbtSpecificUpdateNull (
  15. IN CHILD_STRUCT **ChildStructPtr
  16. )
  17. {
  18. return;
  19. }
  20. //
  21. // for CFL U DDR4
  22. //
  23. VOID
  24. EFIAPI
  25. CflUDdr4GopVbtSpecificUpdate(
  26. IN CHILD_STRUCT **ChildStructPtr
  27. )
  28. {
  29. ChildStructPtr[1]->DeviceClass = DISPLAY_PORT_ONLY;
  30. ChildStructPtr[1]->DVOPort = DISPLAY_PORT_B;
  31. ChildStructPtr[2]->DeviceClass = DISPLAY_PORT_HDMI_DVI_COMPATIBLE;
  32. ChildStructPtr[2]->DVOPort = DISPLAY_PORT_C;
  33. ChildStructPtr[2]->AUX_Channel = AUX_CHANNEL_C;
  34. ChildStructPtr[3]->DeviceClass = NO_DEVICE;
  35. }