]> git.proxmox.com Git - mirror_edk2.git/blobdiff - CorebootModulePkg/Include/Coreboot.h
CorebootPayloadPkg/PlatformBdsLib: Pass more serial parameters
[mirror_edk2.git] / CorebootModulePkg / Include / Coreboot.h
index f2f18be2ccbc77af9493a8dfcca9a6d7c5f6d99d..784e0b128a7cd0b633c444c8cf9374bd5598eae0 100644 (file)
@@ -80,7 +80,7 @@ struct imd_root {
   UINT32 max_entries;\r
   UINT32 num_entries;\r
   UINT32 flags;\r
-  UINT32 entry_align;        \r
+  UINT32 entry_align;
   UINT32 max_offset;\r
   struct imd_entry entries[0];\r
 };\r
@@ -165,6 +165,21 @@ struct cb_serial {
   UINT32 type;\r
   UINT32 baseaddr;\r
   UINT32 baud;\r
+  UINT32 regwidth;
+
+  // Crystal or input frequency to the chip containing the UART.
+  // Provide the board specific details to allow the payload to
+  // initialize the chip containing the UART and make independent
+  // decisions as to which dividers to select and their values
+  // to eventually arrive at the desired console baud-rate.
+  UINT32 input_hertz;
+
+  // UART PCI address: bus, device, function
+  // 1 << 31 - Valid bit, PCI UART in use
+  // Bus << 20
+  // Device << 15
+  // Function << 12
+  UINT32 uart_pci_addr;
 };\r
 \r
 #define CB_TAG_CONSOLE       0x00010\r