Re: [U-Boot-Users] Unable to erase or write into flash

2008-07-03 Thread navin karnam
Hi ,

You are right, flash protect was not happening properly because i was not
enabled the the FLAG
CFG_FLASH_PROTECTION. Now it is happening after enabling it.

Thanks and Regards,
Naveen.

On Fri, Jul 4, 2008 at 6:45 AM, Nobuhiro Iwamatsu <[EMAIL PROTECTED]>
wrote:

> Hi,
>
> 2008/7/3 navin karnam <[EMAIL PROTECTED]>:
> > Hi all,
> >
> >
> > I ported u-boot-1.3.3 on board, when boot the board iam getting
> messagesas
> > below.
> What do you use archtechture?
>
> 
> >
> > But when try erasing flash :
> > #erase  all
> > Erase Flash Bank # 1 - Warning: 259 protected sectors will not be erased!
> >  done
> >
> > So i enabled the flash for writing using:
> > #protect off all
> > Un-Protect Flash Bank # 1
> >
> > After that also i am unable erase the flash:
> > #erase all
> > ---
> > Flash erase error at address 68
> > Block Erase Error.
> > Block locked.
>
> I think you failed flash protect off. Please check protect infomation
> by flinfo command after protect off.
> When protection is not excluded, setting of Flash may be wrong.
>
> 
>
> >
> ---
> >
> > So how do i erase or write into flash,  do i need to write my code which
> > should do erase and writting into flash? or
> > The code in u-boot is sufficient to that?
>
> Best regards,
>  Nobuhiro
>



--
-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH] net: smc911x: sh: Add support RSK7203 board to smc911x

2008-07-03 Thread Nobuhiro Iwamatsu
Hi, Ben.

Thank you for your comments.

2008/7/4 Ben Warren <[EMAIL PROTECTED]>:
> Hi Nobuhiro,
>
> Nobuhiro Iwamatsu wrote:
>> The RSK board has the SMSC9118 wired up 'incorrectly'.
>> This problem can support in the software side.
>> I put a code to evade it.
>>
>>
> Putting a board fix in a common driver is not cool.
Yes , I know.
However, this problem occurs in read/write of FIFO.
Therefore, I made a pkt_data_pull/pkt_data_push function newly.
And I change it with a preprocessor.

> Please provide more
> generic word-swapping versions of reg_read and reg_write, or something
> else like that.
OK, I will change swabXX and resend.

Best regards,
 Nobuhiro

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] u-boot and OneNAND

2008-07-03 Thread Kyungmin Park
On Fri, Jul 4, 2008 at 9:57 AM, Jerry Van Baren <[EMAIL PROTECTED]> wrote:
> Kyungmin Park wrote:
>>
>> On Thu, Jul 3, 2008 at 1:58 PM, Kyungmin Park <[EMAIL PROTECTED]>
>> wrote:
>>>
>>> Hi,
>>>
>>> On Wed, Jul 2, 2008 at 8:55 PM, Mile Davidovic <[EMAIL PROTECTED]>
>>> wrote:

 Hello
 If I read code correctly u-boot have OneNAND driver. But when I check
 JFFS2
 in u-boot it seems that JFFS2 can not work on OneNAND.
>>>
>>> Yes, it's not yet implemented.
>>>
>>
>> Feel free to use this patch.
>> the mtdparts and fsload is working, but I'm not suer it's working
>> correctly.
>>
>> Thank you,
>> Kyungmin Park
>> ---
>> diff --git a/common/cmd_jffs2.c b/common/cmd_jffs2.c
>> index 1b67e73..51c742c 100644
>> --- a/common/cmd_jffs2.c
>> +++ b/common/cmd_jffs2.c
>
> I don't know what the rest of the list thinks, but I would like to see a
> "Signed-off-by" line (and/or a note on where the code came from - e.g.
> linux) on all patches whether they are preliminary or not.  I would hate to
> get into a "where did this code come from" quandary over a code that came
> from, was influenced by, or simply looked like a patch that was posted
> without proper traceability.
>

Since it's not fully tested and maybe have a bug. If some users are
having test and get ack I will repost this one with sign-off.
And it's code almost same as NAND except some parts. It's early
hacking for supporting jffs2 comand on OneNAND.

Thank you,
Kyungmin Park

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Unable to erase or write into flash

2008-07-03 Thread Nobuhiro Iwamatsu
Hi,

2008/7/3 navin karnam <[EMAIL PROTECTED]>:
> Hi all,
>
>
> I ported u-boot-1.3.3 on board, when boot the board iam getting messagesas
> below.
What do you use archtechture?


>
> But when try erasing flash :
> #erase  all
> Erase Flash Bank # 1 - Warning: 259 protected sectors will not be erased!
>  done
>
> So i enabled the flash for writing using:
> #protect off all
> Un-Protect Flash Bank # 1
>
> After that also i am unable erase the flash:
> #erase all
> ---
> Flash erase error at address 68
> Block Erase Error.
> Block locked.

I think you failed flash protect off. Please check protect infomation
by flinfo command after protect off.
When protection is not excluded, setting of Flash may be wrong.



> ---
>
> So how do i erase or write into flash,  do i need to write my code which
> should do erase and writting into flash? or
> The code in u-boot is sufficient to that?

Best regards,
 Nobuhiro

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] u-boot and OneNAND

2008-07-03 Thread Jerry Van Baren
Kyungmin Park wrote:
> On Thu, Jul 3, 2008 at 1:58 PM, Kyungmin Park <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> On Wed, Jul 2, 2008 at 8:55 PM, Mile Davidovic <[EMAIL PROTECTED]> wrote:
>>> Hello
>>> If I read code correctly u-boot have OneNAND driver. But when I check JFFS2
>>> in u-boot it seems that JFFS2 can not work on OneNAND.
>> Yes, it's not yet implemented.
>>
> 
> Feel free to use this patch.
> the mtdparts and fsload is working, but I'm not suer it's working correctly.
> 
> Thank you,
> Kyungmin Park
> ---
> diff --git a/common/cmd_jffs2.c b/common/cmd_jffs2.c
> index 1b67e73..51c742c 100644
> --- a/common/cmd_jffs2.c
> +++ b/common/cmd_jffs2.c

I don't know what the rest of the list thinks, but I would like to see a 
"Signed-off-by" line (and/or a note on where the code came from - e.g. 
linux) on all patches whether they are preliminary or not.  I would hate 
to get into a "where did this code come from" quandary over a code that 
came from, was influenced by, or simply looked like a patch that was 
posted without proper traceability.

Thanks,
gvb


-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH 3/3] Initial framework of the AMCC PPC460SX redwood reference board.

2008-07-03 Thread fkan
From: Feng Kan <[EMAIL PROTECTED]>

Add AMCC Redwood reference board that uses the latest 
PPC 464 CPU processor combined with a rich mix of peripheral 
controllers. The board will support PCIe, mutiple Gig ethernet 
ports, advanced hardware RAID assistance and IEEE 1588.

Signed-off-by: Feng Kan <[EMAIL PROTECTED]>
---
 MAINTAINERS   |3 +
 MAKEALL   |1 +
 Makefile  |3 +
 board/amcc/redwood/Makefile   |   50 
 board/amcc/redwood/config.mk  |   42 
 board/amcc/redwood/init.S |   77 +++
 board/amcc/redwood/redwood.c  |  496 +
 board/amcc/redwood/redwood.h  |   50 
 board/amcc/redwood/u-boot.lds |  147 
 9 files changed, 869 insertions(+), 0 deletions(-)
 create mode 100644 board/amcc/redwood/Makefile
 create mode 100644 board/amcc/redwood/config.mk
 create mode 100644 board/amcc/redwood/init.S
 create mode 100644 board/amcc/redwood/redwood.c
 create mode 100644 board/amcc/redwood/redwood.h
 create mode 100644 board/amcc/redwood/u-boot.lds

diff --git a/MAINTAINERS b/MAINTAINERS
index a3d70b1..a4637fd 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -420,6 +420,9 @@ Guennadi Liakhovetski <[EMAIL PROTECTED]>
 
linkstation MPC8241
 
+Feng Kan <[EMAIL PROTECTED]>
+
+   redwood PPC4xx
 -
 
 Unknown / orphaned boards:
diff --git a/MAKEALL b/MAKEALL
index 32caab7..566e63a 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -221,6 +221,7 @@ LIST_4xx="  \
PPChameleonEVB  \
quad100hd   \
rainier \
+   redwood \
sbc405  \
sc3 \
sequoia \
diff --git a/Makefile b/Makefile
index 8bfc891..ff38e0c 100644
--- a/Makefile
+++ b/Makefile
@@ -1417,6 +1417,9 @@ rainier_nand_config: unconfig
@echo "TEXT_BASE = 0x0100" > $(obj)board/amcc/sequoia/config.tmp
@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
 
+redwood_config: unconfig
+   @$(MKCONFIG) $(@:_config=) ppc ppc4xx redwood amcc
+
 sc3_config:unconfig
@$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
 
diff --git a/board/amcc/redwood/Makefile b/board/amcc/redwood/Makefile
new file mode 100644
index 000..a8bdb05
--- /dev/null
+++ b/board/amcc/redwood/Makefile
@@ -0,0 +1,50 @@
+#
+# (C) Copyright 2008
+# Feng Kan, Applied Micro Circuits Corp., [EMAIL PROTECTED]
+#
+# 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., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+
+include $(TOPDIR)/config.mk
+
+LIB= $(obj)lib$(BOARD).a
+
+COBJS  = $(BOARD).o 
+SOBJS  = init.o
+
+SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS   := $(addprefix $(obj),$(COBJS))
+SOBJS  := $(addprefix $(obj),$(SOBJS))
+
+$(LIB):$(obj).depend $(OBJS) $(SOBJS)
+   $(AR) $(ARFLAGS) $@ $(OBJS)
+
+clean:
+   rm -f $(SOBJS) $(OBJS)
+
+distclean: clean
+   rm -f $(LIB) core *.bak .depend *~
+
+#
+
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#
diff --git a/board/amcc/redwood/config.mk b/board/amcc/redwood/config.mk
new file mode 100644
index 000..531d9d3
--- /dev/null
+++ b/board/amcc/redwood/config.mk
@@ -0,0 +1,42 @@
+#
+# (C) Copyright 2008
+# Feng Kan, Applied Micro Circuits Corp., [EMAIL PROTECTED]
+#
+# 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., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 US

[U-Boot-Users] [PATCH 2/3] Add initial PPC460SX reference board (redwood) config file and defines.

2008-07-03 Thread fkan
From: Feng Kan <[EMAIL PROTECTED]>

Add config file for AMCC redwood reference board for PPC460SX.
Also include defines for PPC460SX processor.

Signed-off-by: Feng Kan <[EMAIL PROTECTED]>
---
 include/asm-ppc/ppc4xx-sdram.h |3 +-
 include/asm-ppc/processor.h|4 +
 include/configs/redwood.h  |  211 
 include/ppc440.h   |   20 +++--
 include/ppc4xx.h   |3 +-
 5 files changed, 232 insertions(+), 9 deletions(-)
 create mode 100644 include/configs/redwood.h

diff --git a/include/asm-ppc/ppc4xx-sdram.h b/include/asm-ppc/ppc4xx-sdram.h
index 83931f1..6eb8209 100644
--- a/include/asm-ppc/ppc4xx-sdram.h
+++ b/include/asm-ppc/ppc4xx-sdram.h
@@ -282,7 +282,8 @@
  * Memory Bank 0-7 configuration
  */
 #if defined(CONFIG_440SPE) || \
-defined(CONFIG_460EX) || defined(CONFIG_460GT)
+defined(CONFIG_460EX) || defined(CONFIG_460GT) || \
+defined(CONFIG_460SX)
 #define SDRAM_RXBAS_SDBA_MASK  0xFFE0  /* Base address */
 #define SDRAM_RXBAS_SDBA_ENCODE(n) u32)(n))&0xFFE0)>>2)
 #define SDRAM_RXBAS_SDBA_DECODE(n) u32)(n))&0xFFE0)<<2)
diff --git a/include/asm-ppc/processor.h b/include/asm-ppc/processor.h
index 5b50679..7f1e34f 100644
--- a/include/asm-ppc/processor.h
+++ b/include/asm-ppc/processor.h
@@ -810,6 +810,10 @@
 #define PVR_460EX_RA   0x130218A3 /* 460EX rev A without Security Engine */
 #define PVR_460GT_SE_RA0x130218A0 /* 460GT rev A with Security Engine  
  */
 #define PVR_460GT_RA   0x130218A1 /* 460GT rev A without Security Engine */
+#define PVR_460SX_RA0x13541800 /* 460SX rev A   */
+#define PVR_460SX_RA_V1 0x13541801 /* 460SX rev A Variant 1 Security disabled 
*/
+#define PVR_460GX_RA0x13541802 /* 460GX rev A   */
+#define PVR_460GX_RA_V1 0x13541803 /* 460GX rev A Variant 1 Security disabled 
*/
 #define PVR_6010x0001
 #define PVR_6020x0005
 #define PVR_6030x0003
diff --git a/include/configs/redwood.h b/include/configs/redwood.h
new file mode 100644
index 000..bf4468b
--- /dev/null
+++ b/include/configs/redwood.h
@@ -0,0 +1,211 @@
+/*
+ * Configuration for AMCC 460SX Ref (redwood)
+ *
+ * (C) Copyright 2008
+ * Feng Kan, Applied Micro Circuits Corp., [EMAIL PROTECTED]
+ *
+ * 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., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+#ifndef __CONFIG_H
+#define __CONFIG_H
+
+/*---
+ * High Level Configuration Options
+ *--*/
+#define CONFIG_4xx 1   /* ... PPC4xx family*/
+#define CONFIG_440 1   /* ... PPC460 family*/
+#define CONFIG_460SX   1   /* ... PPC460 family*/
+#define CONFIG_BOARD_EARLY_INIT_F  1   /* Call board_pre_init  */
+
+/*---
+ * Include common defines/options for all AMCC boards
+ *--*/
+#define CONFIG_HOSTNAMEredwood
+
+#include "amcc-common.h"
+
+#define CONFIG_SYS_CLK_FREQ/* external freq to pll */
+
+/*---
+ * Base addresses -- Note these are effective addresses where the
+ * actual resources get mapped (not physical addresses)
+ *--*/
+#define CFG_FLASH_BASE 0xfff0  /* start of FLASH   */
+#define CFG_PERIPHERAL_BASE0xa000  /* internal peripherals */
+#define CFG_ISRAM_BASE 0x9000  /* internal SRAM*/
+
+#define CFG_PCI_BASE   0xd000  /* internal PCI regs*/
+
+#define CFG_PCIE_MEMBASE0x9000  /* mapped PCIe memory   */
+#define CFG_PCIE0_MEMBASE   0x9000  /* mapped PCIe memory   */
+#define CFG_PCIE1_MEMBASE   0xa000  /* mapped PCIe memory   */
+#define CFG_PCIE_MEMSIZE0x0100
+
+#define CFG_PCIE0_XCFGBASE  0xb000
+#define CFG_PCIE1_XCFGBASE  0xb200

[U-Boot-Users] [PATCH 1/3] Add initial PPC460SX defines for the cpu/ppc4xx directory.

2008-07-03 Thread fkan
From: Feng Kan <[EMAIL PROTECTED]>

Add AMCC PPC460SX defines to prep for new 460SX boards.

Signed-off-by: Feng Kan <[EMAIL PROTECTED]>
---
 cpu/ppc4xx/44x_spd_ddr2.c |3 ++-
 cpu/ppc4xx/cpu.c  |   33 +
 cpu/ppc4xx/speed.c|3 ++-
 cpu/ppc4xx/start.S|   19 +--
 4 files changed, 54 insertions(+), 4 deletions(-)

diff --git a/cpu/ppc4xx/44x_spd_ddr2.c b/cpu/ppc4xx/44x_spd_ddr2.c
index c28fc46..582d5ed 100644
--- a/cpu/ppc4xx/44x_spd_ddr2.c
+++ b/cpu/ppc4xx/44x_spd_ddr2.c
@@ -52,7 +52,8 @@
 
 #if defined(CONFIG_SPD_EEPROM) &&  \
