blob: 449da9c85919bf50e5ca15f8ebac24d457f632a9 [file] [log] [blame]
Gabor Juhos5a4dcfa2013-05-22 03:57:37 +00001/*
2 * Copyright (C) 2013 Gabor Juhos <juhosg@openwrt.org>
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License version 2 as published
6 * by the Free Software Foundation.
7 */
8
9#include <common.h>
10
Gabor Juhos01564312013-05-22 03:57:38 +000011#include <asm/io.h>
12#include <asm/malta.h>
13
Gabor Juhos5a4dcfa2013-05-22 03:57:37 +000014phys_size_t initdram(int board_type)
15{
16 return CONFIG_SYS_MEM_SIZE;
17}
18
19int checkboard(void)
20{
21 puts("Board: MIPS Malta CoreLV (Qemu)\n");
22 return 0;
23}
Gabor Juhos01564312013-05-22 03:57:38 +000024
25void _machine_restart(void)
26{
27 void __iomem *reset_base;
28
29 reset_base = (void __iomem *)CKSEG1ADDR(MALTA_RESET_BASE);
30 __raw_writel(GORESET, reset_base);
31}