aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorMagnus Damm <damm@igel.co.jp>2009-04-15 06:50:21 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-04-19 00:06:25 -0400
commit87a00dc059e3af46303f1f56b0e8df41af988c7b (patch)
treea0054b62fa43d64a84271a46c63aa19d4353bc4f /arch/sh
parenteaab89197b733d0f81f07d6c44294b674479fda8 (diff)
sh: Add plat_early_device_setup()
Add a plat_early_device_setup() function to allow processor-specific code to register Early Platform Data. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/include/asm/device.h2
-rw-r--r--arch/sh/kernel/setup.c7
2 files changed, 9 insertions, 0 deletions
diff --git a/arch/sh/include/asm/device.h b/arch/sh/include/asm/device.h
index efd511d0803a..8688a88303ee 100644
--- a/arch/sh/include/asm/device.h
+++ b/arch/sh/include/asm/device.h
@@ -10,3 +10,5 @@ struct platform_device;
10int platform_resource_setup_memory(struct platform_device *pdev, 10int platform_resource_setup_memory(struct platform_device *pdev,
11 char *name, unsigned long memsize); 11 char *name, unsigned long memsize);
12 12
13void plat_early_device_setup(void);
14
diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c
index 04a6004fccc4..22b976d42014 100644
--- a/arch/sh/kernel/setup.c
+++ b/arch/sh/kernel/setup.c
@@ -29,6 +29,7 @@
29#include <linux/mmzone.h> 29#include <linux/mmzone.h>
30#include <linux/clk.h> 30#include <linux/clk.h>
31#include <linux/delay.h> 31#include <linux/delay.h>
32#include <linux/platform_device.h>
32#include <asm/uaccess.h> 33#include <asm/uaccess.h>
33#include <asm/io.h> 34#include <asm/io.h>
34#include <asm/page.h> 35#include <asm/page.h>
@@ -328,6 +329,10 @@ static int __init parse_elfcorehdr(char *arg)
328early_param("elfcorehdr", parse_elfcorehdr); 329early_param("elfcorehdr", parse_elfcorehdr);
329#endif 330#endif
330 331
332void __init __attribute__ ((weak)) plat_early_device_setup(void)
333{
334}
335
331void __init setup_arch(char **cmdline_p) 336void __init setup_arch(char **cmdline_p)
332{ 337{
333 enable_mmu(); 338 enable_mmu();
@@ -381,6 +386,8 @@ void __init setup_arch(char **cmdline_p)
381 386
382 parse_early_param(); 387 parse_early_param();
383 388
389 plat_early_device_setup();
390
384 sh_mv_setup(); 391 sh_mv_setup();
385 392
386 /* 393 /*