(defined(CONFIG_440SP) || defined(CONFIG_440SPE) || \
-defined(CONFIG_460EX) || defined(CONFIG_460GT))
+defined(CONFIG_460EX) || defined(CONFIG_460GT)  || \
+defined(CONFIG_460SX))
 
 
/*-+
  * Defines
diff --git a/cpu/ppc4xx/cpu.c b/cpu/ppc4xx/cpu.c
index 39f439d..ef32bc6 100644
--- a/cpu/ppc4xx/cpu.c
+++ b/cpu/ppc4xx/cpu.c
@@ -184,6 +184,19 @@ static char *bootstrap_str[] = {
 static char bootstrap_char[] = { 'A', 'B', 'C', 'D', 'E', 'G', 'F', 'H' };
 #endif
 
+#if defined(CONFIG_460SX)
+#define SDR0_PINSTP_SHIFT  29
+static char *bootstrap_str[] = {
+   "EBC (8 bits)",
+   "EBC (16 bits)",
+   "EBC (32 bits)",
+   "NAND (8 bits)",
+   "I2C (Addr 0x54)",  /* A8 */
+   "I2C (Addr 0x52)",  /* A4 */
+};
+static char bootstrap_char[] = { 'A', 'B', 'C', 'D', 'E', 'G' };
+#endif
+
 #if defined(CONFIG_405EZ)
 #define SDR0_PINSTP_SHIFT  28
 static char *bootstrap_str[] = {
@@ -509,6 +522,26 @@ int checkcpu (void)
strcpy(addstr, "Security/Kasumi support");
break;
 
+   case PVR_460SX_RA:
+   puts("SX Rev. A");
+   strcpy(addstr, "Security support");
+   break;
+
+   case PVR_460SX_RA_V1:
+   puts("SX Rev. A");
+   strcpy(addstr, "No Security support");
+   break;
+
+   case PVR_460GX_RA:
+   puts("GX Rev. A");
+   strcpy(addstr, "Security support");
+   break;
+
+   case PVR_460GX_RA_V1:
+   puts("GX Rev. A");
+   strcpy(addstr, "No Security support");
+   break;
+
default:
printf (" UNKNOWN (PVR=%08x)", pvr);
break;
diff --git a/cpu/ppc4xx/speed.c b/cpu/ppc4xx/speed.c
index ef47ffc..336ca02 100644
--- a/cpu/ppc4xx/speed.c
+++ b/cpu/ppc4xx/speed.c
@@ -205,7 +205,8 @@ ulong get_PCI_freq (void)
 
 #elif defined(CONFIG_440)
 
-#if defined(CONFIG_460EX) || defined(CONFIG_460GT)
+#if defined(CONFIG_460EX) || defined(CONFIG_460GT) || \
+defined(CONFIG_460SX)
 static u8 pll_fwdv_multi_bits[] = {
/* values for:  1 - 16 */
0x00, 0x01, 0x0f, 0x04, 0x09, 0x0a, 0x0d, 0x0e, 0x03, 0x0c,
diff --git a/cpu/ppc4xx/start.S b/cpu/ppc4xx/start.S
index 426bf3c..97411bd 100644
--- a/cpu/ppc4xx/start.S
+++ b/cpu/ppc4xx/start.S
@@ -677,7 +677,8 @@ _start:
/* not all PPC's have internal SRAM usable as L2-cache */
 #if defined(CONFIG_440GX) || \
 defined(CONFIG_440SP) || defined(CONFIG_440SPE) || \
-defined(CONFIG_460EX) || defined(CONFIG_460GT)
+defined(CONFIG_460EX) || defined(CONFIG_460GT) || \
+defined(CONFIG_460SX)
mtdcr   l2_cache_cfg,r0 /* Ensure L2 Cache is off */
 #endif
 
@@ -720,6 +721,19 @@ _start:
lis r1,0x4000   /* BAS = 8000_ */
ori r1,r1,0x4580/* 16k */
mtdcr   isram0_sb0cr,r1
+#elif defined(CONFIG_460SX)
+   lis r1,0x   /* BAS = _ */
+   ori r1,r1,0x0B84/* first 128k */
+   mtdcr   isram0_sb0cr,r1
+   lis r1,0x0001
+   ori r1,r1,0x0B84/* second 128k */
+   mtdcr   isram0_sb1cr,r1
+   lis r1, 0x0002
+   ori r1,r1, 0x0B84   /* third 128k */
+   mtdcr   isram0_sb2cr,r1
+   lis r1, 0x0003
+   ori r1,r1, 0x0B84   /* fourth 128k */
+   mtdcr   isram0_sb3cr,r1
 #elif defined(CONFIG_440GP)
ori r1,r1,0x0380/* 8k rw */
mtdcr   isram0_sb0cr,r1
@@ -1415,7 +1429,8 @@ relocate_code:
 #if defined(CONFIG_440EP) || defined(CONFIG_440GR) || \
 defined(CONFIG_440EPX) || defined(CONFIG_440GRX) || \
 defined(CONFIG_440SP) || defined(CONFIG_440SPE) || \
-defined(CONFIG_460EX) || defined(CONFIG_460GT)
+defined(CONFIG_460EX) || defined(CONFIG_460GT) || \
+defined(CONFIG_460SX)
/*
 * On some 440er platforms the cache is enabled in the first TLB 
(Boot-CS)
 * to speed up the boot process. Now this cache needs to be disabled.
-- 
1.5.6.1


-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your fa

[U-Boot-Users] Please pull u-boot-mpc83xx.git

2008-07-03 Thread Kim Phillips
WD/Detlev,

please pull mostly MVBLM7 board fixes:

The following changes since commit 914f58c5766860373a7d232e961cee5a4b54a55b:
  Wolfgang Denk (1):
Merge branch 'master' of git://www.denx.de/git/u-boot-cfi-flash

are available in the git repository at:

  git://git.denx.de/u-boot-mpc83xx.git

Andre Schwarz (3):
  fix system config overwrite @ MPC834x and MPC8313
  fix non-working mvBL-M7
  update mvBL-M7 board config

Kim Phillips (1):
  mpc83xx: move CPU_TYPE_ENTRY over to processor.h

 board/mvblm7/mvblm7.c   |2 +-
 cpu/mpc83xx/cpu.c   |1 -
 cpu/mpc83xx/cpu_init.c  |5 +
 include/asm-ppc/processor.h |7 +++
 include/configs/MVBLM7.h|5 +++--
 5 files changed, 16 insertions(+), 4 deletions(-)

Thanks,

Kim

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] e1000 problem @ current u-boot

2008-07-03 Thread André Schwarz
Today I've stressed my diff a quite a bit and tried several config 
options from other boards that I did _not_ have ...

After adding the config option for skipping the pci host bridge it 
worked again.
Unfortunately I have no clue why since this can hardly cause that ... 
maybe I'll dig a little deeper.

cheers,
André

Wolfgang Grandegger wrote:
> Andre Schwarz wrote:
>> Wolfgang,
>>
>> of course I meant no offense - of course your patch is harmless.
>
> No problem.
>
>> The System (network camera) is running for nearly 2 years now.
>> Last working version has been u-boot 1.2.x with a 2.6.19 kernel.
>>
>> Since we've moved to the latest kernel we need a more recent u-boot.
>>
>> This is what I did - and e1000 no longer works.
>>
>> Of course I diff'ed the network stuff - no obvious changes at all.
>> So I wonder if the problem is elsewhere and if e1000 is still working in
>> general.
>
> Have you read my previous mail? See below.
>
>> Wolfgang Grandegger schrieb:
>>> Andre Schwarz wrote:
 Wolfgang,

 as far as I can see on the list you sent the latest patches for the
 e1000 driver.
>>> My patches just added some device ids,
>>>
>>>
 My e1000 (82541ER) stopped working on a MPC5200 based board with 
 latest
 u-boot.
 I have a similar problem on another board ...

 Is your e1000 working properly on the latest u-boot ?
>>> Yes, on a  MPC8548 board. I have not tested it on the MPC5200.
>>>
 Do I need any additional defines or environment settings to get it
 working again ?

 Obviously it is - again :-[ - my fault or is related to my build 
 system.
>>> I think there are some known problems with PCI on boards with a
>>> MPC5200 Rev. A processor, e.g. my EEPRO100 card does not work on it.
>>> What exactly does not work?
>
> More information could be useful.
>
> Wolfgang.
>


MATRIX VISION GmbH, Talstraße 16, DE-71570 Oppenweiler  - Registergericht: 
Amtsgericht Stuttgart, HRB 271090
Geschäftsführer: Gerhard Thullner, Werner Armingeon, Uwe Furtner

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH 3/3] Initial framework of the AMCC PPC460SX redwood reference board.

2008-07-03 Thread fkan
From: Feng Kan <[EMAIL PROTECTED]>

Add AMCC Redwood reference board that uses the latest 
PPC 464 CPU processor combined with a rich mix of peripheral 
controllers. The board will support PCIe, mutiple Gig ethernet 
ports, advanced hardware RAID assistance and IEEE 1588.

Signed-off-by: Feng Kan <[EMAIL PROTECTED]>
---
 MAINTAINERS   |3 +
 MAKEALL   |1 +
 Makefile  |3 +
 board/amcc/redwood/Makefile   |   50 
 board/amcc/redwood/config.mk  |   42 
 board/amcc/redwood/init.S |   77 +++
 board/amcc/redwood/redwood.c  |  496 +
 board/amcc/redwood/redwood.h  |   50 
 board/amcc/redwood/u-boot.lds |  147 
 9 files changed, 869 insertions(+), 0 deletions(-)
 create mode 100644 board/amcc/redwood/Makefile
 create mode 100644 board/amcc/redwood/config.mk
 create mode 100644 board/amcc/redwood/init.S
 create mode 100644 board/amcc/redwood/redwood.c
 create mode 100644 board/amcc/redwood/redwood.h
 create mode 100644 board/amcc/redwood/u-boot.lds

diff --git a/MAINTAINERS b/MAINTAINERS
index a3d70b1..a4637fd 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -420,6 +420,9 @@ Guennadi Liakhovetski <[EMAIL PROTECTED]>
 
linkstation MPC8241
 
+Feng Kan <[EMAIL PROTECTED]>
+
+   redwood PPC4xx
 -
 
 Unknown / orphaned boards:
diff --git a/MAKEALL b/MAKEALL
index 32caab7..566e63a 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -221,6 +221,7 @@ LIST_4xx="  \
PPChameleonEVB  \
quad100hd   \
rainier \
+   redwood \
sbc405  \
sc3 \
sequoia \
diff --git a/Makefile b/Makefile
index 8bfc891..ff38e0c 100644
--- a/Makefile
+++ b/Makefile
@@ -1417,6 +1417,9 @@ rainier_nand_config: unconfig
@echo "TEXT_BASE = 0x0100" > $(obj)board/amcc/sequoia/config.tmp
@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
 
+redwood_config: unconfig
+   @$(MKCONFIG) $(@:_config=) ppc ppc4xx redwood amcc
+
 sc3_config:unconfig
@$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
 
diff --git a/board/amcc/redwood/Makefile b/board/amcc/redwood/Makefile
new file mode 100644
index 000..a8bdb05
--- /dev/null
+++ b/board/amcc/redwood/Makefile
@@ -0,0 +1,50 @@
+#
+# (C) Copyright 2008
+# Feng Kan, Applied Micro Circuits Corp., [EMAIL PROTECTED]
+#
+# 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., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+
+include $(TOPDIR)/config.mk
+
+LIB= $(obj)lib$(BOARD).a
+
+COBJS  = $(BOARD).o 
+SOBJS  = init.o
+
+SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS   := $(addprefix $(obj),$(COBJS))
+SOBJS  := $(addprefix $(obj),$(SOBJS))
+
+$(LIB):$(obj).depend $(OBJS) $(SOBJS)
+   $(AR) $(ARFLAGS) $@ $(OBJS)
+
+clean:
+   rm -f $(SOBJS) $(OBJS)
+
+distclean: clean
+   rm -f $(LIB) core *.bak .depend *~
+
+#
+
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#
diff --git a/board/amcc/redwood/config.mk b/board/amcc/redwood/config.mk
new file mode 100644
index 000..531d9d3
--- /dev/null
+++ b/board/amcc/redwood/config.mk
@@ -0,0 +1,42 @@
+#
+# (C) Copyright 2008
+# Feng Kan, Applied Micro Circuits Corp., [EMAIL PROTECTED]
+#
+# 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., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 US

[U-Boot-Users] [PATCH 2/3] Add initial PPC460SX reference board (redwood) config file and defines.

2008-07-03 Thread fkan
From: Feng Kan <[EMAIL PROTECTED]>

Add config file for AMCC redwood reference board for PPC460SX.
Also include defines for PPC460SX processor.

Signed-off-by: Feng Kan <[EMAIL PROTECTED]>
---
 include/asm-ppc/ppc4xx-sdram.h |3 +-
 include/asm-ppc/processor.h|4 +
 include/configs/redwood.h  |  211 
 include/ppc440.h   |   20 +++--
 include/ppc4xx.h   |3 +-
 5 files changed, 232 insertions(+), 9 deletions(-)
 create mode 100644 include/configs/redwood.h

diff --git a/include/asm-ppc/ppc4xx-sdram.h b/include/asm-ppc/ppc4xx-sdram.h
index 83931f1..6eb8209 100644
--- a/include/asm-ppc/ppc4xx-sdram.h
+++ b/include/asm-ppc/ppc4xx-sdram.h
@@ -282,7 +282,8 @@
  * Memory Bank 0-7 configuration
  */
 #if defined(CONFIG_440SPE) || \
-defined(CONFIG_460EX) || defined(CONFIG_460GT)
+defined(CONFIG_460EX) || defined(CONFIG_460GT) || \
+defined(CONFIG_460SX)
 #define SDRAM_RXBAS_SDBA_MASK  0xFFE0  /* Base address */
 #define SDRAM_RXBAS_SDBA_ENCODE(n) u32)(n))&0xFFE0)>>2)
 #define SDRAM_RXBAS_SDBA_DECODE(n) u32)(n))&0xFFE0)<<2)
diff --git a/include/asm-ppc/processor.h b/include/asm-ppc/processor.h
index 5b50679..7f1e34f 100644
--- a/include/asm-ppc/processor.h
+++ b/include/asm-ppc/processor.h
@@ -810,6 +810,10 @@
 #define PVR_460EX_RA   0x130218A3 /* 460EX rev A without Security Engine */
 #define PVR_460GT_SE_RA0x130218A0 /* 460GT rev A with Security Engine  
  */
 #define PVR_460GT_RA   0x130218A1 /* 460GT rev A without Security Engine */
+#define PVR_460SX_RA0x13541800 /* 460SX rev A   */
+#define PVR_460SX_RA_V1 0x13541801 /* 460SX rev A Variant 1 Security disabled 
*/
+#define PVR_460GX_RA0x13541802 /* 460GX rev A   */
+#define PVR_460GX_RA_V1 0x13541803 /* 460GX rev A Variant 1 Security disabled 
*/
 #define PVR_6010x0001
 #define PVR_6020x0005
 #define PVR_6030x0003
diff --git a/include/configs/redwood.h b/include/configs/redwood.h
new file mode 100644
index 000..bf4468b
--- /dev/null
+++ b/include/configs/redwood.h
@@ -0,0 +1,211 @@
+/*
+ * Configuration for AMCC 460SX Ref (redwood)
+ *
+ * (C) Copyright 2008
+ * Feng Kan, Applied Micro Circuits Corp., [EMAIL PROTECTED]
+ *
+ * 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., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+#ifndef __CONFIG_H
+#define __CONFIG_H
+
+/*---
+ * High Level Configuration Options
+ *--*/
+#define CONFIG_4xx 1   /* ... PPC4xx family*/
+#define CONFIG_440 1   /* ... PPC460 family*/
+#define CONFIG_460SX   1   /* ... PPC460 family*/
+#define CONFIG_BOARD_EARLY_INIT_F  1   /* Call board_pre_init  */
+
+/*---
+ * Include common defines/options for all AMCC boards
+ *--*/
+#define CONFIG_HOSTNAMEredwood
+
+#include "amcc-common.h"
+
+#define CONFIG_SYS_CLK_FREQ/* external freq to pll */
+
+/*---
+ * Base addresses -- Note these are effective addresses where the
+ * actual resources get mapped (not physical addresses)
+ *--*/
+#define CFG_FLASH_BASE 0xfff0  /* start of FLASH   */
+#define CFG_PERIPHERAL_BASE0xa000  /* internal peripherals */
+#define CFG_ISRAM_BASE 0x9000  /* internal SRAM*/
+
+#define CFG_PCI_BASE   0xd000  /* internal PCI regs*/
+
+#define CFG_PCIE_MEMBASE0x9000  /* mapped PCIe memory   */
+#define CFG_PCIE0_MEMBASE   0x9000  /* mapped PCIe memory   */
+#define CFG_PCIE1_MEMBASE   0xa000  /* mapped PCIe memory   */
+#define CFG_PCIE_MEMSIZE0x0100
+
+#define CFG_PCIE0_XCFGBASE  0xb000
+#define CFG_PCIE1_XCFGBASE  0xb200

[U-Boot-Users] [PATCH 1/3] Add initial PPC460SX defines for the cpu/ppc4xx directory.

2008-07-03 Thread fkan
From: Feng Kan <[EMAIL PROTECTED]>

Add AMCC PPC460SX defines to prep for new 460SX boards.

Signed-off-by: Feng Kan <[EMAIL PROTECTED]>
---
 cpu/ppc4xx/44x_spd_ddr2.c |3 ++-
 cpu/ppc4xx/cpu.c  |   33 +
 cpu/ppc4xx/speed.c|3 ++-
 cpu/ppc4xx/start.S|   19 +--
 4 files changed, 54 insertions(+), 4 deletions(-)

diff --git a/cpu/ppc4xx/44x_spd_ddr2.c b/cpu/ppc4xx/44x_spd_ddr2.c
index c28fc46..582d5ed 100644
--- a/cpu/ppc4xx/44x_spd_ddr2.c
+++ b/cpu/ppc4xx/44x_spd_ddr2.c
@@ -52,7 +52,8 @@
 
 #if defined(CONFIG_SPD_EEPROM) &&  \
(defined(CONFIG_440SP) || defined(CONFIG_440SPE) || \
-defined(CONFIG_460EX) || defined(CONFIG_460GT))
+defined(CONFIG_460EX) || defined(CONFIG_460GT)  || \
+defined(CONFIG_460SX))
 
 
/*-+
  * Defines
diff --git a/cpu/ppc4xx/cpu.c b/cpu/ppc4xx/cpu.c
index 39f439d..ef32bc6 100644
--- a/cpu/ppc4xx/cpu.c
+++ b/cpu/ppc4xx/cpu.c
@@ -184,6 +184,19 @@ static char *bootstrap_str[] = {
 static char bootstrap_char[] = { 'A', 'B', 'C', 'D', 'E', 'G', 'F', 'H' };
 #endif
 
+#if defined(CONFIG_460SX)
+#define SDR0_PINSTP_SHIFT  29
+static char *bootstrap_str[] = {
+   "EBC (8 bits)",
+   "EBC (16 bits)",
+   "EBC (32 bits)",
+   "NAND (8 bits)",
+   "I2C (Addr 0x54)",  /* A8 */
+   "I2C (Addr 0x52)",  /* A4 */
+};
+static char bootstrap_char[] = { 'A', 'B', 'C', 'D', 'E', 'G' };
+#endif
+
 #if defined(CONFIG_405EZ)
 #define SDR0_PINSTP_SHIFT  28
 static char *bootstrap_str[] = {
@@ -509,6 +522,26 @@ int checkcpu (void)
strcpy(addstr, "Security/Kasumi support");
break;
 
+   case PVR_460SX_RA:
+   puts("SX Rev. A");
+   strcpy(addstr, "Security support");
+   break;
+
+   case PVR_460SX_RA_V1:
+   puts("SX Rev. A");
+   strcpy(addstr, "No Security support");
+   break;
+
+   case PVR_460GX_RA:
+   puts("GX Rev. A");
+   strcpy(addstr, "Security support");
+   break;
+
+   case PVR_460GX_RA_V1:
+   puts("GX Rev. A");
+   strcpy(addstr, "No Security support");
+   break;
+
default:
printf (" UNKNOWN (PVR=%08x)", pvr);
break;
diff --git a/cpu/ppc4xx/speed.c b/cpu/ppc4xx/speed.c
index ef47ffc..336ca02 100644
--- a/cpu/ppc4xx/speed.c
+++ b/cpu/ppc4xx/speed.c
@@ -205,7 +205,8 @@ ulong get_PCI_freq (void)
 
 #elif defined(CONFIG_440)
 
-#if defined(CONFIG_460EX) || defined(CONFIG_460GT)
+#if defined(CONFIG_460EX) || defined(CONFIG_460GT) || \
+defined(CONFIG_460SX)
 static u8 pll_fwdv_multi_bits[] = {
/* values for:  1 - 16 */
0x00, 0x01, 0x0f, 0x04, 0x09, 0x0a, 0x0d, 0x0e, 0x03, 0x0c,
diff --git a/cpu/ppc4xx/start.S b/cpu/ppc4xx/start.S
index 426bf3c..97411bd 100644
--- a/cpu/ppc4xx/start.S
+++ b/cpu/ppc4xx/start.S
@@ -677,7 +677,8 @@ _start:
/* not all PPC's have internal SRAM usable as L2-cache */
 #if defined(CONFIG_440GX) || \
 defined(CONFIG_440SP) || defined(CONFIG_440SPE) || \
-defined(CONFIG_460EX) || defined(CONFIG_460GT)
+defined(CONFIG_460EX) || defined(CONFIG_460GT) || \
+defined(CONFIG_460SX)
mtdcr   l2_cache_cfg,r0 /* Ensure L2 Cache is off */
 #endif
 
@@ -720,6 +721,19 @@ _start:
lis r1,0x4000   /* BAS = 8000_ */
ori r1,r1,0x4580/* 16k */
mtdcr   isram0_sb0cr,r1
+#elif defined(CONFIG_460SX)
+   lis r1,0x   /* BAS = _ */
+   ori r1,r1,0x0B84/* first 128k */
+   mtdcr   isram0_sb0cr,r1
+   lis r1,0x0001
+   ori r1,r1,0x0B84/* second 128k */
+   mtdcr   isram0_sb1cr,r1
+   lis r1, 0x0002
+   ori r1,r1, 0x0B84   /* third 128k */
+   mtdcr   isram0_sb2cr,r1
+   lis r1, 0x0003
+   ori r1,r1, 0x0B84   /* fourth 128k */
+   mtdcr   isram0_sb3cr,r1
 #elif defined(CONFIG_440GP)
ori r1,r1,0x0380/* 8k rw */
mtdcr   isram0_sb0cr,r1
@@ -1415,7 +1429,8 @@ relocate_code:
 #if defined(CONFIG_440EP) || defined(CONFIG_440GR) || \
 defined(CONFIG_440EPX) || defined(CONFIG_440GRX) || \
 defined(CONFIG_440SP) || defined(CONFIG_440SPE) || \
-defined(CONFIG_460EX) || defined(CONFIG_460GT)
+defined(CONFIG_460EX) || defined(CONFIG_460GT) || \
+defined(CONFIG_460SX)
/*
 * On some 440er platforms the cache is enabled in the first TLB 
(Boot-CS)
 * to speed up the boot process. Now this cache needs to be disabled.
-- 
1.5.6.1


-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your fa

Re: [U-Boot-Users] [PATCH 0/2] Coldfire Ethernet initialization changes

2008-07-03 Thread Ben Warren
Liew Tsi Chung wrote:
> Ben,
>
>   I am going to test them and let you know next Tuesday. I was
> unable to download the net repo using git protocol at work and the http
> protocol has index error when I tried to use git-clone.
>
>   
Wonderful.  Thanks!
Ben

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH 0/2] Coldfire Ethernet initialization changes

2008-07-03 Thread Liew Tsi Chung
Ben,

I am going to test them and let you know next Tuesday. I was
unable to download the net repo using git protocol at work and the http
protocol has index error when I tried to use git-clone.

Thanks for the changes.

Regards,
TsiChung

-Original Message-
From: Ben Warren [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 03, 2008 2:07 AM
To: Liew Tsi Chung; u-boot-users@lists.sourceforge.net
Cc: Ben Warren
Subject: [PATCH 0/2] Coldfire Ethernet initialization changes

These two patches move the default initialization of Coldfire FEC
controllers to cpu_eth_init() in the CPU directories.

I don't have a Coldfire cross compiler set up nor do I have any
hardware, so I'm looking for volunteers to do the following:

1. Run 'MAKEALL coldfire' to check for compile-time errors 2. Try the
code out on real hardware

I'm pushing these patches to a 'testing' branch on the net repo.  Please
clone it as follows:

$ git clone git://git.denx.de/u-boot-net.git $ cd u-boot-net $ git
checkout testing

thanks!
Ben

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] e1000 problem @ current u-boot

2008-07-03 Thread Wolfgang Grandegger
Andre Schwarz wrote:
> Wolfgang,
> 
> of course I meant no offense - of course your patch is harmless.

No problem.

> The System (network camera) is running for nearly 2 years now.
> Last working version has been u-boot 1.2.x with a 2.6.19 kernel.
> 
> Since we've moved to the latest kernel we need a more recent u-boot.
> 
> This is what I did - and e1000 no longer works.
> 
> Of course I diff'ed the network stuff - no obvious changes at all.
> So I wonder if the problem is elsewhere and if e1000 is still working in
> general.

Have you read my previous mail? See below.

> Wolfgang Grandegger schrieb:
>> Andre Schwarz wrote:
>>> Wolfgang,
>>>
>>> as far as I can see on the list you sent the latest patches for the
>>> e1000 driver.
>> My patches just added some device ids,
>>
>>
>>> My e1000 (82541ER) stopped working on a MPC5200 based board with latest
>>> u-boot.
>>> I have a similar problem on another board ...
>>>
>>> Is your e1000 working properly on the latest u-boot ?
>> Yes, on a  MPC8548 board. I have not tested it on the MPC5200.
>>
>>> Do I need any additional defines or environment settings to get it
>>> working again ?
>>>
>>> Obviously it is - again :-[ - my fault or is related to my build system.
>> I think there are some known problems with PCI on boards with a
>> MPC5200 Rev. A processor, e.g. my EEPRO100 card does not work on it.
>> What exactly does not work?

More information could be useful.

Wolfgang.


-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [PATCH] net: smc911x: sh: Add support RSK7203 board to smc911x

2008-07-03 Thread Ben Warren
Hi Nobuhiro,

Nobuhiro Iwamatsu wrote:
> The RSK board has the SMSC9118 wired up 'incorrectly'.
> This problem can support in the software side.
> I put a code to evade it.
>
>   
Putting a board fix in a common driver is not cool. Please provide more
generic word-swapping versions of reg_read and reg_write, or something
else like that.

regards,
Ben

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] e1000 problem @ current u-boot

2008-07-03 Thread Wolfgang Grandegger
Andre Schwarz wrote:
> Wolfgang,
> 
> as far as I can see on the list you sent the latest patches for the
> e1000 driver.

My patches just added some device ids,


> My e1000 (82541ER) stopped working on a MPC5200 based board with latest
> u-boot.
> I have a similar problem on another board ...
> 
> Is your e1000 working properly on the latest u-boot ?

Yes, on a  MPC8548 board. I have not tested it on the MPC5200.

> Do I need any additional defines or environment settings to get it
> working again ?
> 
> Obviously it is - again :-[ - my fault or is related to my build system.

I think there are some known problems with PCI on boards with a MPC5200 
Rev. A processor, e.g. my EEPRO100 card does not work on it. What 
exactly does not work?

Wolfgang.

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] e1000 problem @ current u-boot

2008-07-03 Thread Andre Schwarz
Wolfgang,

of course I meant no offense - of course your patch is harmless.

The System (network camera) is running for nearly 2 years now.
Last working version has been u-boot 1.2.x with a 2.6.19 kernel.

Since we've moved to the latest kernel we need a more recent u-boot.

This is what I did - and e1000 no longer works.

Of course I diff'ed the network stuff - no obvious changes at all.
So I wonder if the problem is elsewhere and if e1000 is still working in
general.

As you say this is obviously true - thanks.

regards,
Andre


Wolfgang Grandegger schrieb:
> Andre Schwarz wrote:
>> Wolfgang,
>>
>> as far as I can see on the list you sent the latest patches for the
>> e1000 driver.
>
> My patches just added some device ids,
>
>
>> My e1000 (82541ER) stopped working on a MPC5200 based board with latest
>> u-boot.
>> I have a similar problem on another board ...
>>
>> Is your e1000 working properly on the latest u-boot ?
>
> Yes, on a  MPC8548 board. I have not tested it on the MPC5200.
>
>> Do I need any additional defines or environment settings to get it
>> working again ?
>>
>> Obviously it is - again :-[ - my fault or is related to my build system.
>
> I think there are some known problems with PCI on boards with a
> MPC5200 Rev. A processor, e.g. my EEPRO100 card does not work on it.
> What exactly does not work?
>
> Wolfgang.


MATRIX VISION GmbH, Talstraße 16, DE-71570 Oppenweiler  - Registergericht: 
Amtsgericht Stuttgart, HRB 271090
Geschäftsführer: Gerhard Thullner, Werner Armingeon, Uwe Furtner

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH] net: smc911x: sh: Add support RSK7203 board to smc911x

2008-07-03 Thread Nobuhiro Iwamatsu
The RSK board has the SMSC9118 wired up 'incorrectly'.
This problem can support in the software side.
I put a code to evade it.

Signed-off-by: Nobuhiro Iwamatsu <[EMAIL PROTECTED]>
---
 drivers/net/smc911x.c |   37 +++--
 1 files changed, 35 insertions(+), 2 deletions(-)

diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c
index 1484b0b..ec731ea 100644
--- a/drivers/net/smc911x.c
+++ b/drivers/net/smc911x.c
@@ -53,6 +53,39 @@ static inline void reg_write(u32 addr, u32 val)
*(volatile u16*)addr = (u16)val;
*(volatile u16*)(addr + 2) = (u16)(val >> 16);
 }
+
+#if 0 //defined(CONFIG_RSK7203)
+/*
+ * The RSK board has the SMSC9118 wired up 'incorrectly'.
+ * Byte-swapping is necessary, and so poor performance is inevitable.
+ * It seems that this is a problem with the SMSC chip, which has an
+ * endian facility, but it only works at the word level so...
+ */
+/* 2301_6745 --> 0123_4567 */
+#define PKT_SWAP(x) ((vu_long)vu_long)x << 8) & 0xFF00)|\
+   (((vu_long)x >> 8) & 0x00FF)|\
+   (((vu_long)x << 8) & 0xFF00)|\
+   (((vu_long)x >> 8) & 0x00FF)))
+
+static inline u32 pkt_data_pull(u32 addr)
+{
+   volatile u16 *addr_16 = (u16 *)addr;
+   u32 d0 = (((*addr_16) << 16) & 0x);
+   u32 d1 = ((*(addr_16 + 1) & 0x));
+   return PKT_SWAP((d0|d1));
+}
+
+static inline void pkt_data_push(u32 addr, u32 val)
+{
+   *(volatile u16 *)(addr + 2) = PKT_SWAP((u16)val);
+   *(volatile u16 *)(addr) = PKT_SWAP((u16)(val >> 16));
+}
+
+#else
+# define pkt_data_pull(x) reg_read(x)
+# define pkt_data_push(x, l) reg_write(x, l)
+#endif /* CONFIG_RSK7203*/
+
 #else
 #error "SMC911X: undefined bus width"
 #endif /* CONFIG_DRIVER_SMC911X_16_BIT */
