MIPS: ath79: add black-swift board support
Black Swift is a tiny coin-sized embedded computer based on AR9331 SoC. See http://www.black-swift.com/ for details. See also Black Swift kickstarter page: https://www.kickstarter.com/projects/1133560316/black-swift-tiny-wireless-computer Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
82bd8277f2
commit
770f98d3bf
|
@ -80,6 +80,7 @@ board-$(CONFIG_BOARD_NETGEAR_WG102) := netgear-wg102
|
|||
|
||||
machine-$(CONFIG_MACH_MIPS_ATH79) := ath79
|
||||
board-$(CONFIG_BOARD_TPLINK_MR3020) := tplink-mr3020
|
||||
board-$(CONFIG_BOARD_BLACK_SWIFT) := black-swift
|
||||
|
||||
machine-$(CONFIG_MACH_MIPS_BCM47XX) := bcm47xx
|
||||
board-$(CONFIG_BOARD_DLINK_DIR320) := dlink-dir-320
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
obj-y += board.o
|
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
* Copyright (C) 2015 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 model_hostname_init(void)
|
||||
{
|
||||
barebox_set_hostname("black-swift");
|
||||
|
||||
return 0;
|
||||
}
|
||||
postcore_initcall(model_hostname_init);
|
|
@ -0,0 +1,41 @@
|
|||
/*
|
||||
* Copyright (C) 2013, 2015 Antony Pavlov <antonynpavlov@gmail.com>
|
||||
* Copyright (C) 2013 Oleksij Rempel <linux@rempel-privat.de>
|
||||
*
|
||||
* 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 <asm/pbl_macros.h>
|
||||
#include <mach/pbl_macros.h>
|
||||
#include <asm/pbl_nmon.h>
|
||||
|
||||
.macro board_pbl_start
|
||||
.set push
|
||||
.set noreorder
|
||||
|
||||
mips_barebox_10h
|
||||
|
||||
mips_disable_interrupts
|
||||
|
||||
pbl_ar9331_pll
|
||||
pbl_ar9331_ddr2_config
|
||||
|
||||
pbl_ar9331_uart_enable
|
||||
debug_ll_ar9331_init
|
||||
mips_nmon
|
||||
|
||||
copy_to_link_location pbl_start
|
||||
|
||||
.set pop
|
||||
.endm
|
|
@ -0,0 +1,34 @@
|
|||
/dts-v1/;
|
||||
|
||||
#include "ar9331.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Black Swift";
|
||||
compatible = "smartlx,black-swift";
|
||||
|
||||
memory {
|
||||
reg = <0x00000000 0x4000000>;
|
||||
};
|
||||
|
||||
aliases {
|
||||
spiflash = &spiflash;
|
||||
};
|
||||
};
|
||||
|
||||
&serial0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&spi {
|
||||
num-chipselects = <1>;
|
||||
status = "okay";
|
||||
|
||||
/* Winbond W25Q128FV SPI flash */
|
||||
spiflash: m25p80@0 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
compatible = "m25p80";
|
||||
spi-max-frequency = <104000000>;
|
||||
reg = <0>;
|
||||
};
|
||||
};
|
|
@ -13,6 +13,12 @@ config BOARD_TPLINK_MR3020
|
|||
select HAVE_IMAGE_COMPRESSION
|
||||
select HAS_NMON
|
||||
|
||||
config BOARD_BLACK_SWIFT
|
||||
bool "Black Swift"
|
||||
select HAVE_PBL_IMAGE
|
||||
select HAVE_IMAGE_COMPRESSION
|
||||
select HAS_NMON
|
||||
|
||||
endchoice
|
||||
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue