Re: [U-Boot] [PATCH 2/3] Initialize second PHY on OpenRD-Client and OpenRD-Ultimate.

2011-04-12 Thread Julian Pidancet
Thank you for reworking this patch.

On 04/12/2011 09:09 AM, Clint Adams wrote:
 (rework of Julian Pidancet's patch)
 ---
  board/Marvell/openrd_base/openrd_base.c |   22 ++
  include/configs/openrd_base.h   |   14 --
  2 files changed, 30 insertions(+), 6 deletions(-)

 diff --git a/board/Marvell/openrd_base/openrd_base.c 
 b/board/Marvell/openrd_base/openrd_base.c
 index f7c63ac..c71d1ef 100644
 --- a/board/Marvell/openrd_base/openrd_base.c
 +++ b/board/Marvell/openrd_base/openrd_base.c
 @@ -124,12 +124,11 @@ int board_init(void)
  }
  
  #ifdef CONFIG_RESET_PHY_R
 -/* Configure and enable MV88E1116 PHY */
 -void reset_phy(void)
 +/* Configure and enable MV88E1116/88E1121 PHY */
 +void mv_phy_init(char *name)
  {
   u16 reg;
   u16 devadr;
 - char *name = egiga0;
  
   if (miiphy_set_current_dev(name))
   return;
 @@ -154,6 +153,21 @@ void reset_phy(void)
   /* reset the phy */
   miiphy_reset(name, devadr);
  
 - printf(88E1116 Initialized on %s\n, name);
 + printf(PHY_NO Initialized on %s\n, name);
 +}
 +
 +void reset_phy(void)
 +{
 +   mv_phy_init(egiga0);
 +
 +#ifdef CONFIG_BOARD_IS_OPENRD_CLIENT
 +   /* Kirkwood ethernet driver is written with the assumption that in 
 case
 +* of multiple PHYs, their addresses are consecutive. But 
 unfortunately
 +* in case of OpenRD-Client, PHY addresses are not consecutive.*/
 +   miiphy_write(egiga1, 0xEE, 0xEE, 24);
 +
 +   /* configure and initialize both PHY's */
 +   mv_phy_init(egiga1);
 +#endif

This part only initialize second PHY for the OpenRD-Client board and not
the OpenRD-Ultimate.
I would do something like:

#if defined(CONFIG_BOARD_IS_OPENRD_CLIENT) ||
defined(CONFIG_BOARD_IS_OPENRD_ULTIMATE)
#if defined(CONFIG_BOARD_IS_OPENRD_CLIENT)
miiphy_write(egiga1, 0xEE, 0xEE, 24);
#endif
mv_phy_init(egiga1);
#endif

Or similar.

  }
  #endif /* CONFIG_RESET_PHY_R */
 diff --git a/include/configs/openrd_base.h b/include/configs/openrd_base.h
 index 5e05890..aa13908 100644
 --- a/include/configs/openrd_base.h
 +++ b/include/configs/openrd_base.h
 @@ -117,8 +117,18 @@
   * Ethernet Driver configuration
   */
  #ifdef CONFIG_CMD_NET
 -#define CONFIG_MVGBE_PORTS   {1, 0}  /* enable port 0 only */
 -#define CONFIG_PHY_BASE_ADR  0x8
 +# ifdef CONFIG_BOARD_IS_OPENRD_BASE
 +#  define CONFIG_MVGBE_PORTS {1, 0}  /* enable port 0 only */
 +# else
 +#  define CONFIG_MVGBE_PORTS {1, 1}  /* enable both ports */
 +# endif
 +# ifdef CONFIG_BOARD_IS_OPENRD_ULTIMATE
 +#  define CONFIG_PHY_BASE_ADR0x0
 +#  define PHY_NO 88E1121
 +# else
 +#  define CONFIG_PHY_BASE_ADR0x8
 +#  define PHY_NO 88E1116
 +# endif
  #endif /* CONFIG_CMD_NET */
  
  /*

Thanks.


___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 0/4] Kirkwood: Add support for OpenRD-Client OpenRD-Ultimate

2011-03-25 Thread julian . pidancet
From: Julian Pidancet julian.pidan...@citrix.com

This patch modifies existing OpenRD-Base support to deal with all
the three OpenRD boards (OpenRD-Base, OpenRD-Client  OpenRD-Ultimate).
This is based on an original patch sent by Tanmay Upadhyay. Most of the
credits goes to him.
Previous version of this patch has been reworked to separate file renaming
from the actual addition of Client and Ultimate variants support.

A nice future improvement would be to add variant detection and configuration
at run-time as suggested on the mailing-list in a recent email. So one could
use the same binary for all board variants.

Julian Pidancet (4):
  Kirkwood: Rename openrd_base board files to openrd.
  Change OpenRD Base board identification string.
  Add support for the Client variant of the OpenRD board.
  Add support for the Ultimate variant of the OpenRD board

 MAKEALL|2 +
 board/Marvell/{openrd_base = openrd}/Makefile |2 +-
 board/Marvell/{openrd_base = openrd}/kwbimage.cfg |0
 .../{openrd_base/openrd_base.c = openrd/openrd.c} |   28 -
 .../{openrd_base/openrd_base.h = openrd/openrd.h} |6 +-
 boards.cfg |4 +-
 include/configs/openrd.h   |  107 
 include/configs/openrd_base.h  |   85 ++--
 include/configs/openrd_client.h|   44 
 include/configs/openrd_ultimate.h  |   44 
 10 files changed, 235 insertions(+), 87 deletions(-)
 rename board/Marvell/{openrd_base = openrd}/Makefile (98%)
 rename board/Marvell/{openrd_base = openrd}/kwbimage.cfg (100%)
 rename board/Marvell/{openrd_base/openrd_base.c = openrd/openrd.c} (83%)
 rename board/Marvell/{openrd_base/openrd_base.h = openrd/openrd.h} (95%)
 create mode 100644 include/configs/openrd.h
 create mode 100644 include/configs/openrd_client.h
 create mode 100644 include/configs/openrd_ultimate.h

-- 
Julian Pidancet

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 1/4] Kirkwood: Rename openrd_base board files to openrd.

2011-03-25 Thread julian . pidancet
From: Julian Pidancet julian.pidan...@citrix.com

This patch renames openrd_base to openrd in order to add support for
other boards of the OpenRD family in future commits. The openrd_base
board name remain in use.

Signed-off-by: Julian Pidancet julian.pidan...@citrix.com

 rename board/Marvell/{openrd_base = openrd}/Makefile (98%)
 rename board/Marvell/{openrd_base = openrd}/kwbimage.cfg (100%)
 rename board/Marvell/{openrd_base/openrd_base.c = openrd/openrd.c} (97%)
 rename board/Marvell/{openrd_base/openrd_base.h = openrd/openrd.h} (95%)
 create mode 100644 include/configs/openrd.h

diff --git a/board/Marvell/openrd_base/Makefile b/board/Marvell/openrd/Makefile
similarity index 98%
rename from board/Marvell/openrd_base/Makefile
rename to board/Marvell/openrd/Makefile
index d6d0ed3..19020e4 100644
--- a/board/Marvell/openrd_base/Makefile
+++ b/board/Marvell/openrd/Makefile
@@ -31,7 +31,7 @@ include $(TOPDIR)/config.mk
 
 LIB= $(obj)lib$(BOARD).o
 
-COBJS  := openrd_base.o
+COBJS  := openrd.o
 
 SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS))
diff --git a/board/Marvell/openrd_base/kwbimage.cfg 
b/board/Marvell/openrd/kwbimage.cfg
similarity index 100%
rename from board/Marvell/openrd_base/kwbimage.cfg
rename to board/Marvell/openrd/kwbimage.cfg
diff --git a/board/Marvell/openrd_base/openrd_base.c 
b/board/Marvell/openrd/openrd.c
similarity index 97%
rename from board/Marvell/openrd_base/openrd_base.c
rename to board/Marvell/openrd/openrd.c
index 10109c1..b395df7 100644
--- a/board/Marvell/openrd_base/openrd_base.c
+++ b/board/Marvell/openrd/openrd.c
@@ -31,7 +31,7 @@
 #include miiphy.h
 #include asm/arch/kirkwood.h
 #include asm/arch/mpp.h
-#include openrd_base.h
+#include openrd.h
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -110,7 +110,7 @@ int board_init(void)
/*
 * arch number of board
 */
