j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
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@gmail.com Signed-off-by: Mark Cave-Ayland mark.cave-ayland@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