Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Driver for CPM (SCC/SMC) serial ports
0004  *
0005  * definitions for cpm1
0006  *
0007  */
0008 
0009 #ifndef CPM_UART_CPM1_H
0010 #define CPM_UART_CPM1_H
0011 
0012 #include <asm/cpm1.h>
0013 
0014 static inline void cpm_set_brg(int brg, int baud)
0015 {
0016     cpm_setbrg(brg, baud);
0017 }
0018 
0019 static inline void cpm_set_scc_fcr(scc_uart_t __iomem * sup)
0020 {
0021     out_8(&sup->scc_genscc.scc_rfcr, SMC_EB);
0022     out_8(&sup->scc_genscc.scc_tfcr, SMC_EB);
0023 }
0024 
0025 static inline void cpm_set_smc_fcr(smc_uart_t __iomem * up)
0026 {
0027     out_8(&up->smc_rfcr, SMC_EB);
0028     out_8(&up->smc_tfcr, SMC_EB);
0029 }
0030 
0031 #define DPRAM_BASE  ((u8 __iomem __force *)cpm_dpram_addr(0))
0032 
0033 #endif