-   gd-bd-bi_arch_number = MACH_TYPE_OPENRD_BASE;
+   gd-bd-bi_arch_number = MACH_TYPE_OPENRD;
 
/* adress of boot parameters */
gd-bd-bi_boot_params = kw_sdram_bar(0) + 0x100;
diff --git a/board/Marvell/openrd_base/openrd_base.h 
b/board/Marvell/openrd/openrd.h
similarity index 95%
rename from board/Marvell/openrd_base/openrd_base.h
rename to board/Marvell/openrd/openrd.h
index f3daf17..638d2ff 100644
--- a/board/Marvell/openrd_base/openrd_base.h
+++ b/board/Marvell/openrd/openrd.h
@@ -27,8 +27,8 @@
  * MA 02110-1301 USA
  */
 
-#ifndef __OPENRD_BASE_H
-#define __OPENRD_BASE_H
+#ifndef __OPENRD_H
+#define __OPENRD_H
 
 #define OPENRD_OE_LOW  (~(128))/* RS232 / RS485 */
 #define OPENRD_OE_HIGH (~(12)) /* SD / UART1 */
@@ -43,4 +43,4 @@
 #define MV88E1116_RGMII_TXTM_CTRL  (1  4)
 #define MV88E1116_RGMII_RXTM_CTRL  (1  5)
 
