1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/mips-malta/malta.c
Neil Jones d09fd777fc boards: mips-malta: Add basic malta FPGA support.
Add basic support for the MIPS malta FPGA platform.
2017-02-09 12:22:28 +00:00

29 lines
680 B
C

/*
* Copyright 2016, Imagination Technologies Limited and/or its
* affiliated group companies.
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
#include <stdio.h>
#include "periph/uart.h"
#define MIPS_MALTA_ADDR (0xbf000500)
#define MIPS_MALTA_VAL_RST (0x42)
static void malta_reset(void)
{
*(volatile long *)MIPS_MALTA_ADDR = MIPS_MALTA_VAL_RST;
__asm__ volatile ("wait");
}
void board_init(void)
{
/* Board initialisation is done by the bootloader (u-boot) on Malta */
}
void pm_reboot(void)
{
malta_reset();
}