[OpenBIOS] [commit] r1330 - trunk/openbios-devel/drivers

repository service svn at openbios.org
Mon Mar 9 10:37:52 CET 2015


Author: mcayland
Date: Mon Mar  9 10:37:51 2015
New Revision: 1330
URL: http://tracker.coreboot.org/trac/openbios/changeset/1330

Log:
SPARC64: add an eeprom node to the device tree

Add eeprom node to the device tree to make device visible for
the guest OS.

Signed-off-by: Artyom Tarasenko <atar4qemu at gmail.com>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>

Modified:
   trunk/openbios-devel/drivers/pci.c

Modified: trunk/openbios-devel/drivers/pci.c
==============================================================================
--- trunk/openbios-devel/drivers/pci.c	Mon Mar  9 10:37:48 2015	(r1329)
+++ trunk/openbios-devel/drivers/pci.c	Mon Mar  9 10:37:51 2015	(r1330)
@@ -831,6 +831,26 @@
 
     set_property(dev, "ranges", (char *)props, ncells * sizeof(props[0]));
 
+    /*  Build eeprom node */
+    fword("new-device");
+    PUSH(0x14);
+    fword("encode-int");
+    PUSH(0x2000);
+    fword("encode-int");
+    fword("encode+");
+    PUSH(0x2000);
+    fword("encode-int");
+    fword("encode+");
+    push_str("reg");
+    fword("property");
+
+    push_str("mk48t59");
+    fword("model");
+
+    push_str("eeprom");
+    fword("device-name");
+    fword("finish-device");
+
 #ifdef CONFIG_DRIVER_FLOPPY
     ob_floppy_init(config->path, "fdthree", 0x3f0ULL, 0);
 #endif



More information about the OpenBIOS mailing list