[PATCH v1 2/4] MIPS: add generic QCA AR9331 board
Sascha Hauer
s.hauer at pengutronix.de
Tue Dec 5 00:00:53 PST 2017
On Fri, Dec 01, 2017 at 01:52:49PM +0100, Oleksij Rempel wrote:
> this board may cover most of existing ar9331 boards
>
> Signed-off-by: Oleksij Rempel <linux at rempel-privat.de>
> ---
> arch/mips/Makefile | 1 +
> arch/mips/boards/qca-ar9331-generic/Makefile | 1 +
> arch/mips/boards/qca-ar9331-generic/board.c | 8 ++++
> .../include/board/board_pbl_start.h | 46 ++++++++++++++++++++++
> arch/mips/mach-ath79/Kconfig | 7 ++++
> 5 files changed, 63 insertions(+)
> create mode 100644 arch/mips/boards/qca-ar9331-generic/Makefile
> create mode 100644 arch/mips/boards/qca-ar9331-generic/board.c
> create mode 100644 arch/mips/boards/qca-ar9331-generic/include/board/board_pbl_start.h
>
> diff --git a/arch/mips/Makefile b/arch/mips/Makefile
> index dd5ceea20..c40ae6604 100644
> --- a/arch/mips/Makefile
> +++ b/arch/mips/Makefile
> @@ -79,6 +79,7 @@ machine-$(CONFIG_MACH_MIPS_AR231X) := ar231x
> board-$(CONFIG_BOARD_NETGEAR_WG102) := netgear-wg102
>
> machine-$(CONFIG_MACH_MIPS_ATH79) := ath79
> +board-$(CONFIG_BOARC_QCA_AR9331_GENERIC) := qca-ar9331-generic
> board-$(CONFIG_BOARD_TPLINK_MR3020) := tplink-mr3020
> board-$(CONFIG_BOARD_TPLINK_WDR4300) := tplink-wdr4300
> board-$(CONFIG_BOARD_BLACK_SWIFT) := black-swift
> diff --git a/arch/mips/boards/qca-ar9331-generic/Makefile b/arch/mips/boards/qca-ar9331-generic/Makefile
> new file mode 100644
> index 000000000..dcfc2937d
> --- /dev/null
> +++ b/arch/mips/boards/qca-ar9331-generic/Makefile
> @@ -0,0 +1 @@
> +obj-y += board.o
> diff --git a/arch/mips/boards/qca-ar9331-generic/board.c b/arch/mips/boards/qca-ar9331-generic/board.c
> new file mode 100644
> index 000000000..7ec7ef8a5
> --- /dev/null
> +++ b/arch/mips/boards/qca-ar9331-generic/board.c
> @@ -0,0 +1,8 @@
> +#include <common.h>
> +#include <init.h>
> +
> +static int dummy_init(void)
> +{
> + return 0;
> +}
> +postcore_initcall(dummy_init);
Why this?
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list