OpenCores
URL https://opencores.org/ocsvn/aor3000/aor3000/trunk

Subversion Repositories aor3000

[/] [aor3000/] [trunk/] [linux/] [arch/] [mips/] [aor3000/] [prom.c] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 alfik
/*
2
 * This file is subject to the terms and conditions of the GNU General Public
3
 * License.  See the file "COPYING" in the main directory of this archive
4
 * for more details.
5
 *
6
 * Copyright (C) 2014 Aleksander Osman
7
 */
8
 
9
#include <linux/init.h>
10
#include <linux/bootmem.h>
11
 
12
#include <asm/mipsregs.h>
13
#include <asm/bootinfo.h>
14
 
15
const char *get_system_type(void)
16
{
17
        return "aoR3000 SoC";
18
}
19
 
20
void __init plat_mem_setup(void)
21
{
22
        //set_io_port_base(KSEG1);
23
        //ioport_resource.start, .end
24
 
25
        add_memory_region(PHYS_OFFSET, 0x08000000, BOOT_MEM_RAM);
26
}
27
 
28
void __init prom_init(void)
29
{
30
        //clear_c0_status(ST0_IM | ST0_BEV); -- not needed, done later in trap initialization
31
}
32
 
33
void __init prom_free_prom_memory(void)
34
{
35
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.