[U-Boot] [PATCH V7 3/3] Add support for the LaCie ED Mini V2 board

2010-06-09 Thread Albert Aribaud
This patch adds support for the LaCie ED Mini V2 product
which is based on the Marvell Orion5x SoC.

Signed-off-by: Albert Aribaud 
---
 MAINTAINERS |4 +
 MAKEALL |1 +
 Makefile|3 +
 board/LaCie/edminiv2/Makefile   |   53 
 board/LaCie/edminiv2/config.mk  |   27 ++
 board/LaCie/edminiv2/edminiv2.c |   92 +
 include/configs/edminiv2.h  |  172 +++
 7 files changed, 352 insertions(+), 0 deletions(-)
 create mode 100644 board/LaCie/edminiv2/Makefile
 create mode 100644 board/LaCie/edminiv2/config.mk
 create mode 100644 board/LaCie/edminiv2/edminiv2.c
 create mode 100644 include/configs/edminiv2.h

diff --git a/MAINTAINERS b/MAINTAINERS
index 7a13d28..f6d6f41 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -525,6 +525,10 @@ Unknown / orphaned boards:
 #  Board   CPU #
 #
 
+Albert ARIBAUD 
+
+   edminiv2ARM926EJS (Orion5x SoC)
+
 Rowel Atienza 
 
armadillo   ARM720T
diff --git a/MAKEALL b/MAKEALL
index 2527352..7689ed2 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -569,6 +569,7 @@ LIST_ARM9=" \
edb9312 \
edb9315 \
edb9315a\
+   edminiv2\
guruplug\
imx27lite   \
lpd7a400\
diff --git a/Makefile b/Makefile
index c26e491..cebd2de 100644
--- a/Makefile
+++ b/Makefile
@@ -2943,6 +2943,9 @@ davinci_dm365evm_config : unconfig
 davinci_dm6467evm_config : unconfig
@$(MKCONFIG) $(@:_config=) arm arm926ejs dm6467evm davinci davinci
 
+edminiv2_config: unconfig
+   @$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) LaCie orion5x
+
 guruplug_config: unconfig
@$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) Marvell kirkwood
 
diff --git a/board/LaCie/edminiv2/Makefile b/board/LaCie/edminiv2/Makefile
new file mode 100644
index 000..df542dc
--- /dev/null
+++ b/board/LaCie/edminiv2/Makefile
@@ -0,0 +1,53 @@
+#
+# Copyright (C) 2010 Albert ARIBAUD 
+#
+# Based on original Kirkwood support which is
+# (C) Copyright 2009
+# Marvell Semiconductor 
+# Written-by: Prafulla Wadaskar 
+#
+# 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
+#
+
+include $(TOPDIR)/config.mk
+
+LIB= $(obj)lib$(BOARD).a
+
+COBJS  := edminiv2.o
+
+SRCS   := $(COBJS:.o=.c)
+OBJS   := $(addprefix $(obj),$(COBJS))
+
+$(LIB):$(obj).depend $(OBJS)
+   $(AR) $(ARFLAGS) $@ $(OBJS)
+
+clean:
+   rm -f $(OBJS)
+
+distclean: clean
+   rm -f $(LIB) core *.bak .depend
+
+#
+
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#
diff --git a/board/LaCie/edminiv2/config.mk b/board/LaCie/edminiv2/config.mk
new file mode 100644
index 000..3dec1aa
--- /dev/null
+++ b/board/LaCie/edminiv2/config.mk
@@ -0,0 +1,27 @@
+#
+# Copyright (C) 2010 Albert ARIBAUD 
+#
+# (C) Copyright 2009
+# Marvell Semiconductor 
+# Written-by: Prafulla Wadaskar 
+#
+# 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
+#
+
+TEXT_BASE = 0x0010
diff --git a/board/LaCie/edminiv2/edminiv2.c b/board/LaCie/edminiv2/edminiv2.c
new f

Re: [U-Boot] [PATCH V7 3/3] Add support for the LaCie ED Mini V2 board

2010-06-10 Thread Prafulla Wadaskar
 

> -Original Message-
> From: u-boot-boun...@lists.denx.de 
> [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Albert Aribaud
> Sent: Thursday, June 10, 2010 2:20 AM
> To: u-boot@lists.denx.de
> Subject: [U-Boot] [PATCH V7 3/3] Add support for the LaCie ED 
> Mini V2 board
> 
> This patch adds support for the LaCie ED Mini V2 product
> which is based on the Marvell Orion5x SoC.
> 
> Signed-off-by: Albert Aribaud 
> ---
>  MAINTAINERS |4 +
>  MAKEALL |1 +
>  Makefile|3 +
>  board/LaCie/edminiv2/Makefile   |   53 
>  board/LaCie/edminiv2/config.mk  |   27 ++
>  board/LaCie/edminiv2/edminiv2.c |   92 +
>  include/configs/edminiv2.h  |  172 
...snip...
> +/*
> + * Board-specific values for Orion5x MPP low level init:
> + * - MPPs 12 to 15 are SATA LEDs (mode 5)
> + * - Others are GPIO/unused (mode 3 for MPP0, mode 5 for
> + *   MPP16 to MPP19, mode 0 for others
> + */
> +
> +#define ORION5X_MPP0_7   0x0003
> +#define ORION5X_MPP8_15  0x
> +#define ORION5X_MPP16_23 0x
> +
> +/*
> + * Board-specific values for Orion5x GPIO low level init:
> + * - GPIO3 is input (RTC interrupt)
> + * - GPIO16 is Power LED control (0 = on, 1 = off)
> + * - GPIO17 is Power LED source select (0 = CPLD, 1 = GPIO16)
> + * - GPIO18 is Power Button status (0 = Released, 1 = Pressed)
> + * - Last GPIO is 26, further bits are supposed to be 0.
> + * Enable mask has ones for INPUT, 0 for OUTPUT.
> + * Default is LED ON.
> + */
> +
> +#define ORION5X_GPIO_OUT_ENABLE  0x03fc
> +#define ORION5X_GPIO_OUT_VALUE   0x03fc

Ack for the patch, except above definition to be used in patch 1/3
Regards..
Prafulla . .
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot