summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorHuang Shijie <b32955@freescale.com>2012-02-01 16:12:33 +0800
committerHuang Shijie <b32955@freescale.com>2012-02-07 16:13:07 +0800
commitdeab7057d030ac4f281f93ed33af6284bd5b20e3 (patch)
treea47a5beb5ef9371138587527835eb6e1fc766937 /arch/arm
parent1d25b364131f8208e34b5dcb38e44ed02962a16b (diff)
ENGR00173731-4 MX6Q/ARCH : add mxs_reset_block()
add mxs_reset_block() for mx6q. In order to keep the same code as the community, I reduce the parameters to one. Signed-off-by: Huang Shijie <b32955@freescale.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-mx6/system.c7
-rwxr-xr-xarch/arm/plat-mxc/include/mach/common.h1
-rwxr-xr-xarch/arm/plat-mxc/include/mach/system.h3
3 files changed, 8 insertions, 3 deletions
diff --git a/arch/arm/mach-mx6/system.c b/arch/arm/mach-mx6/system.c
index efc838e08078..185be00db482 100644
--- a/arch/arm/mach-mx6/system.c
+++ b/arch/arm/mach-mx6/system.c
@@ -243,7 +243,7 @@ static int __mxs_reset_block(void __iomem *hwreg, int just_enable)
return 0;
}
-int mxs_reset_block(void __iomem *hwreg, int just_enable)
+static int _mxs_reset_block(void __iomem *hwreg, int just_enable)
{
int try = 10;
int r;
@@ -256,4 +256,9 @@ int mxs_reset_block(void __iomem *hwreg, int just_enable)
}
return r;
}
+
+int mxs_reset_block(void __iomem *hwreg)
+{
+ return _mxs_reset_block(hwreg, false);
+}
EXPORT_SYMBOL(mxs_reset_block);
diff --git a/arch/arm/plat-mxc/include/mach/common.h b/arch/arm/plat-mxc/include/mach/common.h
index a8d1982b1b08..62489695af0f 100755
--- a/arch/arm/plat-mxc/include/mach/common.h
+++ b/arch/arm/plat-mxc/include/mach/common.h
@@ -87,4 +87,5 @@ extern int mx53_revision(void);
extern int mx50_revision(void);
extern int mx53_display_revision(void);
extern unsigned long mx6_timer_rate(void);
+extern int mxs_reset_block(void __iomem *);
#endif
diff --git a/arch/arm/plat-mxc/include/mach/system.h b/arch/arm/plat-mxc/include/mach/system.h
index 1a51cca1bfa4..7021c85d1b59 100755
--- a/arch/arm/plat-mxc/include/mach/system.h
+++ b/arch/arm/plat-mxc/include/mach/system.h
@@ -1,7 +1,7 @@
/*
* Copyright (C) 1999 ARM Limited
* Copyright (C) 2000 Deep Blue Solutions Ltd
- * Copyright 2004-2011 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright 2004-2012 Freescale Semiconductor, Inc. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -25,5 +25,4 @@ extern void mx5_cpu_lp_set(enum mxc_cpu_pwr_mode mode);
void arch_idle(void);
void arch_reset(char mode, const char *cmd);
-int mxs_reset_block(void __iomem *hwreg, int just_enable);
#endif /* __ASM_ARCH_MXC_SYSTEM_H__ */