@@ -641,7 +674,7 @@ int eth_send(volatile void *packet, int length)
tmplen = (length + 3) / 4;

while (tmplen--)
-   reg_write(TX_DATA_FIFO, *data++);
+   pkt_data_push(TX_DATA_FIFO, *data++);

/* wait for transmission */
while (!((reg_read(TX_FIFO_INF) & TX_FIFO_INF_TSUSED) >> 16));
@@ -684,7 +717,7 @@ int eth_rx(void)

tmplen = (pktlen + 2+ 3) / 4;
while (tmplen--)
-   *data++ = reg_read(RX_DATA_FIFO);
+   *data++ = pkt_data_pull(RX_DATA_FIFO);

if (status & RX_STS_ES)
printf(DRIVERNAME
-- 
1.5.5.1


-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH] net: smc911x: Fix typo output of the version check

2008-07-03 Thread Nobuhiro Iwamatsu
Signed-off-by: Nobuhiro Iwamatsu <[EMAIL PROTECTED]>
---
 drivers/net/smc911x.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c
index a2d3cb2..1484b0b 100644
--- a/drivers/net/smc911x.c
+++ b/drivers/net/smc911x.c
@@ -597,7 +597,7 @@ int eth_init(bd_t *bd)

val = reg_read(BYTE_TEST);
if (val != 0x87654321) {
-   printf(DRIVERNAME ": Invalid chip endian 0x08%x\n", val);
+   printf(DRIVERNAME ": Invalid chip endian 0x%08x\n", val);
goto err_out;
}

