Skip to content

Commit

Permalink
sh: Add plat_early_device_setup()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Magnus Damm authored and Paul Mundt committed Apr 19, 2009
1 parent eaab891 commit 87a00dc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/sh/include/asm/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ struct platform_device;
int platform_resource_setup_memory(struct platform_device *pdev,
char *name, unsigned long memsize);

void plat_early_device_setup(void);

7 changes: 7 additions & 0 deletions arch/sh/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <linux/mmzone.h>
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/platform_device.h>
#include <asm/uaccess.h>
#include <asm/io.h>
#include <asm/page.h>
Expand Down Expand Up @@ -328,6 +329,10 @@ static int __init parse_elfcorehdr(char *arg)
early_param("elfcorehdr", parse_elfcorehdr);
#endif

void __init __attribute__ ((weak)) plat_early_device_setup(void)
{
}

void __init setup_arch(char **cmdline_p)
{
enable_mmu();
Expand Down Expand Up @@ -381,6 +386,8 @@ void __init setup_arch(char **cmdline_p)

parse_early_param();

plat_early_device_setup();

sh_mv_setup();

/*
Expand Down

0 comments on commit 87a00dc

Please sign in to comment.