diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2009-08-31 18:53:22 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2009-08-31 18:53:22 +0000 |
commit | 3cc0bc90387d7cea119bee68a6f9c08295267c8c (patch) | |
tree | f0738e624357438428bf2588ba5e391d571196ed /target/linux/ramips/files/arch/mips/ralink/common/setup.c | |
parent | 4dd57199a20c89be6db6d6dbd5ceb74c2d713efa (diff) | |
download | master-31e0f0ae-3cc0bc90387d7cea119bee68a6f9c08295267c8c.tar.gz master-31e0f0ae-3cc0bc90387d7cea119bee68a6f9c08295267c8c.tar.bz2 master-31e0f0ae-3cc0bc90387d7cea119bee68a6f9c08295267c8c.zip |
add common setup code
SVN-Revision: 17453
Diffstat (limited to 'target/linux/ramips/files/arch/mips/ralink/common/setup.c')
-rw-r--r-- | target/linux/ramips/files/arch/mips/ralink/common/setup.c | 24 |
1 files changed, 24 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 new file mode 100644 index 0000000000..6440ccb01a --- /dev/null +++ b/target/linux/ramips/files/arch/mips/ralink/common/setup.c @@ -0,0 +1,24 @@ +/* + * Ralink SoC common setup + * + * Copyright (C) 2008-2009 Gabor Juhos <juhosg@openwrt.org> + * Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org> + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published + * by the Free Software Foundation. + */ + +#include <linux/kernel.h> +#include <linux/init.h> +#include <linux/io.h> + +#include <asm/addrspace.h> +#include <asm/mach-ralink/common.h> + +void __init plat_mem_setup(void) +{ + set_io_port_base(KSEG1); + + ramips_soc_setup(); +} |