-- 
1.5.5.1

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH 3/3] sh: Renesas RSK+ 7203 board support

2008-07-03 Thread Nobuhiro Iwamatsu
This adds initial support for the RTE RSK+ SH7203 board.

Signed-off-by: Nobuhiro Iwamatsu <[EMAIL PROTECTED]>
---
 MAINTAINERS   |2 +
 MAKEALL   |3 +
 Makefile  |8 ++
 board/rsk7203/Makefile|   45 +++
 board/rsk7203/config.mk   |   28 +
 board/rsk7203/lowlevel_init.S |  265 +
 board/rsk7203/rsk7203.c   |   50 
 board/rsk7203/u-boot.lds  |  102 
 include/configs/rsk7203.h |  107 +
 9 files changed, 610 insertions(+), 0 deletions(-)
 create mode 100644 board/rsk7203/Makefile
 create mode 100644 board/rsk7203/config.mk
 create mode 100644 board/rsk7203/lowlevel_init.S
 create mode 100644 board/rsk7203/rsk7203.c
 create mode 100644 board/rsk7203/u-boot.lds
 create mode 100644 include/configs/rsk7203.h

diff --git a/MAINTAINERS b/MAINTAINERS
index a3d70b1..abb63c9 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -717,12 +717,14 @@ Haavard Skinnemoen <[EMAIL PROTECTED]>
 #

 Nobuhiro Iwamatsu <[EMAIL PROTECTED]>
