Submitter | Uwe Hermann |
---|---|
Date | 2009-10-26 14:30:17 |
Message ID | <20091026143017.GW22827@greenwood> |
Download | mbox | patch |
Permalink | /patch/489/ |
State | Accepted |
Headers | show |
Comments
Uwe Hermann wrote: > > then I think VGA_BIOS_FILE should be dropped, because the VGA BIOS > > only really has a well known filename for QEMU. > > No, not really. For most users there is a useful per-board default > file name, namely the one that you get when you do > > awardeco bios.bin -xa .. > the file name for the VGA blob as well as the PCI ID defaults will > already be correct for his or her board, which I find is very > user-friendly. Agree! > > Can Kconfig deal with a single value being set in more than one > > place? > > Yes (except for "choice" fields, but a workaround with additional > variables can be done for those too). > > > > How is precedence determined? Even if it can, that method > > feels kind of ugly. > > Why is that ugly? Because it is not immediately obvious (to us, right now) what the precedence is. > We have variables that have sane defaults and can be overridden > per-chipset or per-board (or by the user in menuconfig if needed). > It makes perfect sense, IMHO. Except it's not quite clear how it works.. That doesn't make sense. > So mainboard values are included first, then northbridge ones. Setting a > default PCI ID in i945, and another one in Kontron 986LCD-M/mITX worked > fine in a quick test, i.e. the per-board one overrides the northbridge > one. This would mean the first definition is used, later ones don't > override (which sounds a bit strange, but maybe I missed something, it > was just a quick test). It could well be that this is how it works, but we have to know if it is a rather firm design property of confauto, or if it's just a coincidence. > Allow per-northbridge and per-board VGA BIOS file name and PCI ID defaults. > > Of course, the user can still override those defaults, if needed. > > Add defaults for the VIA pc2500e and the Kontron 986LCD-M/mITX board. > > Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Peter Stuge <peter@stuge.se> > +++ src/Kconfig (Arbeitskopie) > @@ -379,7 +379,7 @@ > The path and filename of the file to use as VGA BIOS. > > config FALLBACK_VGA_BIOS_ID > - string "VGA BIOS ID" > + string "VGA BIOS PCI IDs" > depends on VGA_BIOS > default "1106,3230" > help Something like "VGA PCI ID" or "VGA PCI device ID" please. The ID is not a property of the BIOS but of the hardware device that this BIOS should be attached to. //Peter
On Fri, Oct 30, 2009 at 03:33:22AM +0100, Peter Stuge wrote: > Acked-by: Peter Stuge <peter@stuge.se> Thanks, r4891. > > +++ src/Kconfig (Arbeitskopie) > > @@ -379,7 +379,7 @@ > > The path and filename of the file to use as VGA BIOS. > > > > config FALLBACK_VGA_BIOS_ID > > - string "VGA BIOS ID" > > + string "VGA BIOS PCI IDs" > > depends on VGA_BIOS > > default "1106,3230" > > help > > Something like "VGA PCI ID" or "VGA PCI device ID" please. The ID is > not a property of the BIOS but of the hardware device that this BIOS > should be attached to. Fixed. I also took the freedom to add the IDs and file name for the MSI MS-6178 which I know about and tested on hardware. Uwe.
Patch
Allow per-northbridge and per-board VGA BIOS file name and PCI ID defaults. Of course, the user can still override those defaults, if needed. Add defaults for the VIA pc2500e and the Kontron 986LCD-M/mITX board. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Index: src/Kconfig =================================================================== --- src/Kconfig (Revision 4855) +++ src/Kconfig (Arbeitskopie) @@ -379,7 +379,7 @@ The path and filename of the file to use as VGA BIOS. config FALLBACK_VGA_BIOS_ID - string "VGA BIOS ID" + string "VGA BIOS PCI IDs" depends on VGA_BIOS default "1106,3230" help Index: src/mainboard/kontron/986lcd-m/Kconfig =================================================================== --- src/mainboard/kontron/986lcd-m/Kconfig (Revision 4855) +++ src/mainboard/kontron/986lcd-m/Kconfig (Arbeitskopie) @@ -60,3 +60,9 @@ int default 2 depends on BOARD_KONTRON_986LCD_M + +config FALLBACK_VGA_BIOS_FILE + string + default "amipci_01.20" + depends on BOARD_KONTRON_986LCD_M + Index: src/mainboard/via/pc2500e/Kconfig =================================================================== --- src/mainboard/via/pc2500e/Kconfig (Revision 4855) +++ src/mainboard/via/pc2500e/Kconfig (Arbeitskopie) @@ -47,3 +47,13 @@ default 0xaa51 depends on BOARD_VIA_PC2500E +config FALLBACK_VGA_BIOS_FILE + string + default "M14CRT.ROM" + depends on BOARD_VIA_PC2500E + +config FALLBACK_VGA_BIOS_ID + string + default "1106,3344" + depends on BOARD_VIA_PC2500E + Index: src/northbridge/intel/i945/Kconfig =================================================================== --- src/northbridge/intel/i945/Kconfig (Revision 4855) +++ src/northbridge/intel/i945/Kconfig (Arbeitskopie) @@ -20,3 +20,9 @@ config NORTHBRIDGE_INTEL_I945 bool select HAVE_HIGH_TABLES + +config FALLBACK_VGA_BIOS_ID + string + default "8086,27a2" + depends on NORTHBRIDGE_INTEL_I945 +