Author: blueswirl Date: Sun May 2 22:08:43 2010 New Revision: 768 URL: http://tracker.coreboot.org/trac/openbios/changeset/768
Log: Sparc64: add upa-portid properties
Signed-off-by: Blue Swirl blauwirbel@gmail.com
Modified: trunk/openbios-devel/arch/sparc64/openbios.c trunk/openbios-devel/drivers/pci.c
Modified: trunk/openbios-devel/arch/sparc64/openbios.c ============================================================================== --- trunk/openbios-devel/arch/sparc64/openbios.c Sun May 2 22:01:34 2010 (r767) +++ trunk/openbios-devel/arch/sparc64/openbios.c Sun May 2 22:08:43 2010 (r768) @@ -147,6 +147,11 @@ push_str("cpuid"); fword("property");
+ PUSH(0); + fword("encode-int"); + push_str("upa-portid"); + fword("property"); + PUSH(clock_frequency); fword("encode-int"); push_str("clock-frequency");
Modified: trunk/openbios-devel/drivers/pci.c ============================================================================== --- trunk/openbios-devel/drivers/pci.c Sun May 2 22:01:34 2010 (r767) +++ trunk/openbios-devel/drivers/pci.c Sun May 2 22:08:43 2010 (r768) @@ -446,6 +446,8 @@ props[2] = 0x000007ef; props[3] = 0x000007e5; set_property(dev, "interrupts", (char *)props, 4 * sizeof(props[0])); + props[0] = 0x0000001f; + set_property(dev, "upa-portid", (char *)props, 1 * sizeof(props[0])); return 0; }