diff options
Diffstat (limited to 'arch/mips/boards/tplink-mr3020')
-rw-r--r-- | arch/mips/boards/tplink-mr3020/Makefile | 2 | ||||
-rw-r--r-- | arch/mips/boards/tplink-mr3020/board.c | 27 | ||||
-rw-r--r-- | arch/mips/boards/tplink-mr3020/lowlevel.S (renamed from arch/mips/boards/tplink-mr3020/include/board/board_pbl_start.h) | 30 |
3 files changed, 9 insertions, 50 deletions
diff --git a/arch/mips/boards/tplink-mr3020/Makefile b/arch/mips/boards/tplink-mr3020/Makefile index dcfc2937d3..b08c4a93ca 100644 --- a/arch/mips/boards/tplink-mr3020/Makefile +++ b/arch/mips/boards/tplink-mr3020/Makefile @@ -1 +1 @@ -obj-y += board.o +lwl-y += lowlevel.o diff --git a/arch/mips/boards/tplink-mr3020/board.c b/arch/mips/boards/tplink-mr3020/board.c deleted file mode 100644 index 318998cc49..0000000000 --- a/arch/mips/boards/tplink-mr3020/board.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 model_hostname_init(void) -{ - barebox_set_hostname("mr3020"); - - return 0; -} -postcore_initcall(model_hostname_init); diff --git a/arch/mips/boards/tplink-mr3020/include/board/board_pbl_start.h b/arch/mips/boards/tplink-mr3020/lowlevel.S index e70f55e873..e3e6a61b78 100644 --- a/arch/mips/boards/tplink-mr3020/include/board/board_pbl_start.h +++ b/arch/mips/boards/tplink-mr3020/lowlevel.S @@ -1,28 +1,18 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ /* * 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. - * */ +#define BOARD_PBL_START start_tplink_mr3020 + +#include <mach/debug_ll.h> #include <asm/pbl_macros.h> +#include <asm/asm.h> #include <mach/pbl_macros.h> #include <asm/pbl_nmon.h> - .macro board_pbl_start - .set push - .set noreorder +ENTRY_FUNCTION(BOARD_PBL_START) mips_barebox_10h @@ -45,8 +35,7 @@ skip_pll_ram_config: pbl_ar9331_uart_enable - debug_ll_ar9331_init - mips_nmon + debug_ll_ath79_init /* * It is amazing but we have to enable MDIO on GPIO @@ -54,7 +43,4 @@ skip_pll_ram_config: */ pbl_ar9331_mdio_gpio_enable - copy_to_link_location pbl_start - - .set pop - .endm +ENTRY_FUNCTION_END(BOARD_PBL_START, tplink_mr3020) |