From c278ce337a634ea6a5b6222b703e9d93586c8d17 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Tue, 21 Jan 2014 14:26:09 +0800 Subject: [PATCH] ARM: rockchip: rk_fiq_debugger use 32-bit read/write, workaround for rk3288 --- arch/arm/mach-rockchip/rk_fiq_debugger.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-rockchip/rk_fiq_debugger.c b/arch/arm/mach-rockchip/rk_fiq_debugger.c index 71b29056eaa2..0d35df02c540 100644 --- a/arch/arm/mach-rockchip/rk_fiq_debugger.c +++ b/arch/arm/mach-rockchip/rk_fiq_debugger.c @@ -48,13 +48,13 @@ struct rk_fiq_debugger { static inline void rk_fiq_write(struct rk_fiq_debugger *t, unsigned int val, unsigned int off) { - __raw_writeb(val, t->debug_port_base + off * 4); + __raw_writel(val, t->debug_port_base + off * 4); } static inline unsigned int rk_fiq_read(struct rk_fiq_debugger *t, unsigned int off) { - return __raw_readb(t->debug_port_base + off * 4); + return __raw_readl(t->debug_port_base + off * 4); } static inline unsigned int rk_fiq_read_lsr(struct rk_fiq_debugger *t) -- 2.34.1