• Home
  • Raw
  • Download

Lines Matching full:overlay

106 	/* If overlay has a list of bridges, use it. */  in of_fpga_region_get_bridges()
107 br = of_parse_phandle(info->overlay, "fpga-bridges", 0); in of_fpga_region_get_bridges()
110 np = info->overlay; in of_fpga_region_get_bridges()
143 * @overlay: device node of the overlay
145 * If the overlay adds child FPGA regions, they are not allowed to have
150 static int child_regions_with_firmware(struct device_node *overlay) in child_regions_with_firmware() argument
156 of_node_get(overlay); in child_regions_with_firmware()
158 child_region = of_find_matching_node(overlay, fpga_region_of_match); in child_regions_with_firmware()
179 * of_fpga_region_parse_ov - parse and check overlay applied to region
182 * @overlay: overlay applied to the FPGA region
184 * Given an overlay applied to a FPGA region, parse the FPGA image specific
185 * info in the overlay and do some checking.
188 * NULL if overlay doesn't direct us to program the FPGA.
190 * error code for invalid overlay.
194 struct device_node *overlay) in of_fpga_region_parse_ov() argument
202 dev_err(dev, "Region already has overlay applied.\n"); in of_fpga_region_parse_ov()
207 * Reject overlay if child FPGA Regions added in the overlay have in of_fpga_region_parse_ov()
211 ret = child_regions_with_firmware(overlay); in of_fpga_region_parse_ov()
219 info->overlay = overlay; in of_fpga_region_parse_ov()
221 /* Read FPGA region properties from the overlay */ in of_fpga_region_parse_ov()
222 if (of_property_read_bool(overlay, "partial-fpga-config")) in of_fpga_region_parse_ov()
225 if (of_property_read_bool(overlay, "external-fpga-config")) in of_fpga_region_parse_ov()
228 if (of_property_read_bool(overlay, "encrypted-fpga-config")) in of_fpga_region_parse_ov()
231 if (!of_property_read_string(overlay, "firmware-name", in of_fpga_region_parse_ov()
239 of_property_read_u32(overlay, "region-unfreeze-timeout-us", in of_fpga_region_parse_ov()
242 of_property_read_u32(overlay, "region-freeze-timeout-us", in of_fpga_region_parse_ov()
245 of_property_read_u32(overlay, "config-complete-timeout-us", in of_fpga_region_parse_ov()
248 /* If overlay is not programming the FPGA, don't need FPGA image info */ in of_fpga_region_parse_ov()
255 * If overlay informs us FPGA was externally programmed, specifying in of_fpga_region_parse_ov()
271 * of_fpga_region_notify_pre_apply - pre-apply overlay notification
273 * @region: FPGA region that the overlay was applied to
274 * @nd: overlay notification data
276 * Called when an overlay targeted to a FPGA Region is about to be applied.
277 * Parses the overlay for properties that influence how the FPGA will be
279 * If the checks fail, overlay is rejected and does not get added to the
291 info = of_fpga_region_parse_ov(region, nd->overlay); in of_fpga_region_notify_pre_apply()
295 /* If overlay doesn't program the FPGA, accept it anyway. */ in of_fpga_region_notify_pre_apply()
300 dev_err(dev, "Region already has overlay applied.\n"); in of_fpga_region_notify_pre_apply()
307 /* error; reject overlay */ in of_fpga_region_notify_pre_apply()
316 * of_fpga_region_notify_post_remove - post-remove overlay notification
318 * @region: FPGA region that was targeted by the overlay that was removed
319 * @nd: overlay notification data
321 * Called after an overlay has been removed if the overlay's target was a