diff options
author | Jochen Friedrich <jochen@scram.de> | 2007-09-24 12:54:41 -0400 |
---|---|---|
committer | Jochen Friedrich <jochen@scram.de> | 2007-09-25 14:48:15 -0400 |
commit | b15773a06e5feee192f83c578222b45d81d1edc9 (patch) | |
tree | 9861192e356db8619f476d5b9a1c1814219b4236 | |
parent | 7a6d44f79f60f2b106e2a820503fa7c1814a13d0 (diff) |
[POWERPC] Fix cpm_uart driver
in cpm_uart_cpm1.h, DPRAM_BASE is assigned an address derived from cpmp.
On ARC=ppc, this is a physical address with 1:1 DMA mapping which can't
be used for arithmetric compare operations with virtual addresses
returned by cpm_dpram_addr. This patch changes the assignment to use
cpm_dpram_addr as well, like in cpm_uart_cpm2.h.
Signed-off-by: Jochen Friedrich <jochen@scram.de>
-rw-r--r-- | drivers/serial/cpm_uart/cpm_uart_cpm1.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/cpm_uart/cpm_uart_cpm1.h b/drivers/serial/cpm_uart/cpm_uart_cpm1.h index a99e45e2b6d8..2a6477834c3e 100644 --- a/drivers/serial/cpm_uart/cpm_uart_cpm1.h +++ b/drivers/serial/cpm_uart/cpm_uart_cpm1.h | |||
@@ -37,6 +37,6 @@ static inline void cpm_set_smc_fcr(volatile smc_uart_t * up) | |||
37 | up->smc_tfcr = SMC_EB; | 37 | up->smc_tfcr = SMC_EB; |
38 | } | 38 | } |
39 | 39 | ||
40 | #define DPRAM_BASE ((unsigned char *)&cpmp->cp_dpmem[0]) | 40 | #define DPRAM_BASE ((unsigned char *)cpm_dpram_addr(0)) |
41 | 41 | ||
42 | #endif | 42 | #endif |