2010-01-12 10:15:42 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2009 Juergen Beisert, Pengutronix
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of
|
|
|
|
* the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <common.h>
|
|
|
|
#include <types.h>
|
|
|
|
#include <driver.h>
|
|
|
|
#include <init.h>
|
|
|
|
#include <asm/syslib.h>
|
2013-05-24 10:54:54 +00:00
|
|
|
#include <linux/err.h>
|
2010-01-12 10:15:42 +00:00
|
|
|
|
|
|
|
static int devices_init(void)
|
|
|
|
{
|
2011-08-14 14:59:52 +00:00
|
|
|
/* extended memory only */
|
|
|
|
add_mem_device("ram0", 0x0, bios_get_memsize() << 10,
|
2011-07-19 07:58:32 +00:00
|
|
|
IORESOURCE_MEM_WRITEABLE);
|
2011-07-28 07:39:46 +00:00
|
|
|
return 0;
|
2010-01-12 10:15:42 +00:00
|
|
|
}
|
2014-04-07 10:01:21 +00:00
|
|
|
device_initcall(devices_init);
|