add common setup code
[lede.git] / target / linux / ramips / files / arch / mips / ralink / common / setup.c
1 /*
2  * Ralink SoC common setup
3  *
4  * Copyright (C) 2008-2009 Gabor Juhos <juhosg@openwrt.org>
5  * Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
6  *
7  * This program is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU General Public License version 2 as published
9  * by the Free Software Foundation.
10  */
11
12 #include <linux/kernel.h>
13 #include <linux/init.h>
14 #include <linux/io.h>
15
16 #include <asm/addrspace.h>
17 #include <asm/mach-ralink/common.h>
18
19 void __init plat_mem_setup(void)
20 {
21         set_io_port_base(KSEG1);
22
23         ramips_soc_setup();
24 }