summaryrefslogtreecommitdiff
path: root/arch/arm/mach-lpc32xx/common.c
diff options
context:
space:
mode:
authorRoland Stigge <stigge@antcom.de>2012-04-22 14:01:19 +0400
committerRoland Stigge <stigge@antcom.de>2012-04-22 14:01:19 +0400
commitbe20dbc87879582e121e0525adcada13b3a8f476 (patch)
tree1731b4f4728d5a839bead0572b51670dd9195def /arch/arm/mach-lpc32xx/common.c
parentf5c422713308e492eddc44a12134f9f249ddfbdb (diff)
downloadlinux-be20dbc87879582e121e0525adcada13b3a8f476.tar.xz
ARM: LPC32xx: Move common code to common.c
This patch moves non-boardspecific LPC32xx code to common.c Signed-off-by: Roland Stigge <stigge@antcom.de>
Diffstat (limited to 'arch/arm/mach-lpc32xx/common.c')
-rw-r--r--arch/arm/mach-lpc32xx/common.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/mach-lpc32xx/common.c b/arch/arm/mach-lpc32xx/common.c
index 0a41e1ec0c3a..5c96057b6d78 100644
--- a/arch/arm/mach-lpc32xx/common.c
+++ b/arch/arm/mach-lpc32xx/common.c
@@ -223,3 +223,16 @@ void lpc23xx_restart(char mode, const char *cmd)
while (1)
;
}
+
+static int __init lpc32xx_display_uid(void)
+{
+ u32 uid[4];
+
+ lpc32xx_get_uid(uid);
+
+ printk(KERN_INFO "LPC32XX unique ID: %08x%08x%08x%08x\n",
+ uid[3], uid[2], uid[1], uid[0]);
+
+ return 1;
+}
+arch_initcall(lpc32xx_display_uid);