-#endif /* __OPENRD_BASE_H */
+#endif /* __OPENRD_H */
diff --git a/boards.cfg b/boards.cfg
index 45c3102..07c904b 100644
--- a/boards.cfg
+++ b/boards.cfg
@@ -96,7 +96,7 @@ davinci_sonata   arm arm926ejs   sonata   
   davinci
 suen3arm arm926ejs   km_arm  
keymilekirkwood
 guruplug arm arm926ejs   -   
Marvellkirkwood
 mv88f6281gtw_ge  arm arm926ejs   -   
Marvellkirkwood
-openrd_base  arm arm926ejs   -   
Marvellkirkwood
+openrd_base  arm arm926ejs   openrd  
Marvellkirkwood
 rd6281a  arm arm926ejs   -   
Marvellkirkwood
 sheevaplug   arm arm926ejs   -   
Marvellkirkwood
 dockstar arm arm926ejs   -   
Seagatekirkwood
diff --git a/include/configs/openrd.h b/include/configs/openrd.h
new file mode 100644
index 000..d7973dc
--- /dev/null
+++ b/include/configs/openrd.h
@@ -0,0 +1,107 @@
+/*
+ * (C) Copyright 2009
+ * Net Insight www.netinsight.net
+ * Written-by: Simon Kagstrom simon.kagst...@netinsight.net
+ *
+ * Based on sheevaplug.h:
+ * (C) Copyright 2009
+ * Marvell Semiconductor www.marvell.com
+ * Written-by: Prafulla Wadaskar prafu...@marvell.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

[U-Boot] [PATCH v2 2/4] Change OpenRD Base board identification string.

2011-03-25 Thread julian . pidancet
From: Julian Pidancet julian.pidan...@citrix.com

Renamed from Openrd_base to OpenRD-Base

Signed-off-by: Julian Pidancet julian.pidan...@citrix.com

diff --git a/include/configs/openrd_base.h b/include/configs/openrd_base.h
index 136d3bf..ba57d90 100644
--- a/include/configs/openrd_base.h
+++ b/include/configs/openrd_base.h
@@ -35,7 +35,7 @@
 /*
  * Version number information
  */
-#define CONFIG_IDENT_STRING\nOpenRD_base
+#define CONFIG_IDENT_STRING\nOpenRD-Base
 
 /* Machine type */
 #define MACH_TYPE_OPENRD MACH_TYPE_OPENRD_BASE
