Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115626061
D50014.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D50014.id.diff
View Options
diff --git a/sys/arm/freescale/imx/imx6_machdep.c b/sys/arm/freescale/imx/imx6_machdep.c
--- a/sys/arm/freescale/imx/imx6_machdep.c
+++ b/sys/arm/freescale/imx/imx6_machdep.c
@@ -35,6 +35,7 @@
#include <sys/devmap.h>
#include <vm/vm.h>
+#include <vm/pmap.h>
#include <machine/bus.h>
#include <machine/intr.h>
@@ -310,12 +311,13 @@
IMX6_ANALOG_DIGPROG_SOCTYPE_SHIFT;
/*printf("digprog = 0x%08x\n", digprog);*/
if (hwsoc == HWSOC_MX6DL) {
- pcr = devmap_ptov(SCU_CONFIG_PHYSADDR, 4);
+ pcr = pmap_mapdev(SCU_CONFIG_PHYSADDR, 4);
if (pcr != NULL) {
/*printf("scu config = 0x%08x\n", *pcr);*/
if ((*pcr & 0x03) == 0) {
hwsoc = HWSOC_MX6SOLO;
}
+ pmap_unmapdev(pcr, 4);
}
}
}
diff --git a/sys/arm/freescale/imx/imx_machdep.c b/sys/arm/freescale/imx/imx_machdep.c
--- a/sys/arm/freescale/imx/imx_machdep.c
+++ b/sys/arm/freescale/imx/imx_machdep.c
@@ -31,7 +31,6 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/reboot.h>
-#include <sys/devmap.h>
#include <vm/vm.h>
#include <vm/pmap.h>
@@ -66,7 +65,7 @@
{
volatile uint16_t cr, *pcr;
- if ((pcr = devmap_ptov(wdcr_physaddr, sizeof(*pcr))) == NULL) {
+ if ((pcr = pmap_mapdev(wdcr_physaddr, sizeof(*pcr))) == NULL) {
printf("imx_wdog_cpu_reset(): "
"cannot find control register... locking up now.");
for (;;)
@@ -116,7 +115,7 @@
{
volatile uint16_t * psr;
- if ((psr = devmap_ptov(wdsr_phys, sizeof(*psr))) == NULL)
+ if ((psr = pmap_mapdev(wdsr_phys, sizeof(*psr))) == NULL)
return;
last_reset_status = *psr;
if (last_reset_status & WDOG_RSR_SFTW) {
@@ -126,4 +125,5 @@
} else if (last_reset_status & WDOG_RSR_POR) {
sysctl___hw_imx_last_reset_reason.oid_arg1 = "PowerOnReset";
}
+ pmap_unmapdev((void *)(uintptr_t)psr, sizeof(*psr));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 27, 4:59 AM (15 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17813535
Default Alt Text
D50014.id.diff (1 KB)
Attached To
Mode
D50014: arm/freescale: Stop using devmap_ptov
Attached
Detach File
Event Timeline
Log In to Comment