With Marvell Dove converted to common SoC init, board specific lowlevel
and init code can be removed. This patch leaves an empty board source
file to allow to have board specific quirks.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselba...@gmail.com>
---
Cc: Thomas Petazzoni <thomas.petazz...@free-electrons.com>
Cc: Sascha Hauer <s.ha...@pengutronix.de>
Cc: barebox@lists.infradead.org
---
 arch/arm/boards/solidrun-cubox/Makefile            |    3 +--
 .../solidrun-cubox/{solidrun-cubox.c => board.c}   |   14 +++--------
 arch/arm/boards/solidrun-cubox/lowlevel.c          |   26 --------------------
 3 files changed, 4 insertions(+), 39 deletions(-)
 rename arch/arm/boards/solidrun-cubox/{solidrun-cubox.c => board.c} (66%)
 delete mode 100644 arch/arm/boards/solidrun-cubox/lowlevel.c

diff --git a/arch/arm/boards/solidrun-cubox/Makefile 
b/arch/arm/boards/solidrun-cubox/Makefile
index 6dfe2c8..9320510 100644
--- a/arch/arm/boards/solidrun-cubox/Makefile
+++ b/arch/arm/boards/solidrun-cubox/Makefile
@@ -1,2 +1 @@
-obj-y = solidrun-cubox.o
-lwl-y += lowlevel.o
+obj-y += board.c
diff --git a/arch/arm/boards/solidrun-cubox/solidrun-cubox.c 
b/arch/arm/boards/solidrun-cubox/board.c
similarity index 66%
rename from arch/arm/boards/solidrun-cubox/solidrun-cubox.c
rename to arch/arm/boards/solidrun-cubox/board.c
index 1abce2f..a28f419 100644
--- a/arch/arm/boards/solidrun-cubox/solidrun-cubox.c
+++ b/arch/arm/boards/solidrun-cubox/board.c
@@ -1,6 +1,6 @@
 /*
- * Copyright
- * (C) 2013 Sebastian Hesselbarth <sebastian.hesselba...@gmail.com>
+ * Copyright (C) 2013
+ *  Sebastian Hesselbarth <sebastian.hesselba...@gmail.com>
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
@@ -14,12 +14,4 @@
  *
  */
 
-#include <common.h>
-#include <init.h>
-#include <mach/dove.h>
-
-static int solidrun_cubox_console_init(void)
-{
-       return dove_add_uart(0);
-}
-console_initcall(solidrun_cubox_console_init);
+/* empty */
diff --git a/arch/arm/boards/solidrun-cubox/lowlevel.c 
b/arch/arm/boards/solidrun-cubox/lowlevel.c
deleted file mode 100644
index 8a06cbc..0000000
--- a/arch/arm/boards/solidrun-cubox/lowlevel.c
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Copyright
- * (C) 2013 Sebastian Hesselbarth <sebastian.hesselba...@gmail.com>
- *
- * 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 <mach/dove.h>
-#include <asm/barebox-arm.h>
-#include <asm/barebox-arm-head.h>
-
-void __naked barebox_arm_reset_vector(void)
-{
-       arm_cpu_lowlevel_init();
-       dove_barebox_entry();
-}
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to