np = of_find_compatible_node(NULL, NULL, "fsl,p1021-guts"); if (np) {
guts = of_iomap(np, 0); if (!guts)
pr_err("twr_p1025: could not map global utilities register\n"); else { /* P1025 has pins muxed for QE and other functions. To *enableQEUECmode,weneedtosetbitQE0forUCC1 *inEthmode,QE0andQE3forUCC5inEthmode,QE9 *andQE12forQEMIImanagementsignalsinPMUXCR *register.
* Set QE mux bits in PMUXCR */
setbits32(&guts->pmuxcr, MPC85xx_PMUXCR_QE(0) |
MPC85xx_PMUXCR_QE(3) |
MPC85xx_PMUXCR_QE(9) |
MPC85xx_PMUXCR_QE(12));
iounmap(guts);
#if IS_ENABLED(CONFIG_SERIAL_QE) /* On P1025TWR board, the UCC7 acted as UART port. *However,TheUCC7'sCTSpinislowlevelindefault, *itwillimpactthetransmissioninfullduplex *communication.SodisabletheFlowcontrolpinPA18. *TheUCC7UARTjustcanuseRXDandTXDpins.
*/
par_io_config_pin(0, 18, 0, 0, 0, 0); #endif /* Drive PB29 to CPLD low - CPLD will then change
* muxing from LBC to QE */
par_io_config_pin(1, 29, 1, 0, 0, 0);
par_io_data_set(1, 29, 0);
}
of_node_put(np);
}
} #endif #endif/* CONFIG_QUICC_ENGINE */
pr_info("TWR-P1025 board from Freescale Semiconductor\n");
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.