86e951ca20bc26355878f0c3e8a3353761e6004f
2 * Ralink SoC common setup
4 * Copyright (C) 2008-2009 Gabor Juhos <juhosg@openwrt.org>
5 * Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
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.
12 #include <linux/kernel.h>
13 #include <linux/init.h>
16 #include <asm/bootinfo.h>
17 #include <asm/addrspace.h>
19 #include <asm/mach-ralink/common.h>
20 #include <ralink_soc.h>
22 static void __init
detect_mem_size(void)
26 for (size
= RALINK_SOC_MEM_SIZE_MIN
; size
< RALINK_SOC_MEM_SIZE_MAX
;
28 if (!memcmp(detect_mem_size
,
29 detect_mem_size
+ size
, 1024))
33 add_memory_region(RALINK_SOC_SDRAM_BASE
, size
, BOOT_MEM_RAM
);
36 void __init
plat_mem_setup(void)
38 set_io_port_base(KSEG1
);
This page took 0.040345 seconds and 3 git commands to generate.