From 8099aeffc3728c7064db1c39d22b2915ccf24fee Mon Sep 17 00:00:00 2001 From: "Jayachandran C." Date: Tue, 21 Aug 2012 09:37:23 +0000 Subject: [PATCH] Add correct range parameter in XLP DTS r239274 added support for ranges. Update XLP DTS to provide the correct range parameter for the XLP SoC bus. Also fix bus_space_map method for XLP bus space. Submitted by: Sreekanth M. --- sys/boot/fdt/dts/xlp-basic.dts | 2 +- sys/mips/nlm/bus_space_rmi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/boot/fdt/dts/xlp-basic.dts b/sys/boot/fdt/dts/xlp-basic.dts index 808fea818ad1..a66c11d67e17 100644 --- a/sys/boot/fdt/dts/xlp-basic.dts +++ b/sys/boot/fdt/dts/xlp-basic.dts @@ -44,7 +44,7 @@ #address-cells = <1>; #size-cells = <1>; compatible = "simple-bus"; - ranges = <0x0>; + ranges = <0x0 0x18000000 0x04000000>; bus-frequency = <0>; serial0: serial@30100 { diff --git a/sys/mips/nlm/bus_space_rmi.c b/sys/mips/nlm/bus_space_rmi.c index cbeaa5b6296e..af1af691f78b 100644 --- a/sys/mips/nlm/bus_space_rmi.c +++ b/sys/mips/nlm/bus_space_rmi.c @@ -366,7 +366,7 @@ rmi_bus_space_map(void *t __unused, bus_addr_t addr, bus_space_handle_t *bshp) { - *bshp = addr; + *bshp = MIPS_PHYS_TO_DIRECT_UNCACHED(addr); return (0); }