diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2014-03-16 17:48:19 +0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-03-19 21:42:55 +0100 |
commit | 911d1ba2fa4ae4da2089596e8245aa232412018b (patch) | |
tree | 6195c3b4b8b9862005763627b76f091fbf70cc57 /arch/arm/boards/virt2real | |
parent | ec27913f0855889ffa87bdceccaa8365c4f7ee8e (diff) | |
download | barebox-911d1ba2fa4ae4da2089596e8245aa232412018b.tar.gz barebox-911d1ba2fa4ae4da2089596e8245aa232412018b.tar.xz |
ARM: davinci: add virt2real board support
The virt2real microcontroller, or virturilka,
is a miniature board for creation of WiFi
or internet controllable smart devices.
See http://virt2real.com for details.
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/virt2real')
-rw-r--r-- | arch/arm/boards/virt2real/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/boards/virt2real/board.c | 27 | ||||
-rw-r--r-- | arch/arm/boards/virt2real/lowlevel.c | 34 |
3 files changed, 62 insertions, 0 deletions
diff --git a/arch/arm/boards/virt2real/Makefile b/arch/arm/boards/virt2real/Makefile new file mode 100644 index 0000000000..b2f44bba1b --- /dev/null +++ b/arch/arm/boards/virt2real/Makefile @@ -0,0 +1 @@ +obj-y += lowlevel.o board.o diff --git a/arch/arm/boards/virt2real/board.c b/arch/arm/boards/virt2real/board.c new file mode 100644 index 0000000000..b7f72171bb --- /dev/null +++ b/arch/arm/boards/virt2real/board.c @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2014 Antony Pavlov <antonynpavlov@gmail.com> + * + * This file is part of barebox. + * See file CREDITS for list of people who contributed to this project. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 + * as published by the Free Software Foundation. + * + * 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 <init.h> + +static int hostname_init(void) +{ + barebox_set_hostname("virt2real"); + + return 0; +} +core_initcall(hostname_init); diff --git a/arch/arm/boards/virt2real/lowlevel.c b/arch/arm/boards/virt2real/lowlevel.c new file mode 100644 index 0000000000..3c90d78678 --- /dev/null +++ b/arch/arm/boards/virt2real/lowlevel.c @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2014 Antony Pavlov <antonynpavlov@gmail.com> + * + * This file is part of barebox. + * See file CREDITS for list of people who contributed to this project. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 + * as published by the Free Software Foundation. + * + * 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. + * + */ + +#define __LOWLEVEL_INIT__ + +#include <common.h> +#include <asm/barebox-arm.h> +#include <asm/barebox-arm-head.h> +#include <init.h> +#include <sizes.h> + +#define VIRT2REAL_SRAM_BASE 0x82000000 +#define VIRT2REAL_SRAM_SIZE SZ_16M + +void __naked __bare_init barebox_arm_reset_vector(void) +{ + arm_cpu_lowlevel_init(); + + barebox_arm_entry(VIRT2REAL_SRAM_BASE, VIRT2REAL_SRAM_SIZE, 0); +} |