Lines Matching +full:p1022ds +full:- +full:fpga

2  * P1022DS board specific routines
10 * This file is taken from the Freescale P1022DS BSP, with modifications:
42 * Board-specific initialization of the DIU. This code should probably be
46 * This is especially problematic on the P1022DS because the local bus (eLBC)
77 * Note that we need to byte-swap the value before it's written to the AD
140 * If we only have 32-bit addressing, then the BRx address *is* the in lbc_br_to_phys()
181 guts_node = of_find_compatible_node(NULL, NULL, "fsl,p1022-guts"); in p1022ds_set_monitor_port()
183 pr_err("p1022ds: missing global utilities device node\n"); in p1022ds_set_monitor_port()
189 pr_err("p1022ds: could not map global utilities device\n"); in p1022ds_set_monitor_port()
193 lbc_node = of_find_compatible_node(NULL, NULL, "fsl,p1022-elbc"); in p1022ds_set_monitor_port()
195 pr_err("p1022ds: missing localbus node\n"); in p1022ds_set_monitor_port()
201 pr_err("p1022ds: could not map localbus node\n"); in p1022ds_set_monitor_port()
205 law_node = of_find_compatible_node(NULL, NULL, "fsl,ecm-law"); in p1022ds_set_monitor_port()
207 pr_err("p1022ds: missing local access window node\n"); in p1022ds_set_monitor_port()
213 pr_err("p1022ds: could not map local access window node\n"); in p1022ds_set_monitor_port()
217 iprop = of_get_property(law_node, "fsl,num-laws", NULL); in p1022ds_set_monitor_port()
219 pr_err("p1022ds: LAW node is missing fsl,num-laws property\n"); in p1022ds_set_monitor_port()
234 br0 = in_be32(&lbc->bank[0].br); in p1022ds_set_monitor_port()
235 br1 = in_be32(&lbc->bank[1].br); in p1022ds_set_monitor_port()
236 or0 = in_be32(&lbc->bank[0].or); in p1022ds_set_monitor_port()
237 or1 = in_be32(&lbc->bank[1].or); in p1022ds_set_monitor_port()
241 pr_err("p1022ds: CS0 and/or CS1 is not programmed\n"); in p1022ds_set_monitor_port()
253 out_be32(&lbc->bank[0].br, br0); in p1022ds_set_monitor_port()
254 out_be32(&lbc->bank[0].or, or0); in p1022ds_set_monitor_port()
259 out_be32(&lbc->bank[1].br, br1); in p1022ds_set_monitor_port()
260 out_be32(&lbc->bank[1].or, or1); in p1022ds_set_monitor_port()
265 pr_err("p1022ds: could not determine physical address for CS0" in p1022ds_set_monitor_port()
271 pr_err("p1022ds: could not determine physical address for CS1" in p1022ds_set_monitor_port()
278 pr_err("p1022ds: could not ioremap CS0 address %llx\n", in p1022ds_set_monitor_port()
284 pr_err("p1022ds: could not ioremap CS1 address %llx\n", in p1022ds_set_monitor_port()
290 if ((in_be32(&guts->pmuxcr) & PMUXCR_ELBCDIU_MASK) != in p1022ds_set_monitor_port()
296 of_find_compatible_node(NULL, NULL, "fsl,p1022ds-fpga"); in p1022ds_set_monitor_port()
298 pr_err("p1022ds: missing pixis node\n"); in p1022ds_set_monitor_port()
305 pr_err("p1022ds: could not map pixis registers\n"); in p1022ds_set_monitor_port()
320 clrsetbits_be32(&guts->pmuxcr, PMUXCR_ELBCDIU_MASK, in p1022ds_set_monitor_port()
322 in_be32(&guts->pmuxcr); in p1022ds_set_monitor_port()
348 pr_err("p1022ds: unsupported monitor port %i\n", port); in p1022ds_set_monitor_port()
382 guts_np = of_find_compatible_node(NULL, NULL, "fsl,p1022-guts"); in p1022ds_set_pixel_clock()
384 pr_err("p1022ds: missing global utilities device node\n"); in p1022ds_set_pixel_clock()
391 pr_err("p1022ds: could not map global utilities device\n"); in p1022ds_set_pixel_clock()
403 * range of values is 2-255. in p1022ds_set_pixel_clock()
408 /* Disable the pixel clock, and set it to non-inverted and no delay */ in p1022ds_set_pixel_clock()
409 clrbits32(&guts->clkdvdr, in p1022ds_set_pixel_clock()
413 setbits32(&guts->clkdvdr, CLKDVDR_PXCKEN | (pxclk << 16)); in p1022ds_set_pixel_clock()
429 return FSL_DIU_PORT_DVI; /* Dual-link LVDS is not supported */ in p1022ds_valid_monitor_port()
446 /* TRUE if there is a "video=fslfb" command-line parameter. */
450 * Search for a "video=fslfb" command-line parameter, and set 'fslfb' to
484 * command-line parameter. When the DIU is active, the localbus is in p1022_ds_setup_arch()
490 of_find_compatible_node(NULL, NULL, "fsl,p1022-elbc"); in p1022_ds_setup_arch()
496 np2 = of_find_compatible_node(np, NULL, "cfi-flash"); in p1022_ds_setup_arch()
512 pr_info("p1022ds: disabling %pOF node", in p1022_ds_setup_arch()
520 "fsl,elbc-fcm-nand"); in p1022_ds_setup_arch()
528 pr_info("p1022ds: disabling %pOF node", in p1022_ds_setup_arch()
554 .compatible = "fsl,p1022ds", in define_machine()