summaryrefslogtreecommitdiff
path: root/drivers/misc/imx_iim.c
diff options
context:
space:
mode:
authorTerry Lv <r65388@freescale.com>2010-08-09 18:13:34 +0800
committerTerry Lv <r65388@freescale.com>2010-08-11 14:27:11 +0800
commit220079eab544ef16d2bbf2606e56de38d4e4c7c4 (patch)
tree9d5873ea8ca816fd8b87ea8d60a157f8743d3bfa /drivers/misc/imx_iim.c
parent5d7638868e4fc91609e144405ef97b812dc57148 (diff)
downloadu-boot-imx-220079eab544ef16d2bbf2606e56de38d4e4c7c4.zip
u-boot-imx-220079eab544ef16d2bbf2606e56de38d4e4c7c4.tar.gz
u-boot-imx-220079eab544ef16d2bbf2606e56de38d4e4c7c4.tar.bz2
ENGR00126079: Add clk command support for mx51
Add clk command support for mx51. Signed-off-by: Terry Lv <r65388@freescale.com>
Diffstat (limited to 'drivers/misc/imx_iim.c')
-rw-r--r--drivers/misc/imx_iim.c4
1 files changed, 3 insertions, 1 deletions
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);
}