Happy New Year everyone!
This patchset is a minor rework of Artyom's patchset last year which when
combined with the corresponding QEMU patches fixes NVRAM/RTC access under
The modifications I've made to the orignal patches are:
1) Change NVRAM_BASE from 0x1000 to 0x2000
NetBSD has a bug where it incorrectly calculates the size of the VA mapping
if the NVRAM straddles a page. Fix this by setting the offset to 0x2000 instead
of 0x1000 to ensure the NVRAM mapping is aligned to an 8K page.
2) Fixup the eeprom node properties
With the introduction of the new PCI interrupt map, the format of the ebus
reg property has changed. Hence I've altered the second patch in the series
to bring it in line with the existing ebus devices.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland(a)ilande.co.uk>
Artyom Tarasenko (2):
SPARC64: use MMIO for NVRAM access
SPARC64: add an eeprom node to the device tree
openbios-devel/arch/sparc64/openbios.c | 30 ++++++++----------------------
openbios-devel/drivers/pci.c | 20 ++++++++++++++++++++
2 files changed, 28 insertions(+), 22 deletions(-)