+ <[EMAIL PROTECTED]>

MS7750SESH7750
MS7722SESH7722
R7780MP SH7780
R2DPlus SH7751R
SH7763RDP   SH7763
+   RSK7203 SH7203

 Mark Jonas <[EMAIL PROTECTED]>

diff --git a/MAKEALL b/MAKEALL
index 32caab7..aa97597 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -740,6 +740,9 @@ LIST_blackfin=" \
 ## SH Systems
 #

+LIST_sh2=" \
+   rsk7203 \
+"
 LIST_sh3=" \
mpr2\
ms7720se\
diff --git a/Makefile b/Makefile
index 8bfc891..75f2520 100644
--- a/Makefile
+++ b/Makefile
@@ -2907,6 +2907,14 @@ atngw100_config  :   unconfig
 #

 #
+## sh2 (Renesas SuperH)
+#
+rsk7203_config: unconfig
+   @ >include/config.h
+   @echo "#define CONFIG_RSK7203 1" >> include/config.h
+   @./mkconfig -a $(@:_config=) sh sh2 rsk7203
+
+#
 ## sh3 (Renesas SuperH)
 #
 mpr2_config: unconfig
diff --git a/board/rsk7203/Makefile b/board/rsk7203/Makefile
new file mode 100644
index 000..32055be
--- /dev/null
+++ b/board/rsk7203/Makefile
@@ -0,0 +1,45 @@
+#
+# Copyright (C) 2007,2008 Nobuhiro Iwamatsu
+# Copyright (C) 2008 Renesas Solutions Corp.
+#
+# u-boot/board/rsk7203/Makefile
+#
+# 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., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+
+include $(TOPDIR)/config.mk
+
+LIB= lib$(BOARD).a
+
+OBJS   := rsk7203.o
+SOBJS  := lowlevel_init.o
+
+$(LIB):$(OBJS) $(SOBJS)
+   $(AR) crv $@ $(OBJS) $(SOBJS)
+
+clean:
+   rm -f $(SOBJS) $(OBJS)
+
+distclean: clean
+   rm -f $(LIB) core *.bak .depend
+
+#
+
+.depend:   Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c)
+   $(CC) -M $(CPPFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@
+
+-include .depend
+
+#
diff --git a/board/rsk7203/config.mk b/board/rsk7203/config.mk
new file mode 100644
index 000..61aa51f
--- /dev/null
+++ b/board/rsk7203/config.mk
@@ -0,0 +1,28 @@
+#
+# Copyright (C) 2007,2008 Nobuhiro Iwamatsu
+# Copyright (C) 2008 Renesas Solutions Corp.
+#
+# u-boot/board/rsk7203/config.mk
+#
+# 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

[U-Boot-Users] [PATCH 2/3] sh: Add support Renesas SH7203 processor

2008-07-03 Thread Nobuhiro Iwamatsu
Signed-off-by: Nobuhiro Iwamatsu <[EMAIL PROTECTED]>
---
 drivers/serial/serial_sh.c  |3 ++-
 include/asm-sh/cpu_sh2.h|4 
 include/asm-sh/cpu_sh7203.h |   41 +
 3 files changed, 47 insertions(+), 1 deletions(-)
 create mode 100644 include/asm-sh/cpu_sh7203.h

diff --git a/drivers/serial/serial_sh.c b/drivers/serial/serial_sh.c
index 0801ac4..4ea117c 100644
--- a/drivers/serial/serial_sh.c
+++ b/drivers/serial/serial_sh.c
@@ -72,7 +72,8 @@
 # endif
 #elif defined(CONFIG_CPU_SH7750) || \
defined(CONFIG_CPU_SH7751) || \
-   defined(CONFIG_CPU_SH7722)
+   defined(CONFIG_CPU_SH7722) || \
+   defined(CONFIG_CPU_SH7203)
 # define SCSPTR(vu_short *)(SCIF_BASE + 0x20)
 # define SCLSR (vu_short *)(SCIF_BASE + 0x24)
 # define LSR_ORER  1
diff --git a/include/asm-sh/cpu_sh2.h b/include/asm-sh/cpu_sh2.h
index d776cb9..7d8f92a 100644
--- a/include/asm-sh/cpu_sh2.h
+++ b/include/asm-sh/cpu_sh2.h
@@ -31,6 +31,10 @@
 #define CACHE_OC_NUM_ENTRIES   256
 #define CACHE_OC_ENTRY_SHIFT   4

+#if defined(CONFIG_CPU_SH7203)
+# include 
+#else
 # error "Unknown SH2 variant"
+#endif

 #endif /* _ASM_CPU_SH2_H_ */
diff --git a/include/asm-sh/cpu_sh7203.h b/include/asm-sh/cpu_sh7203.h
new file mode 100644
index 000..77dcac4
--- /dev/null
+++ b/include/asm-sh/cpu_sh7203.h
@@ -0,0 +1,41 @@
+#ifndef _ASM_CPU_SH7203_H_
+#define _ASM_CPU_SH7203_H_
+
+/* Cache */
+#define CCR1   0xFFFC1000
+#define CCRCCR1
+
+/* PFC */
+#define PACR   0xA4050100
+#define PBCR   0xA4050102
+#define PCCR   0xA4050104
+#define PETCR  0xA4050106
+
+/* Port Data Registers */
+#define PADR   0xA4050120
+#define PBDR   0xA4050122
+#define PCDR   0xA4050124
+
+/* BSC */
+
+/* SDRAM controller */
+
+/* SCIF */
+#define SCSMR_00xFFFE8000
+#define SCIF0_BASE SCSMR_0
+
+/* Timer(CMT) */
+#define CMSTR  0xFFFEC000
+#define CMCSR_0 0xFFFEC002
+#define CMCNT_0 0xFFFEC004
+#define CMCOR_0 0xFFFEC006
+#define CMCSR_1 0xFFFEC008
+#define CMCNT_1 0xFFFEC00A
+#define CMCOR_10xFFFEC00C
+
+/* On chip oscillator circuits */
+#define FRQCR  0xA415FF80
+#define WTCNT  0xA415FF84
+#define WTCSR  0xA415FF86
+
+#endif /* _ASM_CPU_SH7203_H_ */
-- 
1.5.5.1


-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH 1/3] sh: Add support SH2/SH2A which is CPU of Renesas Technology

2008-07-03 Thread Nobuhiro Iwamatsu
Add support SH2/SH2A basic function.

