Lines Matching full:qe

11  * QUICC Engine (QE).
30 #include <soc/fsl/qe/immap_qe.h>
31 #include <soc/fsl/qe/qe.h>
54 struct device_node *qe; in qe_get_device_node() local
57 * Newer device trees have an "fsl,qe" compatible property for the QE in qe_get_device_node()
60 qe = of_find_compatible_node(NULL, NULL, "fsl,qe"); in qe_get_device_node()
61 if (qe) in qe_get_device_node()
62 return qe; in qe_get_device_node()
63 return of_find_node_by_type(NULL, "qe"); in qe_get_device_node()
68 struct device_node *qe; in get_qe_base() local
75 qe = qe_get_device_node(); in get_qe_base()
76 if (!qe) in get_qe_base()
79 ret = of_address_to_resource(qe, 0, &res); in get_qe_base()
82 of_node_put(qe); in get_qe_base()
146 * 16 BRGs, which can be connected to the QE channels or output
149 * The BRG clock is the QE clock divided by 2.
162 struct device_node *qe; in qe_get_brg_clk() local
169 qe = qe_get_device_node(); in qe_get_brg_clk()
170 if (!qe) in qe_get_brg_clk()
173 if (!of_property_read_u32(qe, "brg-frequency", &brg)) in qe_get_brg_clk()
176 of_node_put(qe); in qe_get_brg_clk()
241 /* Convert a string to a QE clock source enum
280 * QE Module Control chapter, SNUM table
304 struct device_node *qe; in qe_snums_init() local
310 qe = qe_get_device_node(); in qe_snums_init()
311 if (qe) { in qe_snums_init()
312 i = of_property_read_variable_u8_array(qe, "fsl,qe-snums", in qe_snums_init()
315 of_node_put(qe); in qe_snums_init()
321 * fsl,qe-num-snums to choose one of the static arrays in qe_snums_init()
324 of_property_read_u32(qe, "fsl,qe-num-snums", &qe_num_of_snum); in qe_snums_init()
325 of_node_put(qe); in qe_snums_init()
333 pr_err("QE: unsupported value of fsl,qe-num-snums: %u\n", qe_num_of_snum); in qe_snums_init()
394 * Set to 1 if QE firmware has been uploaded, and therefore
400 * Upload a QE microcode
412 printk(KERN_INFO "qe-firmware: " in qe_upload_microcode()
416 printk(KERN_INFO "qe-firmware: " in qe_upload_microcode()
433 * See Documentation/arch/powerpc/qe_firmware.rst for information on QE microcode
457 printk(KERN_ERR "qe-firmware: invalid pointer\n"); in qe_upload_firmware()
467 printk(KERN_ERR "qe-firmware: not a microcode\n"); in qe_upload_firmware()
473 printk(KERN_ERR "qe-firmware: unsupported version\n"); in qe_upload_firmware()
479 printk(KERN_ERR "qe-firmware: invalid data\n"); in qe_upload_firmware()
497 printk(KERN_ERR "qe-firmware: invalid length\n"); in qe_upload_firmware()
504 printk(KERN_ERR "qe-firmware: firmware CRC is invalid\n"); in qe_upload_firmware()
516 "qe-firmware: firmware '%s' for %u V%u.%u\n", in qe_upload_firmware()
520 printk(KERN_INFO "qe-firmware: firmware '%s'\n", in qe_upload_firmware()
524 * The QE only supports one microcode per RISC, so clear out all the in qe_upload_firmware()
570 struct device_node *qe; in qe_get_firmware_info() local
586 qe = qe_get_device_node(); in qe_get_firmware_info()
587 if (!qe) in qe_get_firmware_info()
591 fw = of_get_child_by_name(qe, "firmware"); in qe_get_firmware_info()
592 of_node_put(qe); in qe_get_firmware_info()
620 struct device_node *qe; in qe_get_num_of_risc() local
623 qe = qe_get_device_node(); in qe_get_num_of_risc()
624 if (!qe) in qe_get_num_of_risc()
627 of_property_read_u32(qe, "fsl,qe-num-riscs", &num_of_risc); in qe_get_num_of_risc()
629 of_node_put(qe); in qe_get_num_of_risc()
645 np = of_find_compatible_node(NULL, NULL, "fsl,qe"); in qe_init()
668 { .compatible = "fsl,qe", },
674 .name = "fsl-qe",