Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/freescale/fsl_ocotp.c
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | if ((root = OF_finddevice("/")) == -1) | ||||
goto fatal; | goto fatal; | ||||
if ((child = fdt_depth_search_compatible(root, "fsl,imx6q-ocotp", 0)) == 0) | if ((child = fdt_depth_search_compatible(root, "fsl,imx6q-ocotp", 0)) == 0) | ||||
goto fatal; | goto fatal; | ||||
if (fdt_regsize(child, &base, &size) != 0) | if (fdt_regsize(child, &base, &size) != 0) | ||||
goto fatal; | goto fatal; | ||||
ocotp_size = (vm_size_t)size; | ocotp_size = (vm_size_t)size; | ||||
if ((ocotp_regs = pmap_mapdev((vm_offset_t)base, ocotp_size)) == NULL) | if ((ocotp_regs = pmap_mapdev((vm_paddr_t)base, ocotp_size)) == NULL) | ||||
goto fatal; | goto fatal; | ||||
return; | return; | ||||
fatal: | fatal: | ||||
panic("cannot find/map the ocotp registers"); | panic("cannot find/map the ocotp registers"); | ||||
} | } | ||||
/* XXX end of temporary code */ | /* XXX end of temporary code */ | ||||
▲ Show 20 Lines • Show All 112 Lines • Show Last 20 Lines |