cpm_uart_cpm1.h 578 字节
Newer Older
L
Linus Torvalds 已提交
1 2
/*
 * Driver for CPM (SCC/SMC) serial ports
K
Kumar Gala 已提交
3
 *
L
Linus Torvalds 已提交
4 5 6 7 8 9 10
 * definitions for cpm1
 *
 */

#ifndef CPM_UART_CPM1_H
#define CPM_UART_CPM1_H

11
#include <asm/cpm1.h>
L
Linus Torvalds 已提交
12 13 14 15 16 17

static inline void cpm_set_brg(int brg, int baud)
{
	cpm_setbrg(brg, baud);
}

S
Scott Wood 已提交
18
static inline void cpm_set_scc_fcr(scc_uart_t __iomem * sup)
L
Linus Torvalds 已提交
19
{
S
Scott Wood 已提交
20 21
	out_8(&sup->scc_genscc.scc_rfcr, SMC_EB);
	out_8(&sup->scc_genscc.scc_tfcr, SMC_EB);
L
Linus Torvalds 已提交
22 23
}

S
Scott Wood 已提交
24
static inline void cpm_set_smc_fcr(smc_uart_t __iomem * up)
L
Linus Torvalds 已提交
25
{
S
Scott Wood 已提交
26 27
	out_8(&up->smc_rfcr, SMC_EB);
	out_8(&up->smc_tfcr, SMC_EB);
L
Linus Torvalds 已提交
28 29
}

S
Scott Wood 已提交
30
#define DPRAM_BASE	((u8 __iomem __force *)cpm_dpram_addr(0))
L
Linus Torvalds 已提交
31 32

#endif