• Home
  • Raw
  • Download

Lines Matching full:overlay

108 	/* If overlay has a list of bridges, use it. */  in of_fpga_region_get_bridges()
109 br = of_parse_phandle(info->overlay, "fpga-bridges", 0); in of_fpga_region_get_bridges()
112 np = info->overlay; in of_fpga_region_get_bridges()
145 * @overlay: device node of the overlay
147 * If the overlay adds child FPGA regions, they are not allowed to have
152 static int child_regions_with_firmware(struct device_node *overlay) in child_regions_with_firmware() argument
158 of_node_get(overlay); in child_regions_with_firmware()
160 child_region = of_find_matching_node(overlay, fpga_region_of_match); in child_regions_with_firmware()
181 * of_fpga_region_parse_ov - parse and check overlay applied to region
184 * @overlay: overlay applied to the FPGA region
186 * Given an overlay applied to an FPGA region, parse the FPGA image specific
187 * info in the overlay and do some checking.
190 * NULL if overlay doesn't direct us to program the FPGA.
192 * error code for invalid overlay.
196 struct device_node *overlay) in of_fpga_region_parse_ov() argument
204 dev_err(dev, "Region already has overlay applied.\n"); in of_fpga_region_parse_ov()
209 * Reject overlay if child FPGA Regions added in the overlay have in of_fpga_region_parse_ov()
213 ret = child_regions_with_firmware(overlay); in of_fpga_region_parse_ov()
221 info->overlay = overlay; in of_fpga_region_parse_ov()
223 /* Read FPGA region properties from the overlay */ in of_fpga_region_parse_ov()
224 if (of_property_read_bool(overlay, "partial-fpga-config")) in of_fpga_region_parse_ov()
227 if (of_property_read_bool(overlay, "external-fpga-config")) in of_fpga_region_parse_ov()
230 if (of_property_read_bool(overlay, "encrypted-fpga-config")) in of_fpga_region_parse_ov()
233 if (!of_property_read_string(overlay, "firmware-name", in of_fpga_region_parse_ov()
241 of_property_read_u32(overlay, "region-unfreeze-timeout-us", in of_fpga_region_parse_ov()
244 of_property_read_u32(overlay, "region-freeze-timeout-us", in of_fpga_region_parse_ov()
247 of_property_read_u32(overlay, "config-complete-timeout-us", in of_fpga_region_parse_ov()
250 /* If overlay is not programming the FPGA, don't need FPGA image info */ in of_fpga_region_parse_ov()
257 * If overlay informs us FPGA was externally programmed, specifying in of_fpga_region_parse_ov()
273 * of_fpga_region_notify_pre_apply - pre-apply overlay notification
275 * @region: FPGA region that the overlay was applied to
276 * @nd: overlay notification data
278 * Called when an overlay targeted to an FPGA Region is about to be applied.
279 * Parses the overlay for properties that influence how the FPGA will be
281 * If the checks fail, overlay is rejected and does not get added to the
293 info = of_fpga_region_parse_ov(region, nd->overlay); in of_fpga_region_notify_pre_apply()
297 /* If overlay doesn't program the FPGA, accept it anyway. */ in of_fpga_region_notify_pre_apply()
302 dev_err(dev, "Region already has overlay applied.\n"); in of_fpga_region_notify_pre_apply()
309 /* error; reject overlay */ in of_fpga_region_notify_pre_apply()
318 * of_fpga_region_notify_post_remove - post-remove overlay notification
320 * @region: FPGA region that was targeted by the overlay that was removed
321 * @nd: overlay notification data
323 * Called after an overlay has been removed if the overlay's target was a