From 220079eab544ef16d2bbf2606e56de38d4e4c7c4 Mon Sep 17 00:00:00 2001 From: Terry Lv Date: Mon, 9 Aug 2010 18:13:34 +0800 Subject: ENGR00126079: Add clk command support for mx51 Add clk command support for mx51. Signed-off-by: Terry Lv --- drivers/misc/imx_iim.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'drivers/misc') diff --git a/drivers/misc/imx_iim.c b/drivers/misc/imx_iim.c index 4bbd4ca..a720791 100644 --- a/drivers/misc/imx_iim.c +++ b/drivers/misc/imx_iim.c @@ -37,6 +37,7 @@ static const struct iim_regs *imx_iim = (struct iim_regs *)IMX_IIM_BASE; +/* static void quick_itoa(u32 num, char *a) { int i, j, k; @@ -46,6 +47,7 @@ static void quick_itoa(u32 num, char *a) a[i] = j + k; } } +*/ /* slen - streng length, e.g.: 23 -> slen=2; abcd -> slen=4 */ /* only convert hex value as string input. so "12" is 0x12. */ @@ -146,7 +148,7 @@ static u32 sense_fuse(s32 bank, s32 row, s32 bit) printf("%s(bank: %d, row: %d, bit: %d failed\n", __func__, bank, row, bit); } - reg_addr = &(imx_iim->sdat); + reg_addr = (s32)&(imx_iim->sdat); return readl(reg_addr); } -- cgit v1.1