-- 
Julian Pidancet

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 3/4] Add support for the Client variant of the OpenRD board.

2011-03-25 Thread julian . pidancet
From: Julian Pidancet julian.pidan...@citrix.com

This patch takes care of initializing the second PHY of the
OpenRD board.

Signed-off-by: Julian Pidancet julian.pidan...@citrix.com

 create mode 100644 include/configs/openrd_client.h

diff --git a/MAKEALL b/MAKEALL
index a732e6a..ddf4a70 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -361,6 +361,7 @@ LIST_ARM9= \
omap5912osk \
omap730p2   \
openrd_base \
+   openrd_client   \
rd6281a \
sbc2410x\
scb9328 \
diff --git a/board/Marvell/openrd/openrd.c b/board/Marvell/openrd/openrd.c
index b395df7..fded3f0 100644
--- a/board/Marvell/openrd/openrd.c
+++ b/board/Marvell/openrd/openrd.c
@@ -118,12 +118,11 @@ int board_init(void)
 }
 
 #ifdef CONFIG_RESET_PHY_R
-/* Configure and enable MV88E1116 PHY */
-void reset_phy(void)
+/* Configure and enable MV88E1116/MV88E1121 PHY */
+void mv_phy_init(char *name)
 {
u16 reg;
u16 devadr;
-   char *name = egiga0;
 
if (miiphy_set_current_dev(name))
return;
@@ -150,4 +149,19 @@ void reset_phy(void)
 
printf(88E1116 Initialized on %s\n, name);
 }
+
+void reset_phy(void)
+{
+   mv_phy_init(egiga0);
+
+#if (MACH_TYPE_OPENRD == MACH_TYPE_OPENRD_CLIENT)
+   /* Kirkwood ethernet driver is written with the assumption that in case
+* of multiple PHYs, their addresses are consecutive. But unfortunately
+* in case of OpenRD-Client, PHY addresses are not consecutive.*/
+   miiphy_write(egiga1, 0xEE, 0xEE, 24);
+
+   /* configure and initialize both PHY's */
+   mv_phy_init(egiga1);
+#endif
+}
 #endif /* CONFIG_RESET_PHY_R */
diff --git a/boards.cfg b/boards.cfg
index 07c904b..5f5d2bf 100644
--- a/boards.cfg
+++ b/boards.cfg
@@ -97,6 +97,7 @@ suen3arm arm926ejs   km_arm   
   keymile
 guruplug arm arm926ejs   -   
Marvellkirkwood
 mv88f6281gtw_ge  arm arm926ejs   -   
Marvellkirkwood
 openrd_base  arm arm926ejs   openrd  
Marvellkirkwood
+openrd_clientarm arm926ejs   openrd  
Marvellkirkwood
 rd6281a  arm arm926ejs   -   
Marvellkirkwood
 sheevaplug   arm arm926ejs   -   
Marvellkirkwood
 dockstar arm arm926ejs   -   
Seagatekirkwood
diff --git a/include/configs/openrd_client.h b/include/configs/openrd_client.h
new file mode 100644
index 000..1ffc29f
--- /dev/null
+++ b/include/configs/openrd_client.h
@@ -0,0 +1,44 @@
+/*
+ * 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_OPENRD_CLIENT_H
+#define _CONFIG_OPENRD_CLIENT_H
+
+#include configs/openrd.h
+
+/*
+ * Version number information
+ */
+#define CONFIG_IDENT_STRING\nOpenRD-Client
+
+/* Machine type */
+#define MACH_TYPE_OPENRD MACH_TYPE_OPENRD_CLIENT
+
+/*
+ * Ethernet Driver configuration
+ */
+#ifdef CONFIG_CMD_NET
+/* enable both ports */
+#define CONFIG_MVGBE_PORTS  {1, 1}
+#define CONFIG_PHY_BASE_ADR 0x8
+#define PHY_NO  88E1116
+#endif /* CONFIG_CMD_NET */
+
+#endif /* _CONFIG_OPENRD_CLIENT_H */
-- 
Julian Pidancet

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 4/4] Add support for the Ultimate variant of the OpenRD board