Signed-off-by: Nobuhiro Iwamatsu <[EMAIL PROTECTED]>
---
 cpu/sh2/Makefile   |   46 ++
 cpu/sh2/cache.c|  112 
 cpu/sh2/config.mk  |   29 +++
 cpu/sh2/cpu.c  |   98 ++
 cpu/sh2/interrupts.c   |   39 +++
 cpu/sh2/start.S|   84 +
 cpu/sh2/time.c |  111 +++
 cpu/sh2/watchdog.c |   33 +
 examples/Makefile  |3 +
 include/asm-sh/cpu_sh2.h   |   36 ++
 include/asm-sh/processor.h |5 ++-
 11 files changed, 595 insertions(+), 1 deletions(-)
 create mode 100644 cpu/sh2/Makefile
 create mode 100644 cpu/sh2/cache.c
 create mode 100644 cpu/sh2/config.mk
 create mode 100644 cpu/sh2/cpu.c
 create mode 100644 cpu/sh2/interrupts.c
 create mode 100644 cpu/sh2/start.S
 create mode 100644 cpu/sh2/time.c
 create mode 100644 cpu/sh2/watchdog.c
 create mode 100644 include/asm-sh/cpu_sh2.h

diff --git a/cpu/sh2/Makefile b/cpu/sh2/Makefile
new file mode 100644
index 000..afd4f80
--- /dev/null
+++ b/cpu/sh2/Makefile
@@ -0,0 +1,46 @@
+#
+# (C) Copyright 2000-2006
+# Wolfgang Denk, DENX Software Engineering, [EMAIL PROTECTED]
+#
+# Copyright (C) 2007,2008 Nobuhiro Iwamatsu <[EMAIL PROTECTED]>
+# Copyright (C) 2008 Renesas Solutions Corp.
+#
+# 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., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+
+include $(TOPDIR)/config.mk
+
+LIB= $(obj)lib$(CPU).a
+
+START  = start.o
+OBJS   = cpu.o interrupts.o watchdog.o time.o # cache.o
+
+all:   .depend $(START) $(LIB)
+
+$(LIB):$(OBJS)
+   $(AR) crv $@ $(OBJS)
+
+#
+
+.depend:   Makefile $(START:.o=.S) $(OBJS:.o=.c)
+   $(CC) -M $(CFLAGS) $(START:.o=.S) $(OBJS:.o=.c) > $@
+
+sinclude .depend
+
+#
diff --git a/cpu/sh2/cache.c b/cpu/sh2/cache.c
new file mode 100644
index 000..d7ac2a5
--- /dev/null
+++ b/cpu/sh2/cache.c
@@ -0,0 +1,112 @@
+/*
+ * (C) Copyright 2007
+ * Yoshihiro Shimoda <[EMAIL PROTECTED]>
+ *
+ * Copyright (C) 2007, 2008 Nobobuhiro Iwamatsu <[EMAIL PROTECTED]>
+ * Copyright (C) 2008 Renesas Solutions Corp.
+ *
+ * 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., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#include 
+#include 
+#include 
+#include 
+
+/*
+ * Jump to P2 area.
+ * When handling TLB or caches, we need to do it from P2 area.
+ */
+#define jump_to_P2()\
+  do {\
+unsigned long __dummy; \
+__asm__ __volatile__(  \
+   "mov.l  1f, %0\n\t" \
+   "or %1, %0\n\t" \
+   "jmp@%0\n\t"\
+   " nop\n\t"  \
+   ".balign 4\n"   \
+   "1: .long 2f\n" \
+   "2:"\
+   : "=&r" (__dummy)   \
+   : "r" (0x2000));\
+  } while (0)
+
+/*
+ * Back to P1 area.
+ */
+#define back_to_P1()\
+  do {\
+unsigned long __dummy;  \
+__asm__ __volatile__(   \
+   "nop;nop;nop;nop;nop;nop;nop\n\t"   \
+  

[U-Boot-Users] e1000 problem @ current u-boot

2008-07-03 Thread Andre Schwarz
Wolfgang,

as far as I can see on the list you sent the latest patches for the
e1000 driver.

My e1000 (82541ER) stopped working on a MPC5200 based board with latest
u-boot.
I have a similar problem on another board ...

Is your e1000 working properly on the latest u-boot ?
Do I need any additional defines or environment settings to get it
working again ?

Obviously it is - again :-[ - my fault or is related to my build system.

Any help is welcome.

regards,
Andre

MATRIX VISION GmbH, Talstraße 16, DE-71570 Oppenweiler  - Registergericht: 
Amtsgericht Stuttgart, HRB 271090
Geschäftsführer: Gerhard Thullner, Werner Armingeon, Uwe Furtner

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] Flash Functions !!

2008-07-03 Thread Amit Kumar
Hello,

We are using board pxa255, UBoot version 1.3.3, FLASH chipset is PC28F256P30B85 
(two chipsets) connected to same chip select. This FLASH supports CFI and 
U-Boot code has CFI_FLASH.c.
Do we need to write functions (Read, Write, erase) for this FLASH or U-Boot has 
support for this already?

Regards
Amit Kumar
P.S: Please ignore the disclaimer as I cannot remove it.

 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not 
to copy, disclose, or distribute this e-mail or its contents to any other 
person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken 
every reasonable precaution to minimize this risk, but is not liable for any 
damage 
you may sustain as a result of any virus in this e-mail. You should carry out 
your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this 
e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***
-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] What do you think she wants

2008-07-03 Thread Gudavicius

Get into the saturday night fever blister mood with your new tool 
http://www.pickfriend.com/
-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] Unable to erase or write into flash

2008-07-03 Thread navin karnam
Hi all,


I ported u-boot-1.3.3 on board, when boot the board iam getting messagesas
below.
---
U-Boot 1.3.3 (Jul  3 2008 - 10:17:59)

DRAM:  64 MB
Flash: 64 MB
*** Warning - bad CRC, using default environment

In:serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
---

But when try erasing flash :
#erase  all
Erase Flash Bank # 1 - Warning: 259 protected sectors will not be erased!
 done

So i enabled the flash for writing using:
#protect off all
Un-Protect Flash Bank # 1

After that also i am unable erase the flash:
#erase all
---
Flash erase error at address 68
Block Erase Error.
Block locked.
Flash erase error at address 6c
Block Erase Error.
Block locked.
Flash erase error at address 70
Block Erase Error.
Block locked.
Flash erase error at address 74
Block Erase Error.
Block locked.
Flash erase error at address 78
Block Erase Error.
Block locked.
Flash erase error at address 7c
Block Erase Error.
Block locked.
Flash erase error at address 80
Block Erase Error.
Block locked.
Flash erase error at address 84
Block Erase Error.
Block locked.
Flash erase error at address 88
Block Erase Error.
Block locked.
Flash erase error at address 8c
Block Erase Error.
Block locked.
Flash erase error at address 90
Block Erase Error.
Block locked.
Flash erase error at address 94
Block Erase Error.
Block locked.
Flash erase error at address 98
Block Erase Error.
Block locked.
Flash erase error at address 9c
Block Erase Error.
Block locked.
Flash erase error at address a0
Block Erase Error.
Block locked.
Flash erase error at address a4
Block Erase Error.
Block locked.
Flash erase error at address a8
Block Erase Error.
Block locked.
Flash erase error at address ac
Block Erase Error.
Block locked.
Flash erase error at address b0
Block Erase Error.
Block locked.
Flash erase error at address b4
Block Erase Error.
Block locked.
Flash erase error at address b8
Block Erase Error.
Block locked.
Flash erase error at address bc
Block Erase Error.
Block locked.
Flash erase error at address c0
Block Erase Error.
Block locked.
Flash erase error at address c4
Block Erase Error.
Block locked.
Flash erase error at address c8
Block Erase Error.
Block locked.
Flash erase error at address cc
Block Erase Error.
Block locked.
Flash erase error at address d0
Block Erase Error.
Block locked.
Flash erase error at address d4
Block Erase Error.
Block locked.
Flash erase error at address d8
Block Erase Error.
Block locked.
Flash erase error at address dc
Block Erase Error.
Block locked.
Flash erase error at address e0
Block Erase Error.
Block locked.
Flash erase error at address e4
Block Erase Error.
Block locked.
Flash erase error at address e8
Block Erase Error.
Block locked.
Flash erase error at address ec
Block Erase Error.
Block locked.
Flash erase error at address f0
Block Erase Error.
Block locked.
Flash erase error at address f4
Block Erase Error.
Block locked.
Flash erase error at address f8
Block Erase Error.
Block locked.
Flash erase error at address fc
Block Erase Error.
Block locked.
Flash erase error at address 100
Block Erase Error.
Block locked.
Flash erase error at address 104
Block Erase Error.
Block locked.
Flash erase error at address 108
Block Erase Error.
Block locked.
Flash erase error at address 10c
Block Erase Error.
Block locked.
Flash erase error at address 110
Block Erase Error.
Block locked.
Flash erase error at address 114
Block Erase Error.
Block locked.
Flash erase error at address 118
Block Erase Error.
Block locked.
Flash erase error at address 11c
Block Erase Error.
Block locked.
Flash erase error at address 120
Block Erase Error.
Block locked.
Flash erase error at address 124
Block Erase Error.
Block locked.
Flash erase error at address 128
Block Erase Error.
Block locked.
Flash erase error at address 12c
Block Erase Error.
Block locked.
Flash erase error at address 130
Block Erase Error.
Block locked.
Flash erase error at address 134
Block Erase Error.
Block locked.
Flash erase error at address 138
Block Erase Error.
Block locked.
Flash erase error at address 13c
Block Erase Error.
Block locked.
Flash erase error at address 140
Block Erase Error.
Block locked.
Flash erase error at address 144
Block Erase Error.
Block locked.
Flash erase error at address 148
Block Erase Error.
Block locked.
Flash erase error at address 14c
Block Erase Error.
Block locked.
Flash erase error at address 150
Block Erase Error.
Block locked.
Flash erase error at address 154
Block Erase Error.
Block locked.
Flash erase error at address 158
B

