mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Author: Alexander Graf <alex@csgraf.de>
Expose NVRAM compatibility Linux requires the NVRAM to expose a 'nvram,flash' compatibility in the device tree. Let's expose it so it's happy. v2 adds a NEWWORLD macro to protect nvram,flash getting exposed in oldworld macs. Signed-off-by: Alexander Graf <alex@csgraf.de> Signed-off-by: Laurent Vivier <Laurent@vivier.eu> git-svn-id: svn://coreboot.org/openbios/openbios-devel@465 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
committed by
Laurent Vivier
parent
5973871ed2
commit
4578c8ae20
@@ -75,6 +75,11 @@ int is_oldworld(void)
|
||||
return machine_id == ARCH_HEATHROW;
|
||||
}
|
||||
|
||||
int is_newworld(void)
|
||||
{
|
||||
return machine_id == ARCH_MAC99;
|
||||
}
|
||||
|
||||
static const pci_arch_t known_arch[] = {
|
||||
[ARCH_PREP] = { "PREP", PCI_VENDOR_ID_MOTOROLA,
|
||||
PCI_DEVICE_ID_MOTOROLA_RAVEN,
|
||||
|
||||
Reference in New Issue
Block a user