On 06/25/2013 11:27 PM, Sascha Silbe wrote:
With latest support for Marvell Dove SoC, add the SolidRun CuBox as
the very first board with that SoC.
Three variants are provided:
1. A regular SPI boot image for CuBox (1GiB)
The CuBox (without "Pro") has 1GiB of memory.
2. A regular SPI boot image for CuBox Pro (2GiB)
The CuBox Pro has 2GiB of memory. Because larger SDRAM chips are
used, tRFC needs to be longer than on the 1GiB variant.
3. A UART boot image for both CuBox and CuBox Pro
This is just for recovery purposes, so the smaller memory map (on
CuBox Pro) and slower SDRAM access (on CuBox) doesn't
matter. Having a single image that works on both hardware variants
is quite convenient during recovery.
Signed-off-by: Sascha Silbe<t-ub...@infra-silbe.de>
---
[...]
diff --git a/boards.cfg b/boards.cfg
index c0c4282..3605d3a 100644
--- a/boards.cfg
+++ b/boards.cfg
@@ -331,6 +331,9 @@ dalmore arm armv7:arm720t
dalmore nvidia
colibri_t20_iris arm armv7:arm720t colibri_t20_iris
toradex tegra20
u8500_href arm armv7 u8500
st-ericsson u8500
snowball arm armv7 snowball
st-ericsson u8500
+cubox arm armv7 cubox
solidrun dove cubox:CUBOX_1GB
+cubox_pro arm armv7 cubox
solidrun dove cubox:CUBOX_2GB
+cubox_uart arm armv7 cubox
solidrun dove cubox:CUBOX_UART_BOOT
How about CUBOX_SPI_1GB, CUBOX_SPI_2GB, CUBOX_UART ?
Also, sort order in boards.cfg should be
ARCH (arm), CPU (armv7), SoC (dove), Vendor (solidrun), Target
kzm9g arm armv7 kzm9g kmc
rmobile
armadillo-800eva arm armv7 armadillo-800eva
atmark-techno rmobile
zynq arm armv7 zynq
xilinx zynq
diff --git a/include/configs/cubox.h b/include/configs/cubox.h
new file mode 100644
index 0000000..7d5845c
--- /dev/null
+++ b/include/configs/cubox.h
@@ -0,0 +1,185 @@
+/*
+ * SolidRun CuBox config
+ *
+ * Sebastian Hesselbarth<sebastian.hesselba...@gmail.com>
+ *
+ * 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 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301 USA
+ */
+
+#ifndef _CONFIG_CUBOX_H
+#define _CONFIG_CUBOX_H
+#include<asm/sizes.h>
+
+/*
+ * Version number information
+ */
+#define CONFIG_IDENT_STRING "SolidRun CuBox"
+
+#undef CONFIG_SYS_KWD_CONFIG
+#if defined(CONFIG_CUBOX_UART_BOOT)
+#define CONFIG_SYS_KWD_CONFIG $(SRCTREE)/$(CONFIG_BOARDDIR)/kwbimage-uart.cfg
+#elif defined(CONFIG_CUBOX_1GB)
+#define CONFIG_SYS_KWD_CONFIG
$(SRCTREE)/$(CONFIG_BOARDDIR)/kwbimage-spi-1gb.cfg
+#elif defined(CONFIG_CUBOX_2GB)
+#define CONFIG_SYS_KWD_CONFIG
$(SRCTREE)/$(CONFIG_BOARDDIR)/kwbimage-spi-2gb.cfg
+#endif
ditto wrt to CONFIG_CUBOX_*
Sebastian
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot