Gabor Juhos | 5a4dcfa | 2013-05-22 03:57:37 +0000 | [diff] [blame] | 1 | /* |
| 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 Juhos | 0156431 | 2013-05-22 03:57:38 +0000 | [diff] [blame] | 11 | #include <asm/io.h> |
| 12 | #include <asm/malta.h> |
| 13 | |
Gabor Juhos | 5a4dcfa | 2013-05-22 03:57:37 +0000 | [diff] [blame] | 14 | phys_size_t initdram(int board_type) |
| 15 | { |
| 16 | return CONFIG_SYS_MEM_SIZE; |
| 17 | } |
| 18 | |
| 19 | int checkboard(void) |
| 20 | { |
| 21 | puts("Board: MIPS Malta CoreLV (Qemu)\n"); |
| 22 | return 0; |
| 23 | } |
Gabor Juhos | 0156431 | 2013-05-22 03:57:38 +0000 | [diff] [blame] | 24 | |
| 25 | void _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 | } |