提交 be20dbc8 编写于 作者: R Roland Stigge

ARM: LPC32xx: Move common code to common.c

This patch moves non-boardspecific LPC32xx code to common.c
Signed-off-by: NRoland Stigge <stigge@antcom.de>
上级 f5c42271
......@@ -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);
......@@ -310,19 +310,6 @@ static void __init lpc3250_machine_init(void)
SPI0_CS_GPIO);
}
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);
static char const *lpc32xx_dt_compat[] __initdata = {
"nxp,lpc3220",
"nxp,lpc3230",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册