2011-03-25 Thread julian . pidancet
From: Julian Pidancet julian.pidan...@citrix.com

This patch adds proper initialization code for the two PHYs
present on the board.

Signed-off-by: Julian Pidancet julian.pidan...@citrix.com

 create mode 100644 include/configs/openrd_ultimate.h

diff --git a/MAKEALL b/MAKEALL
index ddf4a70..4b6da98 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -362,6 +362,7 @@ LIST_ARM9= \
omap730p2   \
openrd_base \
openrd_client   \
+   openrd_ultimate \
rd6281a \
sbc2410x\
scb9328 \
diff --git a/board/Marvell/openrd/openrd.c b/board/Marvell/openrd/openrd.c
index fded3f0..d1b2554 100644
--- a/board/Marvell/openrd/openrd.c
+++ b/board/Marvell/openrd/openrd.c
@@ -147,7 +147,7 @@ void mv_phy_init(char *name)
/* reset the phy */
miiphy_reset(name, devadr);
 
-   printf(88E1116 Initialized on %s\n, name);
+   printf(PHY_NO Initialized on %s\n, name);
 }
 
 void reset_phy(void)
@@ -162,6 +162,8 @@ void reset_phy(void)
 
/* configure and initialize both PHY's */
mv_phy_init(egiga1);
+#elif (MACH_TYPE_OPENRD == MACH_TYPE_OPENRD_ULTIMATE)
+   mv_phy_init(egiga1);
 #endif
 }
 #endif /* CONFIG_RESET_PHY_R */
diff --git a/boards.cfg b/boards.cfg
index 5f5d2bf..513aa04 100644
--- a/boards.cfg
+++ b/boards.cfg
@@ -98,6 +98,7 @@ guruplug arm arm926ejs   -
   Marvell
 mv88f6281gtw_ge  arm arm926ejs   -   
Marvellkirkwood
 openrd_base  arm arm926ejs   openrd  
Marvellkirkwood
 openrd_clientarm arm926ejs   openrd  
Marvellkirkwood
+openrd_ultimate  arm arm926ejs   openrd  
Marvellkirkwood
 rd6281a  arm arm926ejs   -   
Marvellkirkwood
 sheevaplug   arm arm926ejs   -   
Marvellkirkwood
 dockstar arm arm926ejs   -   
Seagatekirkwood
diff --git a/include/configs/openrd_ultimate.h 
b/include/configs/openrd_ultimate.h
new file mode 100644
index 000..b616d6a
--- /dev/null
+++ b/include/configs/openrd_ultimate.h
@@ -0,0 +1,44 @@
+/*
+ * 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_OPENRD_ULTIMATE_H
+#define _CONFIG_OPENRD_ULTIMATE_H
+
+#include configs/openrd.h
+
+/*
+ * Version number information
+ */
+#define CONFIG_IDENT_STRING\nOpenRD-Ultimate
+
+/* Machine type */
+#define MACH_TYPE_OPENRD MACH_TYPE_OPENRD_ULTIMATE
+
+/*
+ * Ethernet Driver configuration
+ */
+#ifdef CONFIG_CMD_NET
+/* enable both ports */
+#define CONFIG_MVGBE_PORTS  {1, 1}
+#define CONFIG_PHY_BASE_ADR 0x0
+#define PHY_NO  88E1121
+#endif /* CONFIG_CMD_NET */
+
+#endif /* _CONFIG_OPENRD_ULTIMATE_H */
-- 
Julian Pidancet

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] Kirkwood: Add support for OpenRD-Client OpenRD-Ultimate

2011-02-08 Thread Julian Pidancet
This patch modifies existing OpenRD-Base support to deal with all
the three OpenRD boards (OpenRD-Base, OpenRD-Client  OpenRD-Ultimate).

This is a rebase onto master from an original patch sent by Tanmay Upadhyay a 
few months ago.
All credits goes to him.
It's been tested on my OpenRD-Ultimate and works perfectly fine. 

