x86 realmode: Set up the 8254 timer before running option rom
If the 8254 is not set up, the external graphics option rom hangs and never returns. The code is tested on AMD/bettong. Change-Id: I0022de9d9a275a7d4b7a331ae7fcf793b9f4c5f5 Signed-off-by: Zheng Bao <zheng.bao@amd.com> Signed-off-by: Zheng Bao <fishbaozi@gmail.com> Reviewed-on: http://review.coreboot.org/10903 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones <marc.jones@se-eng.com>
This commit is contained in:
parent
fe234c4d2a
commit
741a0dd89c
|
@ -31,6 +31,7 @@
|
|||
#include <device/pci_ids.h>
|
||||
#include <lib/jpeg.h>
|
||||
#include <pc80/i8259.h>
|
||||
#include <pc80/i8254.h>
|
||||
#include <string.h>
|
||||
#include <vbe.h>
|
||||
|
||||
|
@ -326,6 +327,7 @@ void run_bios(struct device *dev, unsigned long addr)
|
|||
* in some option roms.
|
||||
*/
|
||||
setup_i8259();
|
||||
setup_i8254();
|
||||
|
||||
/* Set up some legacy information in the F segment */
|
||||
setup_rombios();
|
||||
|
|
Loading…
Reference in New Issue