Skip to content

Commit

Permalink
[POWERPC] Fix cpm_uart driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jochen Friedrich committed Sep 25, 2007
1 parent 7a6d44f commit b15773a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/serial/cpm_uart/cpm_uart_cpm1.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ static inline void cpm_set_smc_fcr(volatile smc_uart_t * up)
up->smc_tfcr = SMC_EB;
}

#define DPRAM_BASE ((unsigned char *)&cpmp->cp_dpmem[0])
#define DPRAM_BASE ((unsigned char *)cpm_dpram_addr(0))

#endif

0 comments on commit b15773a

Please sign in to comment.