summaryrefslogtreecommitdiff
path: root/board/keymile
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2011-02-22 08:58:19 +0100
committerWolfgang Denk <wd@denx.de>2011-04-30 00:44:47 +0200
commitaf895e4527c3870dc73fb879f7a8610e4ae70ca6 (patch)
tree63f8b0f86c247fba6a4a794be30f5a477b713734 /board/keymile
parenteffe5e8cdacc23dcc7a07a79be7d6d03804cf507 (diff)
downloadu-boot-imx-af895e4527c3870dc73fb879f7a8610e4ae70ca6.zip
u-boot-imx-af895e4527c3870dc73fb879f7a8610e4ae70ca6.tar.gz
u-boot-imx-af895e4527c3870dc73fb879f7a8610e4ae70ca6.tar.bz2
ppc: add support for ppc based board mgcoge2ne
The mgcoge2 board from keymile deploys two different processors. An ARM based Kirkwood for the "unit" part of the SW and a PPC for the "ne" part of the SW. Therefore in Linux and U-Boot the names for the board are mgcoge2un and mgcoge2ne. This patch adds the mgcoge2ne part of the board. The ppc part of mgboge2 is quite similar to mgcoge, therefore a generic header km82xx-common.h was introduced to collect all similiarities. Currently the only difference is that mgcoge2ne has a 64 MB numonyx NOR flash with a single die. The mgcoge has a dual die flash 2*32MB from spansion. Signed-off-by: Holger Brunck <holger.brunck@keymile.com> Signed-off-by: Heiko Schocher <hs@denx.de> cc: Wolfgang Denk <wd@denx.de> cc: Valentin Longchamp <valentin.longchamp@keymile.com>
Diffstat (limited to 'board/keymile')
-rw-r--r--board/keymile/common/common.c4
-rw-r--r--board/keymile/mgcoge/mgcoge.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/board/keymile/common/common.c b/board/keymile/common/common.c
index 85538d0..8564b9c 100644
--- a/board/keymile/common/common.c
+++ b/board/keymile/common/common.c
@@ -22,7 +22,7 @@
*/
#include <common.h>
-#if defined(CONFIG_MGCOGE)
+#if defined(CONFIG_MGCOGE) || defined(CONFIG_MGCOGE2NE)
#include <mpc8260.h>
#endif
#include <ioports.h>
@@ -343,7 +343,7 @@ int ivm_read_eeprom(void)
#define DELAY_ABORT_SEQ 62
#define DELAY_HALF_PERIOD (500 / (CONFIG_SYS_I2C_SPEED / 1000))
-#if defined(CONFIG_MGCOGE)
+#if defined(CONFIG_MGCOGE) || defined(CONFIG_MGCOGE2NE)
#define SDA_MASK 0x00010000
#define SCL_MASK 0x00020000
static void set_pin(int state, unsigned long mask)
diff --git a/board/keymile/mgcoge/mgcoge.c b/board/keymile/mgcoge/mgcoge.c
index ee34705..838f24b 100644
--- a/board/keymile/mgcoge/mgcoge.c
+++ b/board/keymile/mgcoge/mgcoge.c
@@ -284,7 +284,11 @@ phys_size_t initdram(int board_type)
int checkboard(void)
{
+#if defined(CONFIG_MGCOGE)
puts("Board: Keymile mgcoge");
+#else
+ puts("Board: Keymile mgcoge2ne");
+#endif
if (ethernet_present())
puts(" with PIGGY.");
puts("\n");