diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2009-08-31 18:53:34 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2009-08-31 18:53:34 +0000 |
commit | 998b7d1099e70af7f9ee551894fa80da2a9da83a (patch) | |
tree | 2971914b5bc003f8c4c869f601dfa41806714fb9 /target/linux/ramips/files/arch/mips/ralink/common | |
parent | 4b46d0a5c99ec01322cbd017e717b74328b628ac (diff) | |
download | upstream-998b7d1099e70af7f9ee551894fa80da2a9da83a.tar.gz upstream-998b7d1099e70af7f9ee551894fa80da2a9da83a.tar.bz2 upstream-998b7d1099e70af7f9ee551894fa80da2a9da83a.zip |
[ramips] share machine registration code
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17456 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/files/arch/mips/ralink/common')
-rw-r--r-- | target/linux/ramips/files/arch/mips/ralink/common/setup.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/target/linux/ramips/files/arch/mips/ralink/common/setup.c b/target/linux/ramips/files/arch/mips/ralink/common/setup.c index 988965bc71..81a1ba4fa4 100644 --- a/target/linux/ramips/files/arch/mips/ralink/common/setup.c +++ b/target/linux/ramips/files/arch/mips/ralink/common/setup.c @@ -15,11 +15,14 @@ #include <asm/bootinfo.h> #include <asm/addrspace.h> +#include <asm/mips_machine.h> #include <asm/mach-ralink/common.h> +#include <asm/mach-ralink/machine.h> #include <ralink_soc.h> unsigned char ramips_sys_type[RAMIPS_SYS_TYPE_LEN]; +enum ramips_mach_type ramips_mach = RAMIPS_MACH_GENERIC; const char *get_system_type(void) { @@ -47,3 +50,17 @@ void __init plat_mem_setup(void) detect_mem_size(); ramips_soc_setup(); } + +static int __init ramips_machine_setup(void) +{ + mips_machine_setup(ramips_mach); + return 0; +} + +arch_initcall(ramips_machine_setup); + +static void __init ramips_generic_init(void) +{ +} + +MIPS_MACHINE(RAMIPS_MACH_GENERIC, "Generic Ralink board", ramips_generic_init); |