Add xhcbios and ahcibios rom handling
authorefdesign98 <efdesign98@gmail.com>
Thu, 21 Jul 2011 01:59:22 +0000 (19:59 -0600)
committerMarc Jones <marcj303@gmail.com>
Fri, 22 Jul 2011 18:02:22 +0000 (20:02 +0200)
This change adds xhci and ahci bios rom handling that
is similar to the vgabios rom handling in the arch/x86
Makefile.inc to the Persimmon and Torpedo mainboards.
It also adds the basis for AHCI BIOS rom handling to
the Persimmon Kconfig.

Change-Id: I527a906323ae483cfa2ca0785f3adb43e88fd84b
Signed-off-by: Frank Vibrans <frank.vibrans@amd.com>
Signed-off-by: efdesign98 <efdesign98@gmail.com>
Reviewed-on: http://review.coreboot.org/109
Tested-by: build bot (Jenkins)
Reviewed-by: Marc Jones <marcj303@gmail.com>
src/arch/x86/Makefile.inc [changed mode: 0644->0755]
src/mainboard/amd/persimmon/Kconfig
src/mainboard/amd/persimmon/Makefile.inc
src/mainboard/amd/torpedo/Makefile.inc

old mode 100644 (file)
new mode 100755 (executable)
index 034984c80f4d1d58226bb79f31f3e3c21de200a5..c4eac67ea4e1d2f8e6e1a3f6bf7a8e4be23c9274 100644 (file)
@@ -119,6 +119,20 @@ config VGA_BIOS_ID
         string
         default "1002,9802"
 
+config AHCI_BIOS
+       bool
+       default n
+
+#config AHCI_BIOS_FILE
+#      string "AHCI ROM path and filename"
+#      depends on AHCI_BIOS
+#      default "rom/ahci/sb900.bin"
+
+config AHCI_BIOS_ID
+       string "AHCI device PCI IDs"
+       depends on AHCI_BIOS
+       default "1002,4391"
+
 config DRIVERS_PS2_KEYBOARD
        bool
        default n
index 0f17032e4c9584092c7826b2f24e3424c74672a0..de3564ac3a83d22a6abc173bbaeb8c9b92d5eb05 100644 (file)
 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 #
 
+ifeq ($(CONFIG_AHCI_BIOS),y)
+stripped_ahcibios_id = $(call strip_quotes,$(CONFIG_AHCI_BIOS_ID))
+cbfs-files-$(CONFIG_AHCI_BIOS) += pci$(stripped_ahcibios_id).rom
+pci$(stripped_ahcibios_id).rom-file := $(call strip_quotes,$(CONFIG_AHCI_BIOS_FILE))
+pci$(stripped_ahcibios_id).rom-type := optionrom
+endif
+
 romstage-y += buildOpts.c
 romstage-y += agesawrapper.c
 romstage-y += dimmSpd.c
index 051d93668fdbabb6111d048242883f56d0e66346..1a7dc95311c679ce35e14ef25d9433ef46658879 100755 (executable)
 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 #
 
+ifeq ($(CONFIG_AHCI_BIOS),y)
+stripped_ahcibios_id = $(call strip_quotes,$(CONFIG_AHCI_BIOS_ID))
+cbfs-files-$(CONFIG_AHCI_BIOS) += pci$(stripped_ahcibios_id).rom
+pci$(stripped_ahcibios_id).rom-file := $(call strip_quotes,$(CONFIG_AHCI_BIOS_FILE))
+pci$(stripped_ahcibios_id).rom-type := optionrom
+endif
+
+ifeq ($(CONFIG_XHC_BIOS),y)
+stripped_xhcbios_id = $(call strip_quotes,$(CONFIG_XHC_BIOS_ID))
+cbfs-files-$(CONFIG_XHC_BIOS) += pci$(stripped_xhcbios_id).rom
+pci$(stripped_xhcbios_id).rom-file := $(call strip_quotes,$(CONFIG_XHC_BIOS_FILE))
+pci$(stripped_xhcbios_id).rom-type := optionrom
+endif
+
 romstage-y += buildOpts.c
 romstage-y += agesawrapper.c
 romstage-y += dimmSpd.c