[U-Boot-Users] [PATCH 2/2] Moved initialization of MCFFEC Ethernet driver to CPU directory

2008-07-03 Thread Ben Warren
Added a cpu_eth_init() function to coldfire CPU directories and
removed code from net/eth.c

Signed-off-by: Ben Warren <[EMAIL PROTECTED]>
---
 cpu/mcf523x/cpu.c|   14 ++
 cpu/mcf52x2/cpu.c|   15 +++
 cpu/mcf532x/cpu.c|   14 ++
 cpu/mcf5445x/cpu.c   |   14 ++
 cpu/mcf547x_8x/cpu.c |   16 ++--
 drivers/net/mcffec.c |2 +-
 net/eth.c|4 
 7 files changed, 72 insertions(+), 7 deletions(-)

diff --git a/cpu/mcf523x/cpu.c b/cpu/mcf523x/cpu.c
index f0d954b..8d2152d 100644
--- a/cpu/mcf523x/cpu.c
+++ b/cpu/mcf523x/cpu.c
@@ -107,3 +107,17 @@ int watchdog_init(void)
return (0);
 }
 #endif /* CONFIG_WATCHDOG */
+
+#if defined(CONFIG_MCFFEC)
+/* Default initializations for MCFFEC controllers.  To override,
+ * create a board-specific function called:
+ * int board_eth_init(bd_t *bis)
+ */
+
+extern int mcffec_initialize(bd_t*);
+
+int cpu_eth_init(bd_t *bis)
+{
+   return mcffec_initialize(bis);
+}
+#endif
diff --git a/cpu/mcf52x2/cpu.c b/cpu/mcf52x2/cpu.c
index d5d3d33..2af31cb 100644
--- a/cpu/mcf52x2/cpu.c
+++ b/cpu/mcf52x2/cpu.c
@@ -321,3 +321,18 @@ int do_reset(cmd_tbl_t * cmdtp, bd_t * bd, int flag, int 
argc, char *argv[])
return 0;
 };
 #endif
+
+#if defined(CONFIG_MCFFEC)
+/* Default initializations for MCFFEC controllers.  To override,
+ * create a board-specific function called:
+ * int board_eth_init(bd_t *bis)
+ */
+
+extern int mcffec_initialize(bd_t*);
+
+int cpu_eth_init(bd_t *bis)
+{
+   return mcffec_initialize(bis);
+}
+#endif
+
diff --git a/cpu/mcf532x/cpu.c b/cpu/mcf532x/cpu.c
index 61541ab..20d0d5c 100644
--- a/cpu/mcf532x/cpu.c
+++ b/cpu/mcf532x/cpu.c
@@ -129,3 +129,17 @@ int watchdog_init(void)
return (0);
 }
 #endif /* CONFIG_WATCHDOG */
+
+#if defined(CONFIG_MCFFEC)
+/* Default initializations for MCFFEC controllers.  To override,
+ * create a board-specific function called:
+ * int board_eth_init(bd_t *bis)
+ */
+
+extern int mcffec_initialize(bd_t*);
+
+int cpu_eth_init(bd_t *bis)
+{
+   return mcffec_initialize(bis);
+}
+#endif
diff --git a/cpu/mcf5445x/cpu.c b/cpu/mcf5445x/cpu.c
index e601b89..ab342dd 100644
--- a/cpu/mcf5445x/cpu.c
+++ b/cpu/mcf5445x/cpu.c
@@ -95,3 +95,17 @@ int checkcpu(void)
 
return 0;
 }
+
+#if defined(CONFIG_MCFFEC)
+/* Default initializations for MCFFEC controllers.  To override,
+ * create a board-specific function called:
+ * int board_eth_init(bd_t *bis)
+ */
+
+extern int mcffec_initialize(bd_t*);
+
+int cpu_eth_init(bd_t *bis)
+{
+   return mcffec_initialize(bis);
+}
+#endif
diff --git a/cpu/mcf547x_8x/cpu.c b/cpu/mcf547x_8x/cpu.c
index e29b45c..4a04b7f 100644
--- a/cpu/mcf547x_8x/cpu.c
+++ b/cpu/mcf547x_8x/cpu.c
@@ -142,11 +142,23 @@ int watchdog_init(void)
 }
 #endif /* CONFIG_HW_WATCHDOG */
 
-#if defined(CONFIG_FSLDMAFEC)
+#if defined(CONFIG_FSLDMAFEC) || #if defined(CONFIG_MCFFEC)
+/* Default initializations for MCFFEC controllers.  To override,
+ * create a board-specific function called:
+ * int board_eth_init(bd_t *bis)
+ */
+
 extern int mcdmafec_initialize(bd_t *bis);
+extern int mcffec_initialize(bd_t*);
 
 int cpu_eth_init(bd_t *bis)
 {
-   return mcdmafec_initialize(bis);
+#if defined(CONFIG_FSLDMAFEC)
+   mcdmafec_initialize(bis);
+#endif
+#if defined(CONFIG_MCFFEC)
+   mcffec_initialize(bis);
+#endif
+   return 0;
 }
 #endif
diff --git a/drivers/net/mcffec.c b/drivers/net/mcffec.c
index 58ed5e3..6e69b46 100644
--- a/drivers/net/mcffec.c
+++ b/drivers/net/mcffec.c
@@ -599,5 +599,5 @@ int mcffec_initialize(bd_t * bis)
/* default speed */
bis->bi_ethspeed = 10;
 
-   return 1;
+   return 0;
 }
diff --git a/net/eth.c b/net/eth.c
index 40bbed4..bc74f47 100644
--- a/net/eth.c
+++ b/net/eth.c
@@ -72,7 +72,6 @@ extern int bfin_EMAC_initialize(bd_t *);
 extern int atstk1000_eth_initialize(bd_t *);
 extern int greth_initialize(bd_t *);
 extern int atngw100_eth_initialize(bd_t *);
-extern int mcffec_initialize(bd_t*);
 extern int at91sam9_eth_initialize(bd_t *);
 
 #ifdef CONFIG_API
@@ -279,9 +278,6 @@ int eth_initialize(bd_t *bis)
 #if defined(CONFIG_ATNGW100)
atngw100_eth_initialize(bis);
 #endif
-#if defined(CONFIG_MCFFEC)
-   mcffec_initialize(bis);
-#endif
 #if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260) || \
 defined(CONFIG_AT91SAM9263)
at91sam9_eth_initialize(bis);
-- 
1.5.4.3


-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://l

[U-Boot-Users] [PATCH 1/2] Moved initialization of FSL_MCDMAFEC Ethernet driver to CPU directory

2008-07-03 Thread Ben Warren
Added a cpu_eth_init() function to cpu/mcf547x_8x directory and
removed code from net/eth.c

Signed-off-by: Ben Warren <[EMAIL PROTECTED]>
---
 cpu/mcf547x_8x/cpu.c   |9 +
 drivers/net/fsl_mcdmafec.c |2 +-
 net/eth.c  |4 
 3 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/cpu/mcf547x_8x/cpu.c b/cpu/mcf547x_8x/cpu.c
index 528bca6..e29b45c 100644
--- a/cpu/mcf547x_8x/cpu.c
+++ b/cpu/mcf547x_8x/cpu.c
@@ -141,3 +141,12 @@ int watchdog_init(void)
return (0);
 }
 #endif /* CONFIG_HW_WATCHDOG */
+
+#if defined(CONFIG_FSLDMAFEC)
+extern int mcdmafec_initialize(bd_t *bis);
+
+int cpu_eth_init(bd_t *bis)
+{
+   return mcdmafec_initialize(bis);
+}
+#endif
diff --git a/drivers/net/fsl_mcdmafec.c b/drivers/net/fsl_mcdmafec.c
index f2bdba6..e34975a 100644
--- a/drivers/net/fsl_mcdmafec.c
+++ b/drivers/net/fsl_mcdmafec.c
@@ -582,5 +582,5 @@ int mcdmafec_initialize(bd_t * bis)
/* default speed */
bis->bi_ethspeed = 10;
 
-   return 1;
+   return 0;
 }
diff --git a/net/eth.c b/net/eth.c
index 7fc9aee..40bbed4 100644
--- a/net/eth.c
+++ b/net/eth.c
@@ -73,7 +73,6 @@ extern int atstk1000_eth_initialize(bd_t *);
 extern int greth_initialize(bd_t *);
 extern int atngw100_eth_initialize(bd_t *);
 extern int mcffec_initialize(bd_t*);
-extern int mcdmafec_initialize(bd_t*);
 extern int at91sam9_eth_initialize(bd_t *);
 
 #ifdef CONFIG_API
@@ -283,9 +282,6 @@ int eth_initialize(bd_t *bis)
 #if defined(CONFIG_MCFFEC)
mcffec_initialize(bis);
 #endif
-#if defined(CONFIG_FSLDMAFEC)
-   mcdmafec_initialize(bis);
-#endif
 #if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260) || \
 defined(CONFIG_AT91SAM9263)
at91sam9_eth_initialize(bis);
-- 
1.5.4.3


-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH 0/2] Coldfire Ethernet initialization changes

2008-07-03 Thread Ben Warren
These two patches move the default initialization of Coldfire FEC controllers
to cpu_eth_init() in the CPU directories.

I don't have a Coldfire cross compiler set up nor do I have any hardware, so
I'm looking for volunteers to do the following:

1. Run 'MAKEALL coldfire' to check for compile-time errors
2. Try the code out on real hardware

I'm pushing these patches to a 'testing' branch on the net repo.  Please clone
it as follows:

$ git clone git://git.denx.de/u-boot-net.git
$ cd u-boot-net
$ git checkout testing

thanks!
Ben

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users