Changeset View
Changeset View
Standalone View
Standalone View
head/sys/arm/freescale/fsl_ocotp.c
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | |||||
static vm_size_t ocotp_size; | static vm_size_t ocotp_size; | ||||
static void | static void | ||||
fsl_ocotp_devmap(void) | fsl_ocotp_devmap(void) | ||||
{ | { | ||||
phandle_t child, root; | phandle_t child, root; | ||||
u_long base, size; | u_long base, size; | ||||
if ((root = OF_finddevice("/")) == 0) | 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; | ||||
▲ Show 20 Lines • Show All 124 Lines • Show Last 20 Lines |