ARM: mvebu: Add Plat'home's Kirkwood Openblocks A6 board support
This commit adds a new Marvell Kirkwood-based board, by following the currently supported boards. Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
1a215f5329
commit
906afb5331
|
@ -79,6 +79,7 @@ obj-$(CONFIG_MACH_PCM049) += phytec-phycore-omap4460/
|
|||
obj-$(CONFIG_MACH_PCM051) += phytec-phycore-am335x/
|
||||
obj-$(CONFIG_MACH_PHYTEC_PFLA02) += phytec-phyflex-imx6/
|
||||
obj-$(CONFIG_MACH_PLATHOME_OPENBLOCKS_AX3) += plathome-openblocks-ax3/
|
||||
obj-$(CONFIG_MACH_PLATHOME_OPENBLOCKS_A6) += plathome-openblocks-a6/
|
||||
obj-$(CONFIG_MACH_PM9261) += pm9261/
|
||||
obj-$(CONFIG_MACH_PM9263) += pm9263/
|
||||
obj-$(CONFIG_MACH_PM9G45) += pm9g45/
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
obj-y += board.o
|
||||
lwl-y += lowlevel.o
|
|
@ -0,0 +1 @@
|
|||
/* empty */
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* 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 <sizes.h>
|
||||
#include <asm/barebox-arm.h>
|
||||
#include <asm/barebox-arm-head.h>
|
||||
#include <mach/lowlevel.h>
|
||||
|
||||
extern char __dtb_kirkwood_openblocks_a6_bb_start[];
|
||||
|
||||
ENTRY_FUNCTION(start_plathome_openblocks_a6, r0, r1, r2)
|
||||
{
|
||||
void *fdt;
|
||||
|
||||
arm_cpu_lowlevel_init();
|
||||
|
||||
fdt = __dtb_kirkwood_openblocks_a6_bb_start -
|
||||
get_runtime_offset();
|
||||
|
||||
mvebu_barebox_entry(fdt);
|
||||
}
|
|
@ -27,6 +27,7 @@ pbl-dtb-$(CONFIG_MACH_PCM038) += imx27-phytec-phycore-rdk.dtb.o
|
|||
pbl-dtb-$(CONFIG_MACH_PCM051) += am335x-phytec-phycore.dtb.o
|
||||
pbl-dtb-$(CONFIG_MACH_PHYTEC_PFLA02) += imx6s-phytec-pbab01.dtb.o imx6dl-phytec-pbab01.dtb.o imx6q-phytec-pbab01.dtb.o
|
||||
pbl-dtb-$(CONFIG_MACH_PLATHOME_OPENBLOCKS_AX3) += armada-xp-openblocks-ax3-4-bb.dtb.o
|
||||
pbl-dtb-$(CONFIG_MACH_PLATHOME_OPENBLOCKS_A6) += kirkwood-openblocks_a6-bb.dtb.o
|
||||
pbl-dtb-$(CONFIG_MACH_RADXA_ROCK) += rk3188-radxarock.dtb.o
|
||||
pbl-dtb-$(CONFIG_MACH_REALQ7) += imx6q-dmo-edmqmx6.dtb.o
|
||||
pbl-dtb-$(CONFIG_MACH_SABRELITE) += imx6q-sabrelite.dtb.o imx6dl-sabrelite.dtb.o
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* Barebox specific DT overlay for OpenBlocks A6 board
|
||||
*/
|
||||
|
||||
#include "arm/kirkwood-openblocks_a6.dts"
|
||||
|
||||
/ {
|
||||
gpio-leds {
|
||||
led-green {
|
||||
barebox,default-trigger = "heartbeat";
|
||||
};
|
||||
};
|
||||
};
|
|
@ -81,6 +81,9 @@ if ARCH_KIRKWOOD
|
|||
config MACH_GLOBALSCALE_GURUPLUG
|
||||
bool "Guruplug"
|
||||
|
||||
config MACH_PLATHOME_OPENBLOCKS_A6
|
||||
bool "PlatHome OpenBlocks A6"
|
||||
|
||||
config MACH_USI_TOPKICK
|
||||
bool "Topkick"
|
||||
|
||||
|
|
|
@ -72,6 +72,17 @@ image-$(CONFIG_MACH_GLOBALSCALE_GURUPLUG) += barebox-globalscale-guruplug.img
|
|||
image-$(CONFIG_MACH_GLOBALSCALE_GURUPLUG) += barebox-globalscale-guruplug-uart.img
|
||||
image-$(CONFIG_MACH_GLOBALSCALE_GURUPLUG) += barebox-globalscale-guruplug-2nd.img
|
||||
|
||||
PLATHOME_OPENBLOCKS_A6_KWBOPTS = ${KWBOPTS} -i $(board)/plathome-openblocks-a6/kwbimage.cfg
|
||||
OPTS_start_plathome_openblocks_a6.pblx.kwbimg = $(PLATHOME_OPENBLOCKS_A6_KWBOPTS)
|
||||
OPTS_start_plathome_openblocks_a6.pblx.kwbuartimg = -m uart $(PLATHOME_OPENBLOCKS_A6_KWBOPTS)
|
||||
FILE_barebox-plathome-openblocks-a6.img = start_plathome_openblocks_a6.pblx.kwbimg
|
||||
FILE_barebox-plathome-openblocks-a6-uart.img = start_plathome_openblocks_a6.pblx.kwbuartimg
|
||||
FILE_barebox-plathome-openblocks-a6-2nd.img = start_plathome_openblocks_a6.pblx
|
||||
pblx-$(CONFIG_MACH_PLATHOME_OPENBLOCKS_A6) += start_plathome_openblocks_a6
|
||||
image-$(CONFIG_MACH_PLATHOME_OPENBLOCKS_A6) += barebox-plathome-openblocks-a6.img
|
||||
image-$(CONFIG_MACH_PLATHOME_OPENBLOCKS_A6) += barebox-plathome-openblocks-a6-uart.img
|
||||
image-$(CONFIG_MACH_PLATHOME_OPENBLOCKS_A6) += barebox-plathome-openblocks-a6-2nd.img
|
||||
|
||||
USI_TOPKICK_KWBOPTS = ${KWBOPTS} -i $(board)/usi-topkick/kwbimage.cfg
|
||||
OPTS_start_usi_topkick.pblx.kwbimg = $(USI_TOPKICK_KWBOPTS)
|
||||
OPTS_start_usi_topkick.pblx.kwbuartimg = -m uart $(USI_TOPKICK_KWBOPTS)
|
||||
|
|
Loading…
Reference in New Issue