Signed-off-by: Julian Pidancet julian.pidan...@citrix.com
---
 MAKEALL |2 +
 board/Marvell/openrd/Makefile   |   56 ++
 board/Marvell/openrd/config.mk  |   33 ++
 board/Marvell/openrd/kwbimage.cfg   |  168 ++
 board/Marvell/openrd/openrd.c   |  173 +++
 board/Marvell/openrd/openrd.h   |   50 +
 board/Marvell/openrd_base/Makefile  |   56 --
 board/Marvell/openrd_base/kwbimage.cfg  |  168 --
 board/Marvell/openrd_base/openrd_base.c |  153 ---
 board/Marvell/openrd_base/openrd_base.h |   46 
 boards.cfg  |4 +-
 include/configs/openrd.h|  115 
 include/configs/openrd_base.h   |   92 +++--
 include/configs/openrd_client.h |   50 +
 include/configs/openrd_ultimate.h   |   50 +
 15 files changed, 714 insertions(+), 502 deletions(-)
 create mode 100644 board/Marvell/openrd/Makefile
 create mode 100644 board/Marvell/openrd/config.mk
 create mode 100644 board/Marvell/openrd/kwbimage.cfg
 create mode 100644 board/Marvell/openrd/openrd.c
 create mode 100644 board/Marvell/openrd/openrd.h
 delete mode 100644 board/Marvell/openrd_base/Makefile
 delete mode 100644 board/Marvell/openrd_base/kwbimage.cfg
 delete mode 100644 board/Marvell/openrd_base/openrd_base.c
 delete mode 100644 board/Marvell/openrd_base/openrd_base.h
 create mode 100644 include/configs/openrd.h
 create mode 100644 include/configs/openrd_client.h
 create mode 100644 include/configs/openrd_ultimate.h

diff --git a/MAKEALL b/MAKEALL
index a732e6a..4b6da98 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -361,6 +361,8 @@ LIST_ARM9= \
omap5912osk \
omap730p2   \
openrd_base \
+   openrd_client   \
+   openrd_ultimate \
rd6281a \
sbc2410x\
scb9328 \
diff --git a/board/Marvell/openrd/Makefile b/board/Marvell/openrd/Makefile
new file mode 100644
index 000..19020e4
--- /dev/null
+++ b/board/Marvell/openrd/Makefile
@@ -0,0 +1,56 @@
+#
+# (C) Copyright 2009
+# Net Insight www.netinsight.net
+# Written-by: Simon Kagstrom simon.kagst...@netinsight.net
+#
+# Based on sheevaplug:
+# (C) Copyright 2009
+# Marvell Semiconductor www.marvell.com
+# Written-by: Prafulla Wadaskar prafu...@marvell.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
+#
+
+include $(TOPDIR)/config.mk
+
+LIB= $(obj)lib$(BOARD).o
+
+COBJS  := openrd.o
+
+SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS   := $(addprefix $(obj),$(COBJS))
+SOBJS  := $(addprefix $(obj),$(SOBJS))
+
+$(LIB):$(obj).depend $(OBJS) $(SOBJS)
+   $(call cmd_link_o_target, $(OBJS) $(SOBJS))
+
+clean:
+   rm -f $(SOBJS) $(OBJS)
+
+distclean: clean
+   rm -f $(LIB) core *.bak .depend
+
+#
+
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#
diff --git a/board/Marvell/openrd/config.mk b/board/Marvell/openrd/config.mk
new file mode 100644
index 000..8ae355e
--- /dev/null
+++ b/board/Marvell/openrd/config.mk
@@ -0,0 +1,33 @@
+#
+# (C) Copyright 2009
+# Net Insight www.netinsight.net
+# Written-by: Simon Kagstrom simon.kagst...@netinsight.net
+#
+# Based on sheevaplug:
+# (C) Copyright 2009
+# Marvell Semiconductor www.marvell.com
+# Written-by: Prafulla Wadaskar prafu...@marvell.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