[U-Boot-Users] Arcady Chechik is out of the office.

2008-07-31 Thread Arcady . Chechik

I will be out of the office starting  07/31/2008 and will not return until 08/05/2008.

I will respond to your message when I return.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [GIT PULL] avr32 fixes for 1.3.4

2008-07-31 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote:
 Hi Wolfgang,
 
 Please pull my 'master' branch:
 
   git://git.denx.de/u-boot-avr32 master
 
 to receive the following fixes.
 
 Haavard Skinnemoen (5):
   avr32: asm/io.h needs asm/types.h
   avr32: Fix printf() format warnings
   atmel_mci: Fix printf() format warnings
   spi flash: Fix printf() format warnings
   Merge branch 'format-warnings' of git://git.denx.de/u-boot-avr32
 
  board/atmel/atngw100/atngw100.c   |2 +-
  board/atmel/atstk1000/atstk1000.c |2 +-
  board/atmel/atstk1000/flash.c |2 +-
  drivers/mmc/atmel_mci.c   |   16 
  drivers/mtd/spi/atmel.c   |6 +++---
  include/asm-avr32/io.h|2 ++
  include/asm-avr32/sysreg.h|6 --
  7 files changed, 20 insertions(+), 16 deletions(-)

Done, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
Wisdom is one of the few things that looks bigger the further away it
is.   - Terry Pratchett, _Witches Abroad_

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [UPDATED] [PATCH v2] cfi-flash: Added support to flash_real_protect for Atmel flash devices (tested with AT49BV6416)

2008-07-31 Thread Rafael Campos

 Some of the flash memories produced by ATMEL start in read-only mode. We
 need to unprotect it.
 This patch allows the AT49BV6416 to work with cfi_flash memories. Tested
 in the at91rm9200ek board.

Style modifications suggested by Stefan Roese.

Signed-off-by: Rafael Campos Las Heras [EMAIL PROTECTED]
---
 drivers/mtd/cfi_flash.c |   49 +-
 1 files changed, 43 insertions(+), 6 deletions(-)

diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c
index 12647ef..b72c144 100644
--- a/drivers/mtd/cfi_flash.c
+++ b/drivers/mtd/cfi_flash.c
@@ -103,6 +103,10 @@
 #define AMD_STATUS_TOGGLE  0x40
 #define AMD_STATUS_ERROR   0x20
 
+#define ATM_CMD_UNLOCK_SECT0x70
+#define ATM_CMD_SOFTLOCK_START 0x80
+#define ATM_CMD_LOCK_SECT  0x40
+
 #define FLASH_OFFSET_MANUFACTURER_ID   0x00
 #define FLASH_OFFSET_DEVICE_ID 0x01
 #define FLASH_OFFSET_DEVICE_ID20x0E
@@ -1351,12 +1355,45 @@ int flash_real_protect (flash_info_t * info, long 
sector, int prot)
 {
int retcode = 0;
 
-   flash_write_cmd (info, sector, 0, FLASH_CMD_CLEAR_STATUS);
-   flash_write_cmd (info, sector, 0, FLASH_CMD_PROTECT);
-   if (prot)
-   flash_write_cmd (info, sector, 0, FLASH_CMD_PROTECT_SET);
-   else
-   flash_write_cmd (info, sector, 0, FLASH_CMD_PROTECT_CLEAR);
+   switch (info-vendor) {
+   case CFI_CMDSET_INTEL_PROG_REGIONS:
+   case CFI_CMDSET_INTEL_STANDARD:
+   flash_write_cmd (info, sector, 0,
+FLASH_CMD_CLEAR_STATUS);
+   flash_write_cmd (info, sector, 0, FLASH_CMD_PROTECT);
+   if (prot)
+   flash_write_cmd (info, sector, 0,
+   FLASH_CMD_PROTECT_SET);
+   else
+   flash_write_cmd (info, sector, 0,
+   FLASH_CMD_PROTECT_CLEAR);
+   break;
+   case CFI_CMDSET_AMD_EXTENDED:
+   case CFI_CMDSET_AMD_STANDARD:
+#ifdef CONFIG_FLASH_CFI_LEGACY
+   case CFI_CMDSET_AMD_LEGACY:
+#endif
+   /* U-Boot only checks the first byte */
+   if (info-manufacturer_id == (uchar)ATM_MANUFACT) {
+   if (prot) {
+   flash_unlock_seq (info, 0);
+   flash_write_cmd (info, 0,
+   info-addr_unlock1,
+   ATM_CMD_SOFTLOCK_START);
+   flash_unlock_seq (info, 0);
+   flash_write_cmd (info, sector, 0, 
+   ATM_CMD_LOCK_SECT);
+   } else {
+   flash_write_cmd (info, 0, 
+   info-addr_unlock1,
+   AMD_CMD_UNLOCK_START);
+   if (info-device_id == ATM_ID_BV6416)
+   flash_write_cmd (info, sector, 
+   0, ATM_CMD_UNLOCK_SECT);
+   }
+   }
+   break;
+   };
 
if ((retcode =
 flash_full_status_check (info, sector, info-erase_blk_tout,
-- 
1.5.6.3



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH] at91rm9200dk, csb637: fix NAND related build problems

2008-07-31 Thread Wolfgang Denk
Tried fixing NAND support for the at91rm9200dk board; untested.
Disabled NAND support in the csb637 board config file.

Signed-off-by: Wolfgang Denk [EMAIL PROTECTED]
---
 include/asm-arm/arch-at91rm9200/AT91RM9200.h |4 +++-
 include/configs/at91rm9200dk.h   |   12 
 include/configs/csb637.h |   13 +
 3 files changed, 12 insertions(+), 17 deletions(-)

diff --git a/include/asm-arm/arch-at91rm9200/AT91RM9200.h 
b/include/asm-arm/arch-at91rm9200/AT91RM9200.h
index 2f7f710..95db017 100644
--- a/include/asm-arm/arch-at91rm9200/AT91RM9200.h
+++ b/include/asm-arm/arch-at91rm9200/AT91RM9200.h
@@ -25,6 +25,7 @@
 #ifndef AT91RM9200_H
 #define AT91RM9200_H
 
+#ifndef __ASSEMBLY__
 typedef volatile unsigned int AT91_REG;/* Hardware register 
definition */
 
 /*/
@@ -780,4 +781,5 @@ typedef struct _AT91S_PDC
 #define AT91C_PIOB_ODR ((AT91_REG *)   0xF614) /* (PIOB) Output 
Disable Registerr */
 #define AT91C_PIOB_PDSR((AT91_REG *)   0xF63C) /* (PIOB) 
Pin Data Status Register */
 
-#endif
+#endif /* __ASSEMBLY__ */
+#endif /* AT91RM9200_H */
diff --git a/include/configs/at91rm9200dk.h b/include/configs/at91rm9200dk.h
index 951ce16..cd2eae2 100644
--- a/include/configs/at91rm9200dk.h
+++ b/include/configs/at91rm9200dk.h
@@ -112,16 +112,11 @@
  */
 #include config_cmd_default.h
 
-#define CONFIG_CMD_MII
 #define CONFIG_CMD_DHCP
+#define CONFIG_CMD_MII
+#define CONFIG_CMD_NAND
 
-#undef CONFIG_CMD_BDI
-#undef CONFIG_CMD_IMI
-#undef CONFIG_CMD_AUTOSCRIPT
-#undef CONFIG_CMD_FPGA
-#undef CONFIG_CMD_MISC
-#undef CONFIG_CMD_LOADS
-
+#define CFG_NAND_LEGACY
 
 #define CFG_MAX_NAND_DEVICE1   /* Max number of NAND devices   
*/
 #define SECTORSIZE 512
@@ -137,6 +132,7 @@
 #define AT91_SMART_MEDIA_ALE (1  22) /* our ALE is AD22 */
 #define AT91_SMART_MEDIA_CLE (1  21) /* our CLE is AD21 */
 
+#include asm/arch/AT91RM9200.h   /* needed for port definitions */
 #define NAND_DISABLE_CE(nand) do { *AT91C_PIOC_SODR = AT91C_PIO_PC0;} while(0)
 #define NAND_ENABLE_CE(nand) do { *AT91C_PIOC_CODR = AT91C_PIO_PC0;} while(0)
 
diff --git a/include/configs/csb637.h b/include/configs/csb637.h
index e9c6d8e..735a211 100644
--- a/include/configs/csb637.h
+++ b/include/configs/csb637.h
@@ -114,17 +114,11 @@
  */
 #include config_cmd_default.h
 
-#define CONFIG_CMD_JFFS2
 #define CONFIG_CMD_DHCP
+#define CONFIG_CMD_JFFS2
 #define CONFIG_CMD_PING
 
-#undef CONFIG_CMD_BDI
-#undef CONFIG_CMD_IMI
-#undef CONFIG_CMD_AUTOSCRIPT
-#undef CONFIG_CMD_FPGA
-#undef CONFIG_CMD_MISC
-#undef CONFIG_CMD_LOADS
-
+#ifdef NAND_SUPPORT_HAS_BEEN_FIXED /* NAND support is broken / 
unimplemented */
 
 #define CFG_MAX_NAND_DEVICE1   /* Max number of NAND devices   
*/
 #define SECTORSIZE 512
@@ -140,6 +134,7 @@
 #define AT91_SMART_MEDIA_ALE (1  22) /* our ALE is AD22 */
 #define AT91_SMART_MEDIA_CLE (1  21) /* our CLE is AD21 */
 
+#include asm/arch/AT91RM9200.h   /* needed for port definitions */
 #define NAND_DISABLE_CE(nand) do { *AT91C_PIOC_SODR = AT91C_PIO_PC0;} while(0)
 #define NAND_ENABLE_CE(nand) do { *AT91C_PIOC_CODR = AT91C_PIO_PC0;} while(0)
 
@@ -155,6 +150,8 @@
 #define NAND_CTL_CLRCLE(nandptr)
 #define NAND_CTL_SETCLE(nandptr)
 
+#endif /* NAND_SUPPORT_HAS_BEEN_FIXED */
+
 #define CONFIG_NR_DRAM_BANKS 1
 #define PHYS_SDRAM 0x2000
 #define PHYS_SDRAM_SIZE0x400  /* 64 megs */
-- 
1.5.6.1


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] v1.3.4-rc1 released

2008-07-31 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote:

  So is there an easy way to fix these boards?
 
 Enable CFG_NAND_LEGACY and CONFIG_CMD_NAND, include whatever header that
 the NAND macros depend on, fix any other build breaks, and test the
 result.  I don't have the hardware to do that last step, so I'll leave it
 up to the board maintainer.

OK, thanks - I think I fixed it for at91rm9200dk, and disabled NAND
support for csb637.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
The POP3 server service depends on the SMTP  server  service,  which
failed to start because of the following error: The operation comple-
ted successfully. -- Windows NT Server v3.51

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Correct ARM Versatile Timer Initialization

2008-07-31 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote:
 Hi,
 
  @@ -50,8 +50,7 @@ static ulong lastdec;  int timer_init (void)  {
*(volatile ulong *)(CFG_TIMERBASE + 0) =3D3D CFG_TIMER_RELOAD; /*=20
  TimerLoad */
 ^
  - *(volatile ulong *)(CFG_TIMERBASE + 4) =3D3D CFG_TIMER_RELOAD; /*=20
  TimerValue */
 ^
 
 Your patch is line-wrapped and cannot be applied.
 
 I Checked the Original Source File  found this.
 
   *(volatile ulong *)(CFG_TIMERBASE + 0) =3D CFG_TIMER_RELOAD;
 /* TimerLoad */  --- This line ends @ Column 80
   *(volatile ulong *)(CFG_TIMERBASE + 4) =3D CFG_TIMER_RELOAD;
 /* TimerValue */  --- This line ends @ Column 81
 
 I just removed the Second Line since it was Invalid.

 I am really sorry for troubling but i have little issue finding the
 mistake.
 Now in order to remove this, kindly let me know what i have to do.

Please resubmit your patch, without line wrapping.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
Shakespeare's Law of Prototyping: (Hamlet III, iv, 156-160)
O, throw away the worser part of it,
And live the purer with the other half.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Remove unused I2C at apollon board

2008-07-31 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote:
 There's no I2C devices.
 
 Signed-off-by: Kyungmin Park [EMAIL PROTECTED]
 ---
 diff --git a/include/configs/apollon.h b/include/configs/apollon.h
 index 8973296..5884611 100644
 --- a/include/configs/apollon.h
 +++ b/include/configs/apollon.h

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
C++ was an interesting and valuable experiment, but we've learned its
lessons and it's time to move on.
- Peter Curran in [EMAIL PROTECTED]

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] JFFS2 command support on OneNAND (take #2)

2008-07-31 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote:
 JFFS2 command support on OneNAND.
 
 - Fix typo.
 - Fix nand_bbt_descr redefinition when NAND and OneNAND are enabled.
 
 TODO: Use NAND command interface (e.g.: part_validate_*nand()). 
 
 Signed-off-by: Kyungmin Park [EMAIL PROTECTED]
 Signed-off-by: Fathi Boudra [EMAIL PROTECTED]
 ---
 diff --git a/common/cmd_jffs2.c b/common/cmd_jffs2.c
 index b4698be..43e33dd 100644
 --- a/common/cmd_jffs2.c
 +++ b/common/cmd_jffs2.c
 @@ -51,7 +51,7 @@
   * mtdids=idmap[,idmap,...]
   *
   * idmap:= dev-id=mtd-id
 - * dev-id   := 'nand'|'nor'dev-num
 + * dev-id   := 'nand'|'nor'|'onenand'dev-num
   * dev-num  := mtd device number, 0...
   * mtd-id   := unique device tag used by linux kernel to find mtd device 
 (mtd-name)
   *
 @@ -103,6 +103,13 @@
  #include nand.h
  #endif /* !CFG_NAND_LEGACY */
  #endif
 +
 +#if defined(CONFIG_CMD_ONENAND)
 +#include linux/mtd/mtd.h
 +#include linux/mtd/onenand.h
 +#include onenand_uboot.h
 +#endif
 +
  /* enable/disable debugging messages */
  #define  DEBUG_JFFS
  #undef   DEBUG_JFFS
 @@ -401,6 +408,42 @@ static int part_validate_nand(struct mtdids *id, struct 
 part_info *part)
  }
  
  /**
 + * Performs sanity check for supplied OneNAND flash partition.
 + * Table of existing OneNAND flash devices is searched and partition device
 + * is located. Alignment with the granularity of nand erasesize is verified.
 + *
 + * @param id of the parent device
 + * @param part partition to validate
 + * @return 0 if partition is valid, 1 otherwise
 + */
 +static int part_validate_onenand(struct mtdids *id, struct part_info *part)
 +{
 +#if defined(CONFIG_CMD_ONENAND)

The whole function should only be defined...

 @@ -436,6 +479,8 @@ static int part_validate(struct mtdids *id, struct 
 part_info *part)
   return part_validate_nand(id, part);
   else if (id-type == MTD_DEV_TYPE_NOR)
   return part_validate_nor(id, part);
 + else if (id-type == MTD_DEV_TYPE_ONENAND)
 + return part_validate_onenand(id, part);

... and called when CONFIG_CMD_ONENAND is set.

 @@ -755,7 +800,15 @@ static int device_validate(u8 type, u8 num, u32 *size)
  #else
   printf(support for NAND devices not present\n);
  #endif
 - }
 + } else if (type == MTD_DEV_TYPE_ONENAND) {
 +#if defined(CONFIG_CMD_ONENAND)
 + *size = onenand_mtd.size;
 + return 0;
 +#else
 + printf(support for OneNAND devices not present\n);
 +#endif
 + } else
 + printf(Unknown device type %d\n, type);

Same here - if CONFIG_CMD_ONENAND is not set, no new code should be
added.

 @@ -1065,8 +1118,8 @@ static struct mtdids* id_find_by_mtd_id(const char 
 *mtd_id, unsigned int mtd_id_
  #endif /* #ifdef CONFIG_JFFS2_CMDLINE */
  
  /**
 - * Parse device id string dev-id := 'nand'|'nor'dev-num, return device
 - * type and number.
 + * Parse device id string dev-id := 'nand'|'nor'|'onenand'dev-num,
 + * return device type and number.
   *
   * @param id string describing device id
   * @param ret_id output pointer to next char after parse completes (output)
 @@ -1085,6 +1138,9 @@ int id_parse(const char *id, const char **ret_id, u8 
 *dev_type, u8 *dev_num)
   } else if (strncmp(p, nor, 3) == 0) {
   *dev_type = MTD_DEV_TYPE_NOR;
   p += 3;
 + } else if (strncmp(p, onenand, 7) == 0) {
 + *dev_type = MTD_DEV_TYPE_ONENAND;
 + p += 7;

Ditto here.

 +static int read_onenand_cached(u32 off, u32 size, u_char *buf)
 +{
 + u32 bytes_read = 0;
 + size_t retlen;
 + int cpy_bytes;
 +
 + while (bytes_read  size) {
 + if ((off + bytes_read  onenand_cache_off) ||
 + (off + bytes_read = onenand_cache_off + 
 ONENAND_CACHE_SIZE)) {
 + onenand_cache_off = (off + bytes_read)  
 ONENAND_PAGE_MASK;
 + if (!onenand_cache) {
 + /* This memory never gets freed but 'cause
 +it's a bootloader, nobody cares */
 + onenand_cache = malloc(ONENAND_CACHE_SIZE);
 + if (!onenand_cache) {
 + printf(read_onenand_cached: can't 
 alloc cache size %d bytes\n,

Lines too long.

...
 + printf(read_onenand_cached: error reading nand 
 off %#x size %d bytes\n,
 + onenand_cache_off, ONENAND_CACHE_SIZE);

Ditto.

 diff --git a/include/jffs2/load_kernel.h b/include/jffs2/load_kernel.h
 index 882a80e..37871de 100644
 --- a/include/jffs2/load_kernel.h
 +++ b/include/jffs2/load_kernel.h
 @@ -28,9 +28,14 @@
  #include linux/list.h
  
  /* mtd device types */
 -#define MTD_DEV_TYPE_NOR  0x0001
 -#define MTD_DEV_TYPE_NAND 0x0002
 -#define MTD_DEV_TYPE(type) ((type == MTD_DEV_TYPE_NAND) ? nand : nor)
 +enum {
 + MTD_DEV_TYPE_NOR,
 + MTD_DEV_TYPE_NAND,
 + 

Re: [U-Boot-Users] [PATCH] cmd_bootm.c: Fix problem with '#if (CONFIG_CMD_USB)'

2008-07-31 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote:
 A recent patch used '#if (CONFIG_CMD_USB)' instead of
 '#if defined(CONFIG_CMD_USB)'. This patch fixes this problem and makes
 common/bootm.c compile again.
 
 Signed-off-by: Stefan Roese [EMAIL PROTECTED]
 ---
  common/cmd_bootm.c |4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)

Applied.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
...and the fully armed nuclear warheads, are, of  course,  merely  a
courtesy detail.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] ppc4xx: Fix W7OLMG compile problems by adding missing LM75 defines

2008-07-31 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote:
 Signed-off-by: Stefan Roese [EMAIL PROTECTED]
 ---
  board/w7o/post2.c |6 ++
  1 files changed, 6 insertions(+), 0 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
As usual, this being a 1.3.x release, I haven't  even  compiled  this
kernel yet. So if it works, you should be doubly impressed.
  - Linus Torvalds in [EMAIL PROTECTED]

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] bdinfo not showing correct info about memory size

2008-07-31 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote:

  Given the fact that print_lnum() unconditionally takes a u64 arg  and
  unconditionally  uses  a  %llX  format,  I  thinkwe shoudl either fix
  print_lnum() for non-64bit cases, or drop  the  CFG_64BIT_VSPRINTF  /
  CFG_64BIT_STRTOUL options completely.
 
 Personally, I'm voting for dropping the options completely and enabling the 
 64bit support unconditionally. I took me some time a few days ago to figure 
 out that this support was *not* enabled by default.

Well, it adds some 2.2 kB of code size for all ssytems - even those
who have zero benefit from it.

My personal preference would be to fix print_lnum() to take for
example a phys_size_t argument instead of u64.

I guess we need an #ifdef for the %llX (versus %lX) format  then  (or
does anybody know of a clever way to avoid this, maybe something like
the %zu we used to fix the size_t issues? )

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
No more blah, blah, blah!
-- Kirk, Miri, stardate 2713.6

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] how to set BAT's according to the address map?

2008-07-31 Thread ~subha sekar~
Hi,

I am new to Uboot and using the version uboot 1.3.2.
I am porting MPC8360EMDS board and configuration to our board. I am
stuck up in setting the BAT registers according to the memory map in
the include/configs/MPC8360EMDS.h. Please guide me.
Thanks in advance.

Regards
Subhashini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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 1/2] PPC: Add pci_clk in the global_data for CPM2 processors

2008-07-31 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote:
 This patch adds pci_clk field to the global_data structure for the
 processors which have CPM2 module in case the CONFIG_PCI is defined.
 
 Signed-off-by: Matvejchikov Ilya [EMAIL PROTECTED]
 ---
  include/asm-ppc/global_data.h |3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
In the bathtub of history the truth is harder to hold than the  soap,
and much more difficult to find ... - Terry Pratchett, _Sourcery_

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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 2/2] 8260: Making the use of gd-pci_clk dependant on the CONFIG_PCI

2008-07-31 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote:
 Signed-off-by: Matvejchikov Ilya [EMAIL PROTECTED]
 ---
  cpu/mpc8260/speed.c |   47 +++
  1 files changed, 27 insertions(+), 20 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
Diplomacy is the art of saying nice doggy until you can find a rock.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] [UPDATED] [PATCH v2] cfi-flash: Added support to flash_real_protect for Atmel flash devices (tested with AT49BV6416)

2008-07-31 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote:
 
  Some of the flash memories produced by ATMEL start in read-only mode. We
  need to unprotect it.
  This patch allows the AT49BV6416 to work with cfi_flash memories. Tested
  in the at91rm9200ek board.

This is really maddening.

Did we not just discuss the issue of identifying patches?

Now you write: [UPDATED] [PATCH v2]

So is this patch version 2 once more, as the v2 suggests (then what
was updated?), or ist thi s anew version of the patch? (then why
don't you mark it as v3 ?)


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
God made the integers; all else is the work of Man.   - Kronecker

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH] Uncompressed images loaded to their start address shall set load_end too

2008-07-31 Thread Guennadi Liakhovetski
Signed-off-by: Guennadi Liakhovetski [EMAIL PROTECTED]
---
 common/cmd_bootm.c |5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index 4040a69..7ad04b9 100644
--- a/common/cmd_bootm.c
+++ b/common/cmd_bootm.c
@@ -251,10 +251,9 @@ int do_bootm (cmd_tbl_t *cmdtp, int flag, int argc, char 
*argv[])
 
memmove_wd ((void *)load_start,
   (void *)os_data, os_len, CHUNKSZ);
-
-   load_end = load_start + os_len;
-   puts(OK\n);
}
+   load_end = load_start + os_len;
+   puts(OK\n);
break;
case IH_COMP_GZIP:
printf (   Uncompressing %s ... , type_name);

-- 
1.5.4

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH] NAND: Do not write or read a whole block if it is larger than the environment

2008-07-31 Thread Guennadi Liakhovetski
Environment can be smaller than NAND block size, do not need to read a whole
block and minimum for writing is one page. Also remove an unused variable.

Signed-off-by: Guennadi Liakhovetski [EMAIL PROTECTED]
---
 common/env_nand.c |   18 +-
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/common/env_nand.c b/common/env_nand.c
index 104f085..2a80bef 100644
--- a/common/env_nand.c
+++ b/common/env_nand.c
@@ -159,22 +159,23 @@ int writeenv(size_t offset, u_char *buf)
 {
size_t end = offset + CFG_ENV_RANGE;
size_t amount_saved = 0;
-   size_t blocksize;
+   size_t blocksize, len;
 
u_char *char_ptr;
 
blocksize = nand_info[0].erasesize;
+   len = min(blocksize, CFG_ENV_RANGE);
 
while (amount_saved  CFG_ENV_SIZE  offset  end) {
if (nand_block_isbad(nand_info[0], offset)) {
offset += blocksize;
} else {
char_ptr = buf[amount_saved];
-   if (nand_write(nand_info[0], offset, blocksize,
+   if (nand_write(nand_info[0], offset, len,
char_ptr))
return 1;
offset += blocksize;
-   amount_saved += blocksize;
+   amount_saved += len;
}
}
if (amount_saved != CFG_ENV_SIZE)
@@ -261,21 +262,22 @@ int readenv (size_t offset, u_char * buf)
 {
size_t end = offset + CFG_ENV_RANGE;
size_t amount_loaded = 0;
-   size_t blocksize;
+   size_t blocksize, len;
 
u_char *char_ptr;
 
blocksize = nand_info[0].erasesize;
+   len = min(blocksize, CFG_ENV_RANGE);
 
while (amount_loaded  CFG_ENV_SIZE  offset  end) {
if (nand_block_isbad(nand_info[0], offset)) {
offset += blocksize;
} else {
char_ptr = buf[amount_loaded];
-   if (nand_read(nand_info[0], offset, blocksize, 
char_ptr))
+   if (nand_read(nand_info[0], offset, len, char_ptr))
return 1;
offset += blocksize;
-   amount_loaded += blocksize;
+   amount_loaded += len;
}
}
if (amount_loaded != CFG_ENV_SIZE)
@@ -345,12 +347,10 @@ void env_relocate_spec (void)
 void env_relocate_spec (void)
 {
 #if !defined(ENV_IS_EMBEDDED)
-   size_t total;
int ret;
 
-   total = CFG_ENV_SIZE;
ret = readenv(CFG_ENV_OFFSET, (u_char *) env_ptr);
-   if (ret || total != CFG_ENV_SIZE)
+   if (ret)
return use_default();
 
if (crc32(0, env_ptr-data, ENV_SIZE) != env_ptr-crc)

-- 
1.5.4


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH] NAND: Coding-style fixes

2008-07-31 Thread Guennadi Liakhovetski
Signed-off-by: Guennadi Liakhovetski [EMAIL PROTECTED]
---
 drivers/mtd/nand/nand_base.c |   33 +
 1 files changed, 17 insertions(+), 16 deletions(-)

diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index 6416d15..49bf51d 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -596,7 +596,7 @@ static void nand_command (struct mtd_info *mtd, unsigned 
command, int column, in
/*
 * program and erase have their own busy handlers
 * status and sequential in needs no delay
-   */
+*/
switch (command) {
 
case NAND_CMD_PAGEPROG:
@@ -621,7 +621,7 @@ static void nand_command (struct mtd_info *mtd, unsigned 
command, int column, in
/*
 * If we don't have access to the busy pin, we apply the given
 * command delay
-   */
+*/
if (!this-dev_ready) {
udelay (this-chip_delay);
return;
@@ -690,7 +690,7 @@ static void nand_command_lp (struct mtd_info *mtd, unsigned 
command, int column,
/*
 * program and erase have their own busy handlers
 * status and sequential in needs no delay
-   */
+*/
switch (command) {
 
case NAND_CMD_CACHEDPROG:
@@ -726,7 +726,7 @@ static void nand_command_lp (struct mtd_info *mtd, unsigned 
command, int column,
/*
 * If we don't have access to the busy pin, we apply the given
 * command delay
-   */
+*/
if (!this-dev_ready) {
udelay (this-chip_delay);
return;
@@ -758,7 +758,7 @@ static void nand_get_device (struct nand_chip *this, struct 
mtd_info *mtd, int n
 
/*
 * Grab the lock and see if the device is available
-   */
+*/
 retry:
/* Hardware controller shared among independend devices */
if (this-controller) {
@@ -1070,7 +1070,7 @@ static int nand_verify_pages (struct mtd_info *mtd, 
struct nand_chip *this, int
 * is marked as NOAUTOINCR by the board driver.
 * Do this also before returning, so the chip is
 * ready for the next command.
-   */
+*/
if (!this-dev_ready)
udelay (this-chip_delay);
else
@@ -1153,13 +1153,13 @@ static int nand_read_ecc (struct mtd_info *mtd, loff_t 
from, size_t len,
}
 
/* Grab the lock and see if the device is available */
-   nand_get_device (this, mtd ,FL_READING);
+   nand_get_device (this, mtd, FL_READING);
 
/* use userspace supplied oobinfo, if zero */
if (oobsel == NULL)
oobsel = mtd-oobinfo;
 
-   /* Autoplace of oob data ? Use the default placement scheme */
+   /* Autoplace of oob data? Use the default placement scheme */
if (oobsel-useecc == MTD_NANDECC_AUTOPLACE)
oobsel = this-autooob;
 
@@ -1346,7 +1346,7 @@ static int nand_read_ecc (struct mtd_info *mtd, loff_t 
from, size_t len,
 * Do this before the AUTOINCR check, so no problems
 * arise if a chip which does auto increment
 * is marked as NOAUTOINCR by the board driver.
-   */
+*/
if (!this-dev_ready)
udelay (this-chip_delay);
else
@@ -1369,7 +1369,7 @@ static int nand_read_ecc (struct mtd_info *mtd, loff_t 
from, size_t len,
}
/* Check, if the chip supports auto page increment
 * or if we have hit a block boundary.
-   */
+*/
if (!NAND_CANAUTOINCR(this) || !(page  blockcheck))
sndcmd = 1;
}
@@ -1446,7 +1446,7 @@ static int nand_read_oob (struct mtd_info *mtd, loff_t 
from, size_t len, size_t
 * Do this before the AUTOINCR check, so no problems
 * arise if a chip which does auto increment
 * is marked as NOAUTOINCR by the board driver.
-   */
+*/
if (!this-dev_ready)
udelay (this-chip_delay);
else
@@ -1466,7 +1466,7 @@ static int nand_read_oob (struct mtd_info *mtd, loff_t 
from, size_t len, size_t
 
/* Check, if the chip supports auto page increment
 * or if we have hit a block boundary.
-   */
+*/
if (!NAND_CANAUTOINCR(this) || !(page  blockcheck)) {
/* For subsequent page reads set offset to 0 */
this-cmdfunc (mtd, NAND_CMD_READOOB, 0x0, page 
 this-pagemask);
@@ -1731,7 +1731,7 @@ static int nand_write_ecc (struct 

[U-Boot-Users] [PATCH 1/6] Add definition for the AM29LV800BB AMD NOR-flash

2008-07-31 Thread Guennadi Liakhovetski
This will be needed for SMDK6400

Signed-off-by: Guennadi Liakhovetski [EMAIL PROTECTED]
---
 drivers/mtd/jedec_flash.c |   17 +
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/drivers/mtd/jedec_flash.c b/drivers/mtd/jedec_flash.c
index 9845e93..020647a 100644
--- a/drivers/mtd/jedec_flash.c
+++ b/drivers/mtd/jedec_flash.c
@@ -234,6 +234,23 @@ static const struct amd_flash_info jedec_table[] = {
ERASEINFO(0x1,7),
}
},
+   {
+   .mfr_id = MANUFACTURER_AMD,
+   .dev_id = AM29LV800BB,
+   .name   = AMD AM29LV800BB,
+   .uaddr  = {
+   [1] = MTD_UADDR_0x0555_0x02AA /* x16 */
+   },
+   .DevSize= SIZE_1MiB,
+   .CmdSet = CFI_CMDSET_AMD_LEGACY,
+   .NumEraseRegions= 4,
+   .regions= {
+   ERASEINFO(0x04000, 1),
+   ERASEINFO(0x02000, 2),
+   ERASEINFO(0x08000, 1),
+   ERASEINFO(0x1, 15),
+   }
+   },
 #endif
 };
 
-- 
1.5.4


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH 2/6] NAND_CMD_READOOB is not supported by all chips, read OOB with the page instead

2008-07-31 Thread Guennadi Liakhovetski
This lets SMDK6400 use the NAND flash chip from Micron for booting.

Signed-off-by: Guennadi Liakhovetski [EMAIL PROTECTED]
---
 nand_spl/nand_boot.c |   61 +
 1 files changed, 31 insertions(+), 30 deletions(-)

diff --git a/nand_spl/nand_boot.c b/nand_spl/nand_boot.c
index 563a80b..78eaf75 100644
--- a/nand_spl/nand_boot.c
+++ b/nand_spl/nand_boot.c
@@ -128,21 +128,6 @@ static int nand_command(struct mtd_info *mtd, int block, 
int page, int offs, u8
 }
 #endif
 
-static int nand_is_bad_block(struct mtd_info *mtd, int block)
-{
-   struct nand_chip *this = mtd-priv;
-
-   nand_command(mtd, block, 0, CFG_NAND_BAD_BLOCK_POS, NAND_CMD_READOOB);
-
-   /*
-* Read one byte
-*/
-   if (this-read_byte(mtd) != 0xff)
-   return 1;
-
-   return 0;
-}
-
 static int nand_read_page(struct mtd_info *mtd, int block, int page, uchar 
*dst)
 {
struct nand_chip *this = mtd-priv;
@@ -150,8 +135,6 @@ static int nand_read_page(struct mtd_info *mtd, int block, 
int page, uchar *dst)
u_char *ecc_code;
u_char *oob_data;
int i;
-   int eccsize = CFG_NAND_ECCSIZE;
-   int eccbytes = CFG_NAND_ECCBYTES;
int eccsteps = CFG_NAND_ECCSTEPS;
uint8_t *p = dst;
int stat;
@@ -163,11 +146,11 @@ static int nand_read_page(struct mtd_info *mtd, int 
block, int page, uchar *dst)
 */
ecc_calc = (u_char *)(CFG_SDRAM_BASE + 0x1);
ecc_code = ecc_calc + 0x100;
-   oob_data = ecc_calc + 0x200;
+   oob_data = p + CFG_NAND_PAGE_SIZE; /* Append OOB to the page data */
 
-   for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) {
+   for (i = 0; eccsteps; eccsteps--, i += CFG_NAND_ECCBYTES, p += 
CFG_NAND_ECCSIZE) {
this-enable_hwecc(mtd, NAND_ECC_READ);
-   this-read_buf(mtd, p, eccsize);
+   this-read_buf(mtd, p, CFG_NAND_ECCSIZE);
this-calculate_ecc(mtd, p, ecc_calc[i]);
}
this-read_buf(mtd, oob_data, CFG_NAND_OOBSIZE);
@@ -179,7 +162,7 @@ static int nand_read_page(struct mtd_info *mtd, int block, 
int page, uchar *dst)
eccsteps = CFG_NAND_ECCSTEPS;
p = dst;
 
-   for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) {
+   for (i = 0; eccsteps; eccsteps--, i += CFG_NAND_ECCBYTES, p += 
CFG_NAND_ECCSIZE) {
/* No chance to do something with the possible error message
 * from correct_data(). We just hope that all possible errors
 * are corrected by this routine.
@@ -195,6 +178,7 @@ static int nand_load(struct mtd_info *mtd, int offs, int 
uboot_size, uchar *dst)
int block;
int blockcopy_count;
int page;
+   unsigned read = 0;
 
/*
 * offs has to be aligned to a block address!
@@ -202,18 +186,29 @@ static int nand_load(struct mtd_info *mtd, int offs, int 
uboot_size, uchar *dst)
block = offs / CFG_NAND_BLOCK_SIZE;
blockcopy_count = 0;
 
-   while (blockcopy_count  (uboot_size / CFG_NAND_BLOCK_SIZE)) {
-   if (!nand_is_bad_block(mtd, block)) {
-   /*
-* Skip bad blocks
-*/
-   for (page = 0; page  CFG_NAND_PAGE_COUNT; page++) {
-   nand_read_page(mtd, block, page, dst);
-   dst += CFG_NAND_PAGE_SIZE;
+   while (blockcopy_count  ((uboot_size + CFG_NAND_BLOCK_SIZE - 1) / 
CFG_NAND_BLOCK_SIZE)) {
+   /*
+* Skip bad blocks
+*/
+   int badblock = 0;
+   for (page = 0; page  CFG_NAND_PAGE_COUNT; page++) {
+   nand_read_page(mtd, block, page, dst);
+   if ((!page
+#ifdef CFG_NAND_BBT_2NDPAGE
+|| page == 1
+#endif
+   )  dst[CFG_NAND_PAGE_SIZE] != 0xff) {
+   badblock = 1;
+   break;
}
+   /* Overwrite skipped pages */
+   if (read = offs)
+   dst += CFG_NAND_PAGE_SIZE;
+   read += CFG_NAND_PAGE_SIZE;
+   }
 
+   if (!badblock)
blockcopy_count++;
-   }
 
block++;
}
@@ -241,12 +236,18 @@ void nand_boot(void)
nand_chip.dev_ready = NULL; /* preset to NULL */
board_nand_init(nand_chip);
 
+   if (nand_chip.select_chip)
+   nand_chip.select_chip(nand_info, 0);
+
/*
 * Load U-Boot image from NAND into RAM
 */
ret = nand_load(nand_info, CFG_NAND_U_BOOT_OFFS, CFG_NAND_U_BOOT_SIZE,
(uchar *)CFG_NAND_U_BOOT_DST);
 
+   if (nand_chip.select_chip)
+   

[U-Boot-Users] [PATCH 4/7] USB: Add support for OHCI controller on s3c6400

2008-07-31 Thread Guennadi Liakhovetski
Notice: USB on s3c6400 currently works _only_ with switched off MMU. One could
try to enable the MMU, but map addresses 1-to-1, and disable data cache, then
it should work too and we could still profit from instruction cache.

Signed-off-by: Guennadi Liakhovetski [EMAIL PROTECTED]
---
 cpu/arm1176/s3c64xx/Makefile |1 +
 cpu/arm1176/s3c64xx/usb.c|   44 ++
 drivers/usb/usb_ohci.c   |1 +
 3 files changed, 46 insertions(+), 0 deletions(-)
 create mode 100644 cpu/arm1176/s3c64xx/usb.c

diff --git a/cpu/arm1176/s3c64xx/Makefile b/cpu/arm1176/s3c64xx/Makefile
index 92373d8..0a1201d 100644
--- a/cpu/arm1176/s3c64xx/Makefile
+++ b/cpu/arm1176/s3c64xx/Makefile
@@ -28,6 +28,7 @@ LIB   = $(obj)lib$(SOC).a
 OBJS   = interrupts.o
 #OBJS  = nand_cp.o serial.o usb_ohci.o interrupts.o nand.o
 COBJS-$(CONFIG_S3C6400)+= cpu_init.o speed.o
+COBJS-$(CONFIG_USB_OHCI_NEW) += usb.o
 
 OBJS   += $(COBJS-y)
 
diff --git a/cpu/arm1176/s3c64xx/usb.c b/cpu/arm1176/s3c64xx/usb.c
new file mode 100644
index 000..f9dbc5e
--- /dev/null
+++ b/cpu/arm1176/s3c64xx/usb.c
@@ -0,0 +1,44 @@
+/*
+ * URB OHCI HCD (Host Controller Driver) initialization for USB on the S3C64XX.
+ *
+ * Copyright (C) 2008, Guennadi Liakhovetski, DENX Software Engineering 
[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 common.h
+#include s3c6400.h
+
+int usb_cpu_init(void)
+{
+   OTHERS_REG |= 0x1;
+   return 0;
+}
+
+int usb_cpu_stop(void)
+{
+   OTHERS_REG = ~0x1;
+   return 0;
+}
+
+void usb_cpu_init_fail(void)
+{
+   OTHERS_REG = ~0x1;
+}
diff --git a/drivers/usb/usb_ohci.c b/drivers/usb/usb_ohci.c
index fd60edb..94549a8 100644
--- a/drivers/usb/usb_ohci.c
+++ b/drivers/usb/usb_ohci.c
@@ -67,6 +67,7 @@
 #endif
 
 #if defined(CONFIG_ARM920T) || \
+defined(CONFIG_S3C6400) || \
 defined(CONFIG_S3C2400) || \
 defined(CONFIG_S3C2410) || \
 defined(CONFIG_440EP) || \
-- 
1.5.4


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH 5/7] serial: add s3c64xx serial driver

2008-07-31 Thread Guennadi Liakhovetski
Ported from u-boot-1.1.6 driver by Samsung.

Signed-off-by: Guennadi Liakhovetski [EMAIL PROTECTED]
---
 drivers/serial/Makefile  |1 +
 drivers/serial/s3c64xx.c |  189 ++
 2 files changed, 190 insertions(+), 0 deletions(-)
 create mode 100644 drivers/serial/s3c64xx.c

diff --git a/drivers/serial/Makefile b/drivers/serial/Makefile
index c9e797e..70fe638 100644
--- a/drivers/serial/Makefile
+++ b/drivers/serial/Makefile
@@ -36,6 +36,7 @@ COBJS-y += serial_pl010.o
 COBJS-y += serial_pl011.o
 COBJS-y += serial_xuartlite.o
 COBJS-y += serial_sh.o
+COBJS-$(CONFIG_S3C64XX) += s3c64xx.o
 COBJS-y += usbtty.o
 
 COBJS  := $(COBJS-y)
diff --git a/drivers/serial/s3c64xx.c b/drivers/serial/s3c64xx.c
new file mode 100644
index 000..d7e9d01
--- /dev/null
+++ b/drivers/serial/s3c64xx.c
@@ -0,0 +1,189 @@
+/*
+ * (C) Copyright 2002
+ * Gary Jennejohn, DENX Software Engineering, [EMAIL PROTECTED]
+ *
+ * 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 common.h
+
+#include s3c6400.h
+
+#ifdef CONFIG_SERIAL1
+#define UART_NRS3C64XX_UART0
+
+#elif defined(CONFIG_SERIAL2)
+#define UART_NRS3C64XX_UART1
+
+#elif defined(CONFIG_SERIAL3)
+#define UART_NRS3C64XX_UART2
+
+#else
+#error Bad: you didn't configure serial ...
+#endif
+
+#define barrier() asm volatile( ::: memory)
+
+/* See table in 31.6.11 */
+static const int udivslot[] = {
+   0,
+   0x0080,
+   0x0808,
+   0x0888,
+   0x,
+   0x4924,
+   0x4a52,
+   0x54aa,
+   0x,
+   0xd555,
+   0xd5d5,
+   0xddd5,
+   0x,
+   0xdfdd,
+   0xdfdf,
+   0xffdf,
+};
+
+void serial_setbrg(void)
+{
+   DECLARE_GLOBAL_DATA_PTR;
+   S3C64XX_UART *const uart = S3C64XX_GetBase_UART(UART_NR);
+   u32 reg, pclk_ratio = get_PCLK() / gd-baudrate;
+   int i;
+
+   /* PCLK / (16 * baudrate) - 1 */
+   reg = pclk_ratio / 16 - 1;
+   i = pclk_ratio - (reg + 1) * 16;
+
+   uart-UBRDIV = reg;
+   uart-UDIVSLOT = udivslot[i];
+
+   for (i = 0; i  100; i++)
+   barrier();
+}
+
+/*
+ * Initialise the serial port with the given baudrate. The settings
+ * are always 8 data bits, no parity, 1 stop bit, no start bits.
+ *
+ */
+int serial_init(void)
+{
+   S3C64XX_UART *const uart = S3C64XX_GetBase_UART(UART_NR);
+
+   /* reset and enable FIFOs, set triggers to the maximum */
+   uart-UFCON = 0xff;
+   uart-UMCON = 0;
+   /* 8N1 */
+   uart-ULCON = 3;
+   /* No interrupts, no DMA, pure polling */
+   uart-UCON = 5;
+
+   serial_setbrg();
+
+   return 0;
+}
+
+/*
+ * Read a single byte from the serial port. Returns 1 on success, 0
+ * otherwise. When the function is succesfull, the character read is
+ * written into its argument c.
+ */
+int serial_getc(void)
+{
+   S3C64XX_UART *const uart = S3C64XX_GetBase_UART(UART_NR);
+
+   /* wait for character to arrive */
+   while (!(uart-UTRSTAT  0x1));
+
+   return uart-URXH  0xff;
+}
+
+#ifdef CONFIG_HWFLOW
+static int hwflow = 0; /* turned off by default */
+int hwflow_onoff(int on)
+{
+   switch (on) {
+   case 0:
+   default:
+   break;  /* return current */
+   case 1:
+   hwflow = 1; /* turn on */
+   break;
+   case -1:
+   hwflow = 0; /* turn off */
+   break;
+   }
+   return hwflow;
+}
+#endif
+
+#ifdef CONFIG_MODEM_SUPPORT
+static int be_quiet;
+void disable_putc(void)
+{
+   be_quiet = 1;
+}
+
+void enable_putc(void)
+{
+   be_quiet = 0;
+}
+#endif
+
+
+/*
+ * Output a single byte to the serial port.
+ */
+void serial_putc(const char c)
+{
+   S3C64XX_UART *const uart = S3C64XX_GetBase_UART(UART_NR);
+
+#ifdef CONFIG_MODEM_SUPPORT
+   if (be_quiet)
+   return;
+#endif
+
+   /* wait for room in the tx FIFO */
+   while (!(uart-UTRSTAT  0x2));
+
+#ifdef CONFIG_HWFLOW
+   /* Wait for CTS up */
+   while (hwflow  !(uart-UMSTAT  0x1));
+#endif
+
+   uart-UTXH = c;
+
+   /* If \n, also do \r */
+   if (c == '\n')
+   serial_putc('\r');
+}
+
+/*
+ * Test whether a character is in the RX buffer
+ */
+int serial_tstc(void)
+{
+   S3C64XX_UART 

[U-Boot-Users] [PATCH 6/7] NAND: add NAND driver for s3c64xx

2008-07-31 Thread Guennadi Liakhovetski
Ported from u-boot-1.1.6 driver by Samsung.

Signed-off-by: Guennadi Liakhovetski [EMAIL PROTECTED]
---
 drivers/mtd/nand/Makefile  |1 +
 drivers/mtd/nand/s3c64xx.c |  373 
 2 files changed, 374 insertions(+), 0 deletions(-)
 create mode 100644 drivers/mtd/nand/s3c64xx.c

diff --git a/drivers/mtd/nand/Makefile b/drivers/mtd/nand/Makefile
index 7bd22a0..236cf03 100644
--- a/drivers/mtd/nand/Makefile
+++ b/drivers/mtd/nand/Makefile
@@ -33,6 +33,7 @@ COBJS-y += nand_bbt.o
 COBJS-y += nand_util.o
 
 COBJS-y += fsl_upm.o
+COBJS-$(CONFIG_NAND_S3C64XX) += s3c64xx.o
 
 COBJS  := $(COBJS-y)
 SRCS   := $(COBJS:.o=.c)
diff --git a/drivers/mtd/nand/s3c64xx.c b/drivers/mtd/nand/s3c64xx.c
new file mode 100644
index 000..49d3440
--- /dev/null
+++ b/drivers/mtd/nand/s3c64xx.c
@@ -0,0 +1,315 @@
+/*
+ * (C) Copyright 2006 DENX Software Engineering
+ *
+ * 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 common.h
+
+#include nand.h
+#include s3c6400.h
+
+#include asm/io.h
+
+#ifdef CONFIG_NAND_SPL
+#define printf(arg...) do {} while (0)
+#endif
+
+/* Nand flash definition values by jsgood */
+#define S3C_NAND_CFG_HWECC
+#undef S3C_NAND_DEBUG
+
+#ifdef S3C_NAND_DEBUG
+/*
+ * Function to print out oob buffer for debugging
+ * Written by jsgood
+ */
+static void print_oob(const char *header, struct mtd_info *mtd)
+{
+   int i;
+   struct nand_chip *chip = mtd-priv;
+
+   printf(%s:\t, header);
+
+   for(i = 0; i  64; i++)
+   printf(%02x , chip-oob_poi[i]);
+
+   printf(\n);
+}
+#endif /* S3C_NAND_DEBUG */
+
+#ifdef CONFIG_NAND_SPL
+static u_char nand_read_byte(struct mtd_info *mtd)
+{
+   struct nand_chip *this = mtd-priv;
+   return readb(this-IO_ADDR_R);
+}
+
+static void nand_write_byte(struct mtd_info *mtd, u_char byte)
+{
+   struct nand_chip *this = mtd-priv;
+   writeb(byte, this-IO_ADDR_W);
+}
+
+static void nand_read_buf(struct mtd_info *mtd, u_char *buf, int len)
+{
+   int i;
+   struct nand_chip *this = mtd-priv;
+
+   for (i = 0; i  len; i++)
+   buf[i] = readb(this-IO_ADDR_R);
+}
+#endif
+
+static void s3c_nand_select_chip(struct mtd_info *mtd, int chip)
+{
+   int ctrl = readl(NFCONT);
+
+   switch (chip) {
+   case -1:
+   ctrl |= 6;
+   break;
+   case 0:
+   ctrl = ~2;
+   break;
+   case 1:
+   ctrl = ~4;
+   break;
+   default:
+   return;
+   }
+
+   writel(ctrl, NFCONT);
+}
+
+/*
+ * Hardware specific access to control-lines function
+ * Written by jsgood
+ */
+static void s3c_nand_hwcontrol(struct mtd_info *mtd, int cmd)
+{
+   struct nand_chip *this = mtd-priv;
+
+   switch (cmd) {
+   case NAND_CTL_SETCLE:
+   this-IO_ADDR_W = (void __iomem *)NFCMMD;
+   break;
+   case NAND_CTL_CLRCLE:
+   this-IO_ADDR_W = (void __iomem *)NFDATA;
+   break;
+   case NAND_CTL_SETALE:
+   this-IO_ADDR_W = (void __iomem *)NFADDR;
+   break;
+   case NAND_CTL_CLRALE:
+   this-IO_ADDR_W = (void __iomem *)NFDATA;
+   break;
+   case NAND_CTL_SETNCE:
+   s3c_nand_select_chip(mtd, 0);
+   break;
+   case NAND_CTL_CLRNCE:
+   s3c_nand_select_chip(mtd, -1);
+   break;
+   }
+}
+
+/*
+ * Function for checking device ready pin
+ * Written by jsgood
+ */
+static int s3c_nand_device_ready(struct mtd_info *mtdinfo)
+{
+   while (!(readl(NFSTAT)  NFSTAT_RnB)) {}
+   return 1;
+}
+
+#ifdef S3C_NAND_CFG_HWECC
+/*
+ * This function is called before encoding ecc codes to ready ecc engine.
+ * Written by jsgood
+ */
+static void s3c_nand_enable_hwecc(struct mtd_info *mtd, int mode)
+{
+   u_long nfcont, nfconf;
+
+   /*
+* The original driver used 4-bit ECC for new MLC chips, i.e., for
+* those with non-zero ID[3][3:2], which anyway only holds for ST
+* (Numonyx) chips
+*/
+   nfconf = readl(NFCONF)  ~NFCONF_ECC_4BIT;
+
+   writel(nfconf, NFCONF);
+
+   /* Initialize  unlock */
+   nfcont = readl(NFCONT);

[U-Boot-Users] [PATCH 7/7] ARM: Add support for S3C6400 based SMDK6400 board

2008-07-31 Thread Guennadi Liakhovetski
This board can only boot U-Boot from NAND-flash. This patch adds a nand_spl
driver for it too. SMDK6400 can also boot from the NOR flash, but due to
hardware limitations it can only address 64KiB on it, which is not enough for
U-Boot. Ported from u-boot-1.1.6 version by Samsung.

Signed-off-by: Guennadi Liakhovetski [EMAIL PROTECTED]
---
 MAKEALL|1
 Makefile   |   17 +
 board/samsung/smdk6400/Makefile|   51 +
 board/samsung/smdk6400/config.mk   |   27 +++
 board/samsung/smdk6400/lowlevel_init.S |  315 ++
 board/samsung/smdk6400/smdk6400.c  |  178 +++
 board/samsung/smdk6400/u-boot-nand.lds |   60 +
 include/configs/smdk6400.h |  338 
 nand_spl/board/samsung/smdk6400/Makefile   |  103 +
 nand_spl/board/samsung/smdk6400/config.mk  |   40 
 nand_spl/board/samsung/smdk6400/u-boot.lds |   58 +
 11 files changed, 1188 insertions(+), 0 deletions(-)
 create mode 100644 board/samsung/smdk6400/Makefile
 create mode 100644 board/samsung/smdk6400/config.mk
 create mode 100644 board/samsung/smdk6400/lowlevel_init.S
 create mode 100644 board/samsung/smdk6400/smdk6400.c
 create mode 100644 board/samsung/smdk6400/u-boot-nand.lds
 create mode 100644 include/configs/smdk6400.h
 create mode 100644 nand_spl/board/samsung/smdk6400/Makefile
 create mode 100644 nand_spl/board/samsung/smdk6400/config.mk
 create mode 100644 nand_spl/board/samsung/smdk6400/u-boot.lds

diff --git a/MAKEALL b/MAKEALL
index ee83cca..a3ed47d 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -515,6 +515,7 @@ LIST_ARM11=\
imx31_litekit   \
imx31_phycore   \
mx31ads \
+   smdk6400\
 
 
 #
diff --git a/Makefile b/Makefile
index b104617..0c5b8a6 100644
--- a/Makefile
+++ b/Makefile
@@ -2677,6 +2677,23 @@ mx31ads_config   : unconfig
 omap2420h4_config  : unconfig
@$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
 
+#
+## ARM1176 Systems
+#
+smdk6400_noUSB_config  \
+smdk6400_config:   unconfig
+   @mkdir -p $(obj)include $(obj)board/samsung/smdk6400
+   @mkdir -p $(obj)nand_spl/board/samsung/smdk6400
+   @echo #define CONFIG_NAND_U_BOOT  $(obj)include/config.h
+   @if [ -z $(findstring smdk6400_noUSB_config,$@) ]; then   
\
+   echo RAM_TEXT = 0x57e0  
$(obj)board/samsung/smdk6400/config.tmp;\
+   $(MKCONFIG) $(@:_config=) arm arm1176 smdk6400 samsung s3c64xx; 
\
+   else
\
+   echo RAM_TEXT = 0xc7e0  
$(obj)board/samsung/smdk6400/config.tmp;\
+   $(MKCONFIG) $(@:_noUSB_config=) arm arm1176 smdk6400 samsung 
s3c64xx;   \
+   fi
+   @echo CONFIG_NAND_U_BOOT = y  $(obj)include/config.mk
+
 #
 # i386
 #
diff --git a/board/samsung/smdk6400/Makefile b/board/samsung/smdk6400/Makefile
new file mode 100644
index 000..1200e45
--- /dev/null
+++ b/board/samsung/smdk6400/Makefile
@@ -0,0 +1,51 @@
+#
+# (C) Copyright 2000, 2001, 2002
+# Wolfgang Denk, DENX Software Engineering, [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= lib$(BOARD).a
+
+OBJS   := smdk6400.o
+#OBJS  := smdk6400.o flash.o
+SOBJS  := lowlevel_init.o
+
+$(LIB):$(OBJS) $(SOBJS)
+   $(AR) crv $@ $(SOBJS) $(OBJS)
+
+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)  $@
+
+# defines $(obj).depend target
+include 

Re: [U-Boot-Users] [PATCH {1,2}`s/6/7/`] patch counting

2008-07-31 Thread Guennadi Liakhovetski
Sorry, these were of course 7 patches. Can resend the first two if needed.

Thanks  
Guennadi
---
Guennadi Liakhovetski, Ph.D.

DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: [EMAIL PROTECTED]

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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 UBI

2008-07-31 Thread Nigel Hathaway
Bernard,

 Nigel Hathaway wrote:
  Hoping to avoid re-inventing the wheel
  
  It would seem that there are a number of people who are
independently
  porting UBI to U-Boot.

 I expressed interest in doing so at the time but nothing happened
about 
 it unfortunately. I can't speak for anyone else though.

 Bernard.

In the short term we've found a way to get round having to UBI and hence
porting it to U-Boot (we have a NOR/NAND combination, and we've gone for
the NAND as entirely jffs2).

However, the next spin of our product will use entirely NAND flash: it
will use an SoC which has an internal ROMboot and can load U-Boot
directly from NAND flash. We will have to go to UBI then (starting
development early 2009).

I have been playing around with a board from Olimex: the SAM9-L9260 (it
has an Atmel AT91SAM9260 on it). This has a ROMboot with U-Boot in NAND
flash. The board I am using has an interesting feature: the block which
U-Boot is configured to use for storing its environment just happens to
be a bad block, so I can't change and store the U-Boot environment
parameters on it.

Either the U-Boot that comes pre-flashed into the board (v1.2.0) is
misconfigured, or that version of U-Boot has failed to take into account
the possibility of the scenario described. Either way, there would
appear to be some work to do to get U-boot up-to-date with Linux MTD
state-of-the-art.

Nigel

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Test - Please ignore

2008-07-31 Thread Guennadi Liakhovetski
On Wed, 30 Jul 2008, Wolfgang Denk wrote:

 Dear Ken,
 
 in message [EMAIL PROTECTED] you wrote:
  
  You missed my point.  I suspect that the mailing list server is not
  sending me messages when it sees that my address is also in a To
  or CC header.  I verified the U-Boot-Users mailman configuration
  for my account twice that I should be sent a copy of all mailing
  list messages, regardless of whether or not my address appears in
  a To or CC header (see 1st paragraph quoted above).
 
 Let's try it out, then. Hide is off here.

Sorry for not ignoring, I had the same feature with my account at the 
previous employer. The thing is, that these messages come with the same 
message ID, and some mail servers, trying to comply to some RFC let only 
one message with every specific ID through. As a matter of fact this is a 
wrong interpretation of the RFC, more important is, that a mail-server 
must accept every message, i.e., must not impose any rules upon 
mail-validity. Or something like this anyway.

Ignore if this is not your problem.

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] Problem with some usb stick FAT 32

2008-07-31 Thread Cacre Marco, IT

Hi all,

I'm experiencing a problem with some KINGSTON usb stick (FAT32, 2 Gbytes) using 
u-boot 1.1.5.
Since I'm a newbe in u-boot I hope someone could give me some info/suggestions 
about this problem.

Our HW platform is based on ATMEL at91sam9261ek board on which we have 
installed (in dataflash) the at91 bootstrap, u-boot 1.1.5 and linux kernel 
2.6.22.

In short, in u-boot the usb device is correctly recognized but a subsequent 
read of a file fail with the
error: CTL: TIMEOUT printed in the function submit_common_msg() (file 
./cpu/arm926ejs/at91sam926x/usb_ohci.c)

I work with the same usb sticks without any problem when linux boot up.

I experience the same problem with both the uboot 1.1.5 at91 atmel patches ver. 
1.2  and the latest ver 1.7 

I have attached a detailed trace hoping that could be useful

Thanks a lot in anticipation for any kind of help

Best regards

Marco Cacre

=

USB:   DEBUG: USB HC reset_hc usb-sam9261: ctrl = 0x0 ;


scanning bus for devices... 
1 Storage Device(s) found


---  I have leave the detailed trace before this line to reduce the size 
of the post

DEBUG: SUB URB:[ b81] dev: 2,ep: 1-O,type:BULK,len:0/31 stat:0x8000
DEBUG: RET(ctlr) URB:[ b92] dev: 2,ep: 1-O,type:BULK,len:31/31 stat:0x0
DEBUG: SUB URB:[ b9d] dev: 2,ep: 1-I,type:BULK,len:0/13 stat:0x8000
DEBUG: RET(ctlr) URB:[ bae] dev: 2,ep: 1-I,type:BULK,len:13/13 stat:0x0
DEBUG: SUB URB:[ bb5] dev: 2,ep: 1-O,type:BULK,len:0/31 stat:0x8000
DEBUG: RET(ctlr) URB:[ bc6] dev: 2,ep: 1-O,type:BULK,len:31/31 stat:0x0
DEBUG: SUB URB:[ bd1] dev: 2,ep: 1-I,type:BULK,len:0/512 stat:0x8000
DEBUG: RET(ctlr) URB:[ be2] dev: 2,ep: 1-I,type:BULK,len:512/512 stat:0x0
DEBUG: SUB URB:[ be9] dev: 2,ep: 1-I,type:BULK,len:0/13 stat:0x8000
DEBUG: RET(ctlr) URB:[ bfa] dev: 2,ep: 1-I,type:BULK,len:13/13 stat:0x0
DEBUG: SUB URB:[ c00] dev: 2,ep: 1-O,type:BULK,len:0/31 stat:0x8000
DEBUG: RET(ctlr) URB:[ c11] dev: 2,ep: 1-O,type:BULK,len:31/31 stat:0x0
DEBUG: SUB URB:[ c1d] dev: 2,ep: 1-I,type:BULK,len:0/13 stat:0x8000
DEBUG: RET(ctlr) URB:[ c2e] dev: 2,ep: 1-I,type:BULK,len:13/13 stat:0x0
DEBUG: SUB URB:[ c34] dev: 2,ep: 1-O,type:BULK,len:0/31 stat:0x8000
DEBUG: RET(ctlr) URB:[ c45] dev: 2,ep: 1-O,type:BULK,len:31/31 stat:0x0
DEBUG: SUB URB:[ c50] dev: 2,ep: 1-I,type:BULK,len:0/512 stat:0x8000
DEBUG: RET(ctlr) URB:[ c62] dev: 2,ep: 1-I,type:BULK,len:512/512 stat:0x0
DEBUG: SUB URB:[ c68] dev: 2,ep: 1-I,type:BULK,len:0/13 stat:0x8000
DEBUG: RET(ctlr) URB:[ c79] dev: 2,ep: 1-I,type:BULK,len:13/13 stat:0x0
reading /mft300/boot/ripristino//at91.bin.sig
DEBUG: SUB URB:[ c84] dev: 2,ep: 1-O,type:BULK,len:0/31 stat:0x8000
DEBUG: RET(ctlr) URB:[ c95] dev: 2,ep: 1-O,type:BULK,len:31/31 stat:0x0
DEBUG: SUB URB:[ ca0] dev: 2,ep: 1-I,type:BULK,len:0/13 stat:0x8000
DEBUG: RET(ctlr) URB:[ cb1] dev: 2,ep: 1-I,type:BULK,len:13/13 stat:0x0
DEBUG: SUB URB:[ cb8] dev: 2,ep: 1-O,type:BULK,len:0/31 stat:0x8000
DEBUG: RET(ctlr) URB:[ cc9] dev: 2,ep: 1-O,type:BULK,len:31/31 stat:0x0
DEBUG: SUB URB:[ cd4] dev: 2,ep: 1-I,type:BULK,len:0/512 stat:0x8000
DEBUG: RET(ctlr) URB:[ ce5] dev: 2,ep: 1-I,type:BULK,len:512/512 stat:0x0
DEBUG: SUB URB:[ cec] dev: 2,ep: 1-I,type:BULK,len:0/13 stat:0x8000
DEBUG: RET(ctlr) URB:[ cfd] dev: 2,ep: 1-I,type:BULK,len:13/13 stat:0x0
DEBUG: SUB URB:[ d03] dev: 2,ep: 1-O,type:BULK,len:0/31 stat:0x8000
DEBUG: RET(ctlr) URB:[ d14] dev: 2,ep: 1-O,type:BULK,len:31/31 stat:0x0
DEBUG: SUB URB:[ d20] dev: 2,ep: 1-I,type:BULK,len:0/13 stat:0x8000
DEBUG: RET(ctlr) URB:[ d31] dev: 2,ep: 1-I,type:BULK,len:13/13 stat:0x0
DEBUG: SUB URB:[ d37] dev: 2,ep: 1-O,type:BULK,len:0/31 stat:0x8000
DEBUG: RET(ctlr) URB:[ d48] dev: 2,ep: 1-O,type:BULK,len:31/31 stat:0x0
DEBUG: SUB URB:[ d54] dev: 2,ep: 1-I,type:BULK,len:0/10240 stat:0x8000
DEBUG: %
DEBUG: hc_interrupt: returning..

DEBUG: %
DEBUG: hc_interrupt: returning..

 same message many times






ERROR: CTL:TIMEOUT
DEBUG: submit_common_msg: TO status ff

DEBUG: RET(ctlr) URB:[6ae1] dev: 2,ep: 1-I,type:BULK,len:0/10240 stat:0x20
DEBUG: SUB URB:[6ae7] dev: 2,ep: 0-O,type:CTRL,len:0/0 stat:0x8000
DEBUG: SUB URB:[6aed] dev: 2,ep: 0-O,type:CTRL,len:0/0 stat:0x8000
DEBUG:  USB-error/status: 5 : 21f2d560
DEBUG: ConditionCode 0x5
DEBUG: RET(ctlr) URB:[6b04] dev: 2,ep: 0-O,type:CTRL,len:0/0 stat:0x20
DEBUG: SUB URB:[6ba1] dev: 2,ep: 0-O,type:CTRL,len:0/0 stat:0x8000
DEBUG: SUB URB:[6ba7] dev: 2,ep: 0-O,type:CTRL,len:0/0 stat:0x8000
DEBUG:  USB-error/status: 5 : 21f2d5e0
DEBUG: ConditionCode 0x5
DEBUG: RET(ctlr) URB:[6bbe] dev: 2,ep: 0-O,type:CTRL,len:0/0 stat:0x20
DEBUG: SUB URB:[6c5a] dev: 2,ep: 0-O,type:CTRL,len:0/0 stat:0x8000
DEBUG: SUB 

[U-Boot-Users] [PATCH] apollon: fix build out of tree

2008-07-31 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD [EMAIL PROTECTED]
---
 Makefile   |4 +-
 onenand_ipl/board/apollon/Makefile |   41 +--
 2 files changed, 31 insertions(+), 14 deletions(-)

diff --git a/Makefile b/Makefile
index 369bbd7..f33aad5 100644
--- a/Makefile
+++ b/Makefile
@@ -346,10 +346,9 @@ $(U_BOOT_NAND):$(NAND_SPL) $(obj)u-boot.bin 
$(obj)include/autoconf.mk
cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin  
$(obj)u-boot-nand.bin
 
 $(ONENAND_IPL):$(VERSION_FILE) $(obj)include/autoconf.mk
-   $(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all
+   $(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
 
 $(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin 
$(obj)include/autoconf.mk
-   $(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all
cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin  
$(obj)u-boot-onenand.bin
cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin  
$(obj)u-boot-flexonenand.bin
 
@@ -2664,6 +2663,7 @@ zylonite_config :
 
 apollon_config : unconfig
@mkdir -p $(obj)include
+   @mkdir -p $(obj)onenand_ipl/board/apollon
@echo #define CONFIG_ONENAND_U_BOOT  $(obj)include/config.h
@$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
@echo CONFIG_ONENAND_U_BOOT = y  $(obj)include/config.mk
diff --git a/onenand_ipl/board/apollon/Makefile 
b/onenand_ipl/board/apollon/Makefile
index f10ed02..6d04379 100644
--- a/onenand_ipl/board/apollon/Makefile
+++ b/onenand_ipl/board/apollon/Makefile
@@ -1,6 +1,5 @@
 
 include $(TOPDIR)/config.mk
-include $(TOPDIR)/include/config.mk
 include $(TOPDIR)/onenand_ipl/board/$(BOARDDIR)/config.mk
 
 LDSCRIPT= $(TOPDIR)/onenand_ipl/board/$(BOARDDIR)/u-boot.onenand.lds
@@ -9,8 +8,11 @@ AFLAGS += -DCONFIG_ONENAND_IPL
 CFLAGS += -DCONFIG_ONENAND_IPL
 OBJCLFAGS += --gap-fill=0x00
 
-SOBJS  = start.o low_levelinit.o
-COBJS  = apollon.o onenand_read.o onenand_boot.o
+SOBJS  := start.o
+SOBJS  += start.o
+COBJS  := apollon.o
+COBJS  += onenand_read.o
+COBJS  += onenand_boot.o
 
 SRCS   := $(addprefix $(obj),$(SOBJS:.o=.S) $(COBJS:.o=.c))
 OBJS   := $(addprefix $(obj),$(SOBJS) $(COBJS))
@@ -35,27 +37,39 @@ $(onenandobj)onenand-ipl.bin:   $(onenandobj)onenand-ipl
 $(onenandobj)onenand-ipl:  $(OBJS)
cd $(LNDIR)  $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
-Map $(onenandobj)onenand-ipl.map \
-   -o $(onenandobj)onenand-ipl
+   -o $@
 
 # create symbolic links from common files
 
 # from cpu directory
 $(obj)start.S:
-   rm -f $(obj)start.S
-   ln -s $(SRCTREE)/cpu/$(CPU)/start.S $(obj)start.S
+   @rm -f $@
+   ln -s $(SRCTREE)/cpu/$(CPU)/start.S $@
 
 # from onenand_ipl directory
 $(obj)onenand_ipl.h:
-   rm -f $(obj)onenand_ipl.h
-   ln -s $(SRCTREE)/onenand_ipl/onenand_ipl.h $(obj)onenand_ipl.h
+   @rm -f $@
+   ln -s $(SRCTREE)/onenand_ipl/onenand_ipl.h $@
 
 $(obj)onenand_boot.c:  $(obj)onenand_ipl.h
-   rm -f $(obj)onenand_boot.c
-   ln -s $(SRCTREE)/onenand_ipl/onenand_boot.c $(obj)onenand_boot.c
+   @rm -f $@
+   ln -s $(SRCTREE)/onenand_ipl/onenand_boot.c $@
 
 $(obj)onenand_read.c:  $(obj)onenand_ipl.h
-   rm -f $(obj)onenand_read.c
-   ln -s $(SRCTREE)/onenand_ipl/onenand_read.c $(obj)onenand_read.c
+   @rm -f $@
+   ln -s $(SRCTREE)/onenand_ipl/onenand_read.c $@
+
+ifneq ($(OBJTREE), $(SRCTREE))
+$(obj)apollon.c:
+   @rm -f $@
+   ln -s $(SRCTREE)/onenand_ipl/board/$(BOARDDIR)/apollon.c $@
+
+$(obj)low_levelinit.S:
+   @rm -f $@
+   ln -s $(SRCTREE)/onenand_ipl/board/$(BOARDDIR)/low_levelinit.S $@
+endif
+
+#
 
 $(obj)%.o: $(obj)%.S
$(CC) $(AFLAGS) -c -o $@ $
@@ -63,6 +77,9 @@ $(obj)%.o:$(obj)%.S
 $(obj)%.o: $(obj)$.c
$(CC) $(CFLAGS) -c -o $@ $
 
+# defines $(obj).depend target
 include $(SRCTREE)/rules.mk
 
 sinclude $(obj).depend
+
+#
-- 
1.5.6


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Problem with some usb stick FAT 32

2008-07-31 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote:
 
 I'm experiencing a problem with some KINGSTON usb stick (FAT32, 2
 Gbytes) using u-boot 1.1.5.

U-Boot 1.1.5 is *very* old. A lot of USB related problems  have  been
fixed  since. Please try a recent version of U-Boot instead (1.3.3 or
later).

 Content-Type: text/html;
   charsetĂ¿so-8859-1
 Content-Transfer-Encoding: quoted-printable

And *never* post HTML on this list!

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
Anyone who doesn't believe in miracles is not a realist.
   - David Ben Gurion

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH] nand_spl: clean up Makefile

2008-07-31 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD [EMAIL PROTECTED]
---
need Scott Wood patch  * NAND: $(obj)-qualify ecc.h in kilauea NAND boot 
Makefile.

 nand_spl/board/amcc/acadia/Makefile  |   51 
 nand_spl/board/amcc/bamboo/Makefile  |   39 --
 nand_spl/board/amcc/canyonlands/Makefile |   34 ++--
 nand_spl/board/amcc/kilauea/Makefile |   45 ++---
 nand_spl/board/amcc/sequoia/Makefile |   52 +
 5 files changed, 123 insertions(+), 98 deletions(-)

diff --git a/nand_spl/board/amcc/acadia/Makefile 
b/nand_spl/board/amcc/acadia/Makefile
index 931f04b..23f76be 100644
--- a/nand_spl/board/amcc/acadia/Makefile
+++ b/nand_spl/board/amcc/acadia/Makefile
@@ -29,8 +29,15 @@ LDFLAGS  = -Bstatic -T $(LDSCRIPT) -Ttext $(TEXT_BASE) 
$(PLATFORM_LDFLAGS)
 AFLAGS += -DCONFIG_NAND_SPL
 CFLAGS += -DCONFIG_NAND_SPL
 
-SOBJS  = start.o resetvec.o cache.o
-COBJS  = gpio.o nand_boot.o nand_ecc.o memory.o ndfc.o pll.o
+SOBJS  := cache.o
+SOBJS  += resetvec.o
+SOBJS  += start.o
+COBJS  := gpio.o
+COBJS  += memory.o
+COBJS  += nand_boot.o
+COBJS  += nand_ecc.o
+COBJS  += ndfc.o
+COBJS  += pll.o
 
 SRCS   := $(addprefix $(obj),$(SOBJS:.o=.S) $(COBJS:.o=.c))
 OBJS   := $(addprefix $(obj),$(SOBJS) $(COBJS))
@@ -53,54 +60,54 @@ $(nandobj)u-boot-spl.bin:   $(nandobj)u-boot-spl
 $(nandobj)u-boot-spl:  $(OBJS)
cd $(LNDIR)  $(LD) $(LDFLAGS) $(__OBJS) \
-Map $(nandobj)u-boot-spl.map \
-   -o $(nandobj)u-boot-spl
+   -o $@
 
 $(nandobj)System.map:  $(nandobj)u-boot-spl
@$(NM) $ | \
grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] 
\)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
-   sort  $(nandobj)System.map
+   sort  $@
 
 # create symbolic links for common files
 
 # from cpu directory
 $(obj)cache.S:
-   @rm -f $(obj)cache.S
-   ln -s $(SRCTREE)/cpu/ppc4xx/cache.S $(obj)cache.S
+   @rm -f $@
+   ln -s $(SRCTREE)/cpu/ppc4xx/cache.S $@
 
 $(obj)gpio.c:
-   @rm -f $(obj)gpio.c
-   ln -s $(SRCTREE)/cpu/ppc4xx/gpio.c $(obj)gpio.c
+   @rm -f $@
+   ln -s $(SRCTREE)/cpu/ppc4xx/gpio.c $@
 
 $(obj)ndfc.c:
-   @rm -f $(obj)ndfc.c
-   ln -s $(SRCTREE)/cpu/ppc4xx/ndfc.c $(obj)ndfc.c
+   @rm -f $@
+   ln -s $(SRCTREE)/cpu/ppc4xx/ndfc.c $@
 
 $(obj)resetvec.S:
-   @rm -f $(obj)resetvec.S
-   ln -s $(SRCTREE)/cpu/ppc4xx/resetvec.S $(obj)resetvec.S
+   @rm -f $@
+   ln -s $(SRCTREE)/cpu/ppc4xx/resetvec.S $@
 
 $(obj)start.S:
-   @rm -f $(obj)start.S
-   ln -s $(SRCTREE)/cpu/ppc4xx/start.S $(obj)start.S
+   @rm -f $@
+   ln -s $(SRCTREE)/cpu/ppc4xx/start.S $@
 
 # from board directory
 $(obj)memory.c:
-   @rm -f $(obj)memory.c
-   ln -s $(SRCTREE)/board/amcc/acadia/memory.c $(obj)memory.c
+   @rm -f $@
+   ln -s $(SRCTREE)/board/amcc/$(BOARDDIR)/memory.c $@
 
 $(obj)pll.c:
-   @rm -f $(obj)pll.c
-   ln -s $(SRCTREE)/board/amcc/acadia/pll.c $(obj)pll.c
+   @rm -f $@
+   ln -s $(SRCTREE)/board/amcc/$(BOARDDIR)/pll.c $@
 
 # from nand_spl directory
 $(obj)nand_boot.c:
-   @rm -f $(obj)nand_boot.c
-   ln -s $(SRCTREE)/nand_spl/nand_boot.c $(obj)nand_boot.c
+   @rm -f $@
+   ln -s $(SRCTREE)/nand_spl/nand_boot.c $@
 
 # from drivers/mtd/nand directory
 $(obj)nand_ecc.c:
-   @rm -f $(obj)nand_ecc.c
-   ln -s $(SRCTREE)/drivers/mtd/nand/nand_ecc.c $(obj)nand_ecc.c
+   @rm -f $@
+   ln -s $(SRCTREE)/drivers/mtd/nand/nand_ecc.c $@
 
 #
 
diff --git a/nand_spl/board/amcc/bamboo/Makefile 
b/nand_spl/board/amcc/bamboo/Makefile
index e1c1467..14b55e6 100644
--- a/nand_spl/board/amcc/bamboo/Makefile
+++ b/nand_spl/board/amcc/bamboo/Makefile
@@ -29,8 +29,13 @@ LDFLAGS  = -Bstatic -T $(LDSCRIPT) -Ttext $(TEXT_BASE) 
$(PLATFORM_LDFLAGS)
 AFLAGS += -DCONFIG_NAND_SPL
 CFLAGS += -DCONFIG_NAND_SPL
 
-SOBJS  = start.o init.o resetvec.o
-COBJS  = nand_boot.o nand_ecc.o ndfc.o sdram.o
+SOBJS  := init.o
+SOBJS  += resetvec.o
+SOBJS  += start.o
+COBJS  := nand_boot.o
+COBJS  += nand_ecc.o
+COBJS  += ndfc.o
+COBJS  += sdram.o
 
 SRCS   := $(addprefix $(obj),$(SOBJS:.o=.S) $(COBJS:.o=.c))
 OBJS   := $(addprefix $(obj),$(SOBJS) $(COBJS))
@@ -52,42 +57,42 @@ $(nandobj)u-boot-spl.bin:   $(nandobj)u-boot-spl
 $(nandobj)u-boot-spl:  $(OBJS)
cd $(LNDIR)  $(LD) $(LDFLAGS) $(__OBJS) \
-Map $(nandobj)u-boot-spl.map \
-   -o $(nandobj)u-boot-spl
+   -o $@
 
 # create symbolic links for common files
 
 # from cpu directory
 $(obj)ndfc.c:
-   @rm -f $(obj)ndfc.c
-   ln -s $(SRCTREE)/cpu/ppc4xx/ndfc.c $(obj)ndfc.c
+   @rm -f $@
+   ln -s $(SRCTREE)/cpu/ppc4xx/ndfc.c $@
 
 $(obj)resetvec.S:
-   @rm -f $(obj)resetvec.S
-   ln -s $(SRCTREE)/cpu/ppc4xx/resetvec.S $(obj)resetvec.S
+   @rm 

Re: [U-Boot-Users] AT91SAM9261-EK USB storage not working...

2008-07-31 Thread Remy Bohmer
Hello Stelian and others,

I have made some progress here, and I would like to inform you all:

 But I have a question here:
 Does USB-storage devices work in U-boot at your place? (e.g. 1GB USB
 memory stick) I use U-boot 1.3.4-rc1
 You're correct, USB support on the AT91SAM9 boards has some unknown
 issues. I can reproduce the behaviour you're seing easily here.
 Nicolas Ferre (added in CC:) confirmed the problem too (with both the
 current U-Boot version and the atmel specific 1.1.5-atmel_1.5 version).
 But he is very certain that it did work at some time in the past, with
 some USB storage devices.

I have done a lot of debugging/testing etc. and I noticed that binary
deliverables of U-boot for the evaluationkit work properly with
USB-storage devices on the AT91SAM9261-EK kit.
They were all based on U-boot 1.1.3, 1.1.4, 1.1.5 Atmel versions.

But, I was not able to get a working version when I build such a code
tree myself. I use gcc version 4.2.3 (Sourcery G++ Lite 2008q1-126)
An hour ago I got the stupid idea to get an older compiler: gcc
version 3.4.2 (release) (CodeSourcery ARM Q3D 2004)

And this one delivers a working usb-ohci in u-boot.bin :-))

Even u-boot-1.3.4-rc1 now works with USB-storage devices on these
at91sam9261 cores.
I also tried GCC 4.1.0, but that one delivered also a broken binary
Compiling without optimisation (-Os) resulted in a binary that did not
boot at all... (not debugged yet why)

So, with GCC 4.2.3 everything in U-boot seems to work, except the
USB-OHCI driver...
For the USB-OHCI driver we apparantly need a GCC 3.xx compiler.

Now, we need to debug why GCC 4.x is a problem...

Kind Regards,

Remy

 So it may be a matter of hardware (lo or hi-speed USB storage
 devices ?), or a matter of timing somewhere in the driver, I do not
 know. The Linux USB stack works perfectly, so this is not a hardware
 problem on the AT91SAM9 chip or board.

 Somebody needs to debug this, but I didn't found the time to investigate
 yet. If you badly need it to work, well, you're welcome to try debugging
 it :)


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] mvbc_p board: build warnings

2008-07-31 Thread Wolfgang Denk
Hi,

I'm trying to clean up the build warnings for the mvbc_p board.
I've succeded with all but this one:

mvbc_p.c: In function 'mvbc_init_gpio':
mvbc_p.c:124: warning: dereferencing type-punned pointer will break 
strict-aliasing rules

This relates to the following code:

115 out_be32(gpio-simple_ddr, SIMPLE_DDR);
116 out_be32(gpio-simple_dvo, SIMPLE_DVO);
117 out_be32(gpio-simple_ode, SIMPLE_ODE);
118 out_be32(gpio-simple_gpioe, SIMPLE_GPIOEN);   == volatile u8 
outo_gpioe;
119
120 out_be32((u32*)gpio-sint_ode, SINT_ODE);  == volatile u8 
sint_ode;
121 out_be32((u32*)gpio-sint_ddr, SINT_DDR);  == volatile u8 
sint_ddr;
122 out_be32((u32*)gpio-sint_dvo, SINT_DVO);  == volatile u8 
sint_dvo;
123 out_be32((u32*)gpio-sint_inten, SINT_INTEN);  == volatile u8 
sint_inten;
124 out_be32((u32*)gpio-sint_itype, SINT_ITYPE);  == volatile 
u16 sint_itype;
125 out_be32((u32*)gpio-sint_gpioe, SINT_GPIOEN); == volatile u8 
outo_gpioe;


I don't know why the warning is only issued for the  u16  type  and
not  also for the u8 ones, but anyway: Is the casting to u32* and
using out_be32() here really correct?

I would expect to see some out_be8() and one out_be16() here?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
In Christianity neither morality nor religion come into contact with
reality at any point.  - Friedrich Nietzsche

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] SD support for more than 128MB in u-boot1.3.1

2008-07-31 Thread Naveen Kumar GADDIPATI
Hi,

Processor is arm926ejs based ST processor.
I'm facing problem in supporting SD Card of size more than 128MB.
SD Card is able to detect,but failing in reading boot sector info of the SD 
block.

Is their any limitation for FAT16 in uboot 1.3.1?

One more thing,Is FAT32 support is present in uboot 1.3.1?If their any patch 
for FAT32 in u-boot,please respond.

Regards,
Naveen


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] nand_spl: clean up Makefile

2008-07-31 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote:
 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD [EMAIL PROTECTED]
 ---
 need Scott Wood patch  * NAND: $(obj)-qualify ecc.h in kilauea NAND boot 
 Makefile.

This has been in mainline for some time...

 @@ -53,54 +60,54 @@ $(nandobj)u-boot-spl.bin: $(nandobj)u-boot-spl
  $(nandobj)u-boot-spl:$(OBJS)
   cd $(LNDIR)  $(LD) $(LDFLAGS) $(__OBJS) \
   -Map $(nandobj)u-boot-spl.map \
 - -o $(nandobj)u-boot-spl
 + -o $@

If you do this, you should also change $(nandobj)u-boot-spl.map
into [EMAIL PROTECTED] (and put both on one line), I think.

 --- a/nand_spl/board/amcc/canyonlands/Makefile
 +++ b/nand_spl/board/amcc/canyonlands/Makefile
 @@ -29,9 +29,9 @@ LDFLAGS = -Bstatic -T $(LDSCRIPT) -Ttext $(TEXT_BASE) 
 $(PLATFORM_LDFLAGS)
  AFLAGS   += -DCONFIG_NAND_SPL
  CFLAGS   += -DCONFIG_NAND_SPL
  
 -SOBJS:= start.o
 -SOBJS+= init.o
 +SOBJS:= init.o
  SOBJS+= resetvec.o
 +SOBJS+= start.o
  COBJS:= ddr2_fixed.o
  COBJS+= nand_boot.o
  COBJS+= nand_ecc.o

I am not sure if changing the order of the object files is a good idea
here. Are you absolutley sure that start.o is not required to come first?

[Both comments apply to all the boards you touched, of course.]

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
Fascinating, a totally parochial attitude.
-- Spock, Metamorphosis, stardate 3219.8

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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 7/7] ARM: Add support for S3C6400 based SMDK6400 board

2008-07-31 Thread Ben Warren
On Thu, Jul 31, 2008 at 3:55 AM, Guennadi Liakhovetski [EMAIL PROTECTED] 
wrote:
 This board can only boot U-Boot from NAND-flash. This patch adds a nand_spl
 driver for it too. SMDK6400 can also boot from the NOR flash, but due to
 hardware limitations it can only address 64KiB on it, which is not enough for
 U-Boot. Ported from u-boot-1.1.6 version by Samsung.

 Signed-off-by: Guennadi Liakhovetski [EMAIL PROTECTED]
 ---
  MAKEALL|1
  Makefile   |   17 +
  board/samsung/smdk6400/Makefile|   51 +
  board/samsung/smdk6400/config.mk   |   27 +++
  board/samsung/smdk6400/lowlevel_init.S |  315 ++
  board/samsung/smdk6400/smdk6400.c  |  178 +++
  board/samsung/smdk6400/u-boot-nand.lds |   60 +
  include/configs/smdk6400.h |  338 
 
  nand_spl/board/samsung/smdk6400/Makefile   |  103 +
  nand_spl/board/samsung/smdk6400/config.mk  |   40 
  nand_spl/board/samsung/smdk6400/u-boot.lds |   58 +
  11 files changed, 1188 insertions(+), 0 deletions(-)
  create mode 100644 board/samsung/smdk6400/Makefile
  create mode 100644 board/samsung/smdk6400/config.mk
  create mode 100644 board/samsung/smdk6400/lowlevel_init.S
  create mode 100644 board/samsung/smdk6400/smdk6400.c
  create mode 100644 board/samsung/smdk6400/u-boot-nand.lds
  create mode 100644 include/configs/smdk6400.h
  create mode 100644 nand_spl/board/samsung/smdk6400/Makefile
  create mode 100644 nand_spl/board/samsung/smdk6400/config.mk
  create mode 100644 nand_spl/board/samsung/smdk6400/u-boot.lds

 diff --git a/MAKEALL b/MAKEALL
 index ee83cca..a3ed47d 100755
 --- a/MAKEALL
 +++ b/MAKEALL
 @@ -515,6 +515,7 @@ LIST_ARM11=\
imx31_litekit   \
imx31_phycore   \
mx31ads \
 +   smdk6400\
  

  #
 diff --git a/Makefile b/Makefile
 index b104617..0c5b8a6 100644
 --- a/Makefile
 +++ b/Makefile
 @@ -2677,6 +2677,23 @@ mx31ads_config   : unconfig
  omap2420h4_config  : unconfig
@$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx

 +#
 +## ARM1176 Systems
 +#
 +smdk6400_noUSB_config  \
 +smdk6400_config:   unconfig
 +   @mkdir -p $(obj)include $(obj)board/samsung/smdk6400
 +   @mkdir -p $(obj)nand_spl/board/samsung/smdk6400
 +   @echo #define CONFIG_NAND_U_BOOT  $(obj)include/config.h
 +   @if [ -z $(findstring smdk6400_noUSB_config,$@) ]; then 
   \
 +   echo RAM_TEXT = 0x57e0  
 $(obj)board/samsung/smdk6400/config.tmp;\
 +   $(MKCONFIG) $(@:_config=) arm arm1176 smdk6400 samsung 
 s3c64xx; \
 +   else  
   \
 +   echo RAM_TEXT = 0xc7e0  
 $(obj)board/samsung/smdk6400/config.tmp;\
 +   $(MKCONFIG) $(@:_noUSB_config=) arm arm1176 smdk6400 samsung 
 s3c64xx;   \
 +   fi
 +   @echo CONFIG_NAND_U_BOOT = y  $(obj)include/config.mk
 +
  #
  # i386
  #
 diff --git a/board/samsung/smdk6400/Makefile b/board/samsung/smdk6400/Makefile
 new file mode 100644
 index 000..1200e45
 --- /dev/null
 +++ b/board/samsung/smdk6400/Makefile
 @@ -0,0 +1,51 @@
 +#
 +# (C) Copyright 2000, 2001, 2002
 +# Wolfgang Denk, DENX Software Engineering, [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= lib$(BOARD).a
 +
 +OBJS   := smdk6400.o
 +#OBJS  := smdk6400.o flash.o
 +SOBJS  := lowlevel_init.o
 +
 +$(LIB):$(OBJS) $(SOBJS)
 +   $(AR) crv $@ $(SOBJS) $(OBJS)
 +
 +clean:
 +   rm -f $(SOBJS) $(OBJS)
 +
 +distclean: clean
 +   rm -f $(LIB) core *.bak .depend
 +
 

[U-Boot-Users] [PATCH] apollon: fix build out of tree

2008-07-31 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD [EMAIL PROTECTED]
---
 Makefile   |4 +-
 onenand_ipl/board/apollon/Makefile |   42 ---
 2 files changed, 31 insertions(+), 15 deletions(-)

diff --git a/Makefile b/Makefile
index 369bbd7..f33aad5 100644
--- a/Makefile
+++ b/Makefile
@@ -346,10 +346,9 @@ $(U_BOOT_NAND):$(NAND_SPL) $(obj)u-boot.bin 
$(obj)include/autoconf.mk
cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin  
$(obj)u-boot-nand.bin
 
 $(ONENAND_IPL):$(VERSION_FILE) $(obj)include/autoconf.mk
-   $(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all
+   $(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
 
 $(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin 
$(obj)include/autoconf.mk
-   $(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all
cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin  
$(obj)u-boot-onenand.bin
cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin  
$(obj)u-boot-flexonenand.bin
 
@@ -2664,6 +2663,7 @@ zylonite_config :
 
 apollon_config : unconfig
@mkdir -p $(obj)include
+   @mkdir -p $(obj)onenand_ipl/board/apollon
@echo #define CONFIG_ONENAND_U_BOOT  $(obj)include/config.h
@$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
@echo CONFIG_ONENAND_U_BOOT = y  $(obj)include/config.mk
diff --git a/onenand_ipl/board/apollon/Makefile 
b/onenand_ipl/board/apollon/Makefile
index f10ed02..1f996a4 100644
--- a/onenand_ipl/board/apollon/Makefile
+++ b/onenand_ipl/board/apollon/Makefile
@@ -1,6 +1,5 @@
 
 include $(TOPDIR)/config.mk
-include $(TOPDIR)/include/config.mk
 include $(TOPDIR)/onenand_ipl/board/$(BOARDDIR)/config.mk
 
 LDSCRIPT= $(TOPDIR)/onenand_ipl/board/$(BOARDDIR)/u-boot.onenand.lds
@@ -9,8 +8,11 @@ AFLAGS += -DCONFIG_ONENAND_IPL
 CFLAGS += -DCONFIG_ONENAND_IPL
 OBJCLFAGS += --gap-fill=0x00
 
-SOBJS  = start.o low_levelinit.o
-COBJS  = apollon.o onenand_read.o onenand_boot.o
+SOBJS  := low_levelinit.o
+SOBJS  += start.o
+COBJS  := apollon.o
+COBJS  += onenand_read.o
+COBJS  += onenand_boot.o
 
 SRCS   := $(addprefix $(obj),$(SOBJS:.o=.S) $(COBJS:.o=.c))
 OBJS   := $(addprefix $(obj),$(SOBJS) $(COBJS))
@@ -34,28 +36,39 @@ $(onenandobj)onenand-ipl.bin:   $(onenandobj)onenand-ipl
 
 $(onenandobj)onenand-ipl:  $(OBJS)
cd $(LNDIR)  $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
-   -Map $(onenandobj)onenand-ipl.map \
-   -o $(onenandobj)onenand-ipl
+   -Map [EMAIL PROTECTED] -o $@
 
 # create symbolic links from common files
 
 # from cpu directory
 $(obj)start.S:
-   rm -f $(obj)start.S
-   ln -s $(SRCTREE)/cpu/$(CPU)/start.S $(obj)start.S
+   @rm -f $@
+   ln -s $(SRCTREE)/cpu/$(CPU)/start.S $@
 
 # from onenand_ipl directory
 $(obj)onenand_ipl.h:
-   rm -f $(obj)onenand_ipl.h
-   ln -s $(SRCTREE)/onenand_ipl/onenand_ipl.h $(obj)onenand_ipl.h
+   @rm -f $@
+   ln -s $(SRCTREE)/onenand_ipl/onenand_ipl.h $@
 
 $(obj)onenand_boot.c:  $(obj)onenand_ipl.h
-   rm -f $(obj)onenand_boot.c
-   ln -s $(SRCTREE)/onenand_ipl/onenand_boot.c $(obj)onenand_boot.c
+   @rm -f $@
+   ln -s $(SRCTREE)/onenand_ipl/onenand_boot.c $@
 
 $(obj)onenand_read.c:  $(obj)onenand_ipl.h
-   rm -f $(obj)onenand_read.c
-   ln -s $(SRCTREE)/onenand_ipl/onenand_read.c $(obj)onenand_read.c
+   @rm -f $@
+   ln -s $(SRCTREE)/onenand_ipl/onenand_read.c $@
+
+ifneq ($(OBJTREE), $(SRCTREE))
+$(obj)apollon.c:
+   @rm -f $@
+   ln -s $(SRCTREE)/onenand_ipl/board/$(BOARDDIR)/apollon.c $@
+
+$(obj)low_levelinit.S:
+   @rm -f $@
+   ln -s $(SRCTREE)/onenand_ipl/board/$(BOARDDIR)/low_levelinit.S $@
+endif
+
+#
 
 $(obj)%.o: $(obj)%.S
$(CC) $(AFLAGS) -c -o $@ $
@@ -63,6 +76,9 @@ $(obj)%.o:$(obj)%.S
 $(obj)%.o: $(obj)$.c
$(CC) $(CFLAGS) -c -o $@ $
 
+# defines $(obj).depend target
 include $(SRCTREE)/rules.mk
 
 sinclude $(obj).depend
+
+#
-- 
1.5.6


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Uncompressed images loaded to their start address shall set load_end too

2008-07-31 Thread Bartlomiej Sieka
Guennadi Liakhovetski wrote:
 Signed-off-by: Guennadi Liakhovetski [EMAIL PROTECTED]
 ---
  common/cmd_bootm.c |5 ++---
  1 files changed, 2 insertions(+), 3 deletions(-)
 
 diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
 index 4040a69..7ad04b9 100644
 --- a/common/cmd_bootm.c
 +++ b/common/cmd_bootm.c
 @@ -251,10 +251,9 @@ int do_bootm (cmd_tbl_t *cmdtp, int flag, int argc, char 
 *argv[])
  
   memmove_wd ((void *)load_start,
  (void *)os_data, os_len, CHUNKSZ);
 -
 - load_end = load_start + os_len;
 - puts(OK\n);
   }
 + load_end = load_start + os_len;
 + puts(OK\n);
   break;
   case IH_COMP_GZIP:
   printf (   Uncompressing %s ... , type_name);
 

Acked-by: Bartlomiej Sieka [EMAIL PROTECTED]

Regards,
Bartlomiej

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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 7/7] ARM: Add support for S3C6400 based SMDK6400 board

2008-07-31 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote:
 This board can only boot U-Boot from NAND-flash. This patch adds a nand_spl
 driver for it too. SMDK6400 can also boot from the NOR flash, but due to
 hardware limitations it can only address 64KiB on it, which is not enough for
 U-Boot. Ported from u-boot-1.1.6 version by Samsung.

Coding style errors: spaces instead of TAB for indentation.

 diff --git a/board/samsung/smdk6400/Makefile b/board/samsung/smdk6400/Makefile
 new file mode 100644
 index 000..1200e45
 --- /dev/null
 +++ b/board/samsung/smdk6400/Makefile
 @@ -0,0 +1,51 @@
 +#
 +# (C) Copyright 2000, 2001, 2002
 +# Wolfgang Denk, DENX Software Engineering, [EMAIL PROTECTED]

Who contributed more to this Makefile - you or me?

This comment applies to the (C) notices in ALL files you submitted.

 +include $(TOPDIR)/config.mk
 +
 +LIB  = lib$(BOARD).a
 +
 +OBJS := smdk6400.o
 +#OBJS:= smdk6400.o flash.o
 +SOBJS:= lowlevel_init.o
 +
 +$(LIB):  $(OBJS) $(SOBJS)
 + $(AR) crv $@ $(SOBJS) $(OBJS)
 +
 +clean:
 + rm -f $(SOBJS) $(OBJS)
 +
 +distclean:   clean
 + rm -f $(LIB) core *.bak .depend

All this is broken, as it does not support out-of-tree building.

 diff --git a/board/samsung/smdk6400/lowlevel_init.S 
 b/board/samsung/smdk6400/lowlevel_init.S
 new file mode 100644
 index 000..9371415
 --- /dev/null
 +++ b/board/samsung/smdk6400/lowlevel_init.S
...
 +/* This looks like wakeup support. Don't know if it's going to be used, 
 untested. */

Line length.

 +#if 1

Please remove the #if 1 here and everywhere else.

 +ldr r0, =(ELFIN_CLOCK_POWER_BASE + RST_STAT_OFFSET)
 +ldr r1, [r0]
 +bic r1, r1, #0xfff7
 +cmp r1, #0x8
 +beq wakeup_reset
 +#endif
 +
 +1:
 + mov lr, r12
 + mov pc, lr
 +
 +#if 1
 +wakeup_reset:
 +
 + /*Clear wakeup status register*/
 + ldr r0, =(ELFIN_CLOCK_POWER_BASE+WAKEUP_STAT_OFFSET)
 + ldr r1, [r0]
 + str r1, [r0]
 +
 +/*LED test*/
 +ldr r0, =ELFIN_GPIO_BASE
 +ldr r1, =0x3000
 +str r1, [r0, #GPNDAT_OFFSET]
 +
 + /*Load return address and jump to kernel*/
 + ldr r0, =(ELFIN_CLOCK_POWER_BASE + INF_REG0_OFFSET)
 + ldr r1, [r0]/* r1 = physical address of s3c6400_cpu_resume 
 function*/

Line length.

Please also check all the other lines and files.


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
Real programmers can write assembly code in any language.   :-)
  - Larry Wall in  [EMAIL PROTECTED]

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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 3/7] ARM: Add arm1176 core with s3c6400 SoC

2008-07-31 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote:
 This is a port of s3c6400 sources by Samsung from u-boot-1.1.6.
 
 Signed-off-by: Guennadi Liakhovetski [EMAIL PROTECTED]

Coding style errors: indentation by space instead of TAB;

...
 +/* * reset the cpu by setting up the watchdog timer and let him time out */
 +void reset_cpu (ulong ignored)
 +{
 + printf(reset... \n\n\n);
 + SW_RST_REG = 0x6400;
 + /* loop forever and wait for reset to happen */
 + while (1)
 + {
 + if (serial_tstc())
 + {
 + serial_getc();
 + break;
 + }
 + }

Incorrect brace style.

...
 diff --git a/cpu/arm1176/s3c64xx/Makefile b/cpu/arm1176/s3c64xx/Makefile
 new file mode 100644
 index 000..0a1201d
 --- /dev/null
 +++ b/cpu/arm1176/s3c64xx/Makefile
 @@ -0,0 +1,46 @@
...
 +include $(TOPDIR)/config.mk
 +
 +LIB  = $(obj)lib$(SOC).a
 +
 +OBJS = interrupts.o
 +#OBJS= nand_cp.o serial.o usb_ohci.o interrupts.o nand.o
 +COBJS-$(CONFIG_S3C6400)  += cpu_init.o speed.o
 +
 +OBJS += $(COBJS-y)
 +
 +all: $(obj).depend $(START) $(LIB)
 +
 +$(LIB):  $(OBJS)
 + $(AR) $(ARFLAGS) $@ $(OBJS)
 +
 +#
 +
 +# defines $(obj).depend target
 +include $(SRCTREE)/rules.mk
 +
 +sinclude .depend

Broken for out-of-tree building. This applies to all your  Makefiles,
I think.



Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
Everything should be made as simple as possible, but not simpler.
- Albert Einstein

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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 4/7] USB: Add support for OHCI controller on s3c6400

2008-07-31 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote:
 Notice: USB on s3c6400 currently works _only_ with switched off MMU. One could
 try to enable the MMU, but map addresses 1-to-1, and disable data cache, then
 it should work too and we could still profit from instruction cache.
 
 Signed-off-by: Guennadi Liakhovetski [EMAIL PROTECTED]

...
 diff --git a/drivers/usb/usb_ohci.c b/drivers/usb/usb_ohci.c
 index fd60edb..94549a8 100644
 --- a/drivers/usb/usb_ohci.c
 +++ b/drivers/usb/usb_ohci.c
 @@ -67,6 +67,7 @@
  #endif
  
  #if defined(CONFIG_ARM920T) || \
 +defined(CONFIG_S3C6400) || \
  defined(CONFIG_S3C2400) || \
  defined(CONFIG_S3C2410) || \
  defined(CONFIG_440EP) || \

Please keep the list sorted.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
Wish not to seem, but to be, the best.  - Aeschylus

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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 5/7] serial: add s3c64xx serial driver

2008-07-31 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote:
 Ported from u-boot-1.1.6 driver by Samsung.
 
 Signed-off-by: Guennadi Liakhovetski [EMAIL PROTECTED]

 --- a/drivers/serial/Makefile
 +++ b/drivers/serial/Makefile
 @@ -36,6 +36,7 @@ COBJS-y += serial_pl010.o
  COBJS-y += serial_pl011.o
  COBJS-y += serial_xuartlite.o
  COBJS-y += serial_sh.o
 +COBJS-$(CONFIG_S3C64XX) += s3c64xx.o
  COBJS-y += usbtty.o

Please keep the list sorted.


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
To be a winner, all you need to give is all you have.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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 6/7] NAND: add NAND driver for s3c64xx

2008-07-31 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote:
 Ported from u-boot-1.1.6 driver by Samsung.
 
 Signed-off-by: Guennadi Liakhovetski [EMAIL PROTECTED]
...

 --- /dev/null
 +++ b/drivers/mtd/nand/s3c64xx.c
 @@ -0,0 +1,315 @@
 +/*
 + * (C) Copyright 2006 DENX Software Engineering

Please add your name here.

 +/*
 + * Function to print out oob buffer for debugging
 + * Written by jsgood

Then jsgood should be mentioned in the (C) lines?

 + case 1: /* 1 bit error (Correctable)
 +(nfestat0  7)  0x7ff  :error byte number
 +(nfestat0  4)  0x7:error bit number */
 + printf(S3C NAND: 1 bit error detected at byte %ld. Correcting 
 from 
 +0x%02x , (nfestat0  7)  0x7ff, dat[(nfestat0  7) 
  0x7ff]);
 + dat[(nfestat0  7)  0x7ff] ^= (1  ((nfestat0  4)  0x7));
 + printf(to 0x%02x...OK\n, dat[(nfestat0  7)  0x7ff]);

I guess there should be a way to write this code so  it  is  actually
readable?  This  is  U-Boot,  not  the  IOCCC  (yes,  there *is* some
difference, still).

 +int board_nand_init(struct nand_chip *nand)
 +{
 + NFCONT_REG  = (NFCONT_REG  ~NFCONT_WP) | NFCONT_ENABLE | 
 0x6;
 +
 + nand-IO_ADDR_R = (void __iomem *)NFDATA;
 + nand-IO_ADDR_W = (void __iomem *)NFDATA;
 + nand-hwcontrol = s3c_nand_hwcontrol;
 + nand-dev_ready = s3c_nand_device_ready;
 + nand-select_chip   = s3c_nand_select_chip;
 + nand-options   = 0;
 +#ifdef CONFIG_NAND_SPL
 + nand-read_byte = nand_read_byte;
 + nand-write_byte= nand_write_byte;
 + nand-read_buf  = nand_read_buf;
 +#endif
 +
 + do {
 + struct mtd_info m;
 + int cellinfo;
 +
 + m.priv = nand;
 +
 + s3c_nand_select_chip(m, 0);
 + s3c_nand_hwcontrol(m, NAND_CTL_SETCLE);
 + writeb(NAND_CMD_READID, nand-IO_ADDR_W);
 + s3c_nand_hwcontrol(m, NAND_CTL_CLRCLE);
 + s3c_nand_device_ready(m);
 + cellinfo = readb(nand-IO_ADDR_R);
 + cellinfo += readb(nand-IO_ADDR_R);
 + cellinfo += readb(nand-IO_ADDR_R);
 + s3c_nand_select_chip(m, -1);
 + nand-eccmode = cellinfo;
 + } while (0);

Please get rid of the do...while here - or does it serve any purpose?

 + /* A shot in the dark, I don't know how to use this smart ECC-mode
 +  * selection with the current driver */

Incorrect multiline comment style.

Please check other files for that, too.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
Once upon a time, PC meant personal computer.  Now  it  seems  to
only  mean  Prisoner  of Bill. Alas! All my PCs run Unix, and those
include Intel, Sparc, and other processors.
  -- Tom Bring back the non-PC meaning of `PC' Christiansen

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH] Fix Atmel lcd controller endian for AVR32 processors

2008-07-31 Thread Mark Jackson
The Atmel lcd controller is used on Atmel's AT91 (little endian) and AVR32 (big 
endian) platforms.

As such, the controller can handle both big and little endian memory.

This patch fixes the driver for the AVR32 platform.

Signed-off-by: Mark Jackson [EMAIL PROTECTED]
---

 drivers/video/atmel_lcdfb.c |4 
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c
index 27df449..b332a82 100644
--- a/drivers/video/atmel_lcdfb.c
+++ b/drivers/video/atmel_lcdfb.c
@@ -100,7 +100,11 @@ void lcd_ctrl_init(void *lcdbase)
value  ATMEL_LCDC_CLKVAL_OFFSET);
 
/* Initialize control register 2 */
+#ifdef CONFIG_AVR32
+   value = ATMEL_LCDC_MEMOR_BIG | ATMEL_LCDC_CLKMOD_ALWAYSACTIVE;
+#else
value = ATMEL_LCDC_MEMOR_LITTLE | ATMEL_LCDC_CLKMOD_ALWAYSACTIVE;
+#endif
if (panel_info.vl_tft)
value |= ATMEL_LCDC_DISTYPE_TFT;
 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH] Add gzipped logo support

2008-07-31 Thread Mark Jackson
The README file states that CONFIG_VIDEO_BMP_GZIP behaves as follows:-

  If this option is set, additionally to standard BMP
  images, gzipped BMP images can be displayed via the
  splashscreen support or the bmp command.

However, the splashscreen function *only* supports standard BMP images.

This patch adds the documented gzip support.

Signed-off-by: Mark Jackson [EMAIL PROTECTED]
---

 common/lcd.c |   13 +
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/common/lcd.c b/common/lcd.c
index eec1f53..3bbc7ba 100644
--- a/common/lcd.c
+++ b/common/lcd.c
@@ -740,6 +740,9 @@ int lcd_display_bitmap(ulong bmp_image, int x, int y)
 }
 #endif
 
+#ifdef CONFIG_VIDEO_BMP_GZIP
+extern bmp_image_t *gunzip_bmp(unsigned long addr, unsigned long *lenp);
+#endif
 
 static void *lcd_logo (void)
 {
@@ -761,6 +764,16 @@ static void *lcd_logo (void)
addr = simple_strtoul(s, NULL, 16);
do_splash = 0;
 
+#ifdef CONFIG_VIDEO_BMP_GZIP
+   bmp_image_t *bmp = (bmp_image_t *)addr;
+   unsigned long len;
+
+   if (!((bmp-header.signature[0]=='B') 
+ (bmp-header.signature[1]=='M'))) {
+   addr = (ulong)gunzip_bmp(addr, len);
+   }
+#endif
+
if (lcd_display_bitmap (addr, 0, 0) == 0) {
return ((void *)lcd_base);
}

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Problem with some usb stick FAT 32

2008-07-31 Thread Remy Bohmer
Hello Cacre,

See the other thread about the same problem with the subject:
AT91SAM9261-EK USB storage not working...
I am working on this problem still, but I have a temporarily
workaround (Use GCC v3 instead of GCC v4)

Any help debugging this is appreciated!


Kind Regards,

Remy

2008/7/31 Wolfgang Denk [EMAIL PROTECTED]:
 In message [EMAIL PROTECTED] you wrote:

 I'm experiencing a problem with some KINGSTON usb stick (FAT32, 2
 Gbytes) using u-boot 1.1.5.

 U-Boot 1.1.5 is *very* old. A lot of USB related problems  have  been
 fixed  since. Please try a recent version of U-Boot instead (1.3.3 or
 later).

 Content-Type: text/html;
   charsetĂ¿so-8859-1
 Content-Transfer-Encoding: quoted-printable

 And *never* post HTML on this list!

 Best regards,

 Wolfgang Denk

 --
 DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
 HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
 Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
 Anyone who doesn't believe in miracles is not a realist.
   - David Ben Gurion

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 U-Boot-Users mailing list
 U-Boot-Users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/u-boot-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Uncompressed images loaded to their start address shall set load_end too

2008-07-31 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote:
 Signed-off-by: Guennadi Liakhovetski [EMAIL PROTECTED]
 ---
  common/cmd_bootm.c |5 ++---
  1 files changed, 2 insertions(+), 3 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
Writing a book is like washing an elephant: there's no good place  to
begin  or  end,  and  it's  hard to keep track of what you've already
covered.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Fix bitmap display for atmel lcd controller

2008-07-31 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote:
 The current lcd_display_bitmap() function does not work properly for the 
 Atmel LCD controller.
 
 2 fixes need to be done:-
 
 (a) when setting the colour map, use the lcd_setcolreg() function as provided 
 by the Atmel driver
 (b) the actual data is never actually written to the lcd framebuffer !!
 
 Below is a patch to fix these issues.
 
 ---

Please resubmit using a reasoable line length for the commit  message
(some 70+ characters), and add your Signed-off-by: line.


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
I think it's a new feature. Don't tell anyone it was an accident. :-)
  -- Larry Wall on s/foo/bar/eieio in [EMAIL PROTECTED]

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] apollon: fix build out of tree

2008-07-31 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote:
 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD [EMAIL PROTECTED]
 ---
  Makefile   |4 +-
  onenand_ipl/board/apollon/Makefile |   42 ---
  2 files changed, 31 insertions(+), 15 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
It is dangerous to be right on a subject  on  which  the  established
authorities are wrong.-- Voltaire

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Add gzipped logo support

2008-07-31 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote:
 The README file states that CONFIG_VIDEO_BMP_GZIP behaves as follows:-
 
   If this option is set, additionally to standard BMP
   images, gzipped BMP images can be displayed via the
   splashscreen support or the bmp command.
 
 However, the splashscreen function *only* supports standard BMP images.
 
 This patch adds the documented gzip support.
 
 Signed-off-by: Mark Jackson [EMAIL PROTECTED]
 ---
 
  common/lcd.c |   13 +
  1 files changed, 13 insertions(+), 0 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
If God wanted me to touch my toes, he'd have put them on my knees.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] U-Boot v1.3.4-rc2 released

2008-07-31 Thread Wolfgang Denk
Hello everybody,

I have released U-Boot v1.3.4-rc2, and it is available both from the
git repository and the FTP server.

Please help testing.

Please also check if all your patches that you want to have  included
in  v1.3.4  have really been added - I don't have anything pending on
my list, but I might have missed something.

If nothing bad pops up, we might have a new release soon... :-)

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
Athens  built  the  Acropolis.  Corinth  was  a   commercial   city,
interested  in  purely  materialistic things. Today we admire Athens,
visit it, preserve the old temples, yet we hardly ever  set  foot  in
Corinth.  - Dr. Harold Urey, Nobel Laureate in chemistry

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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 v1.3.4-rc2 released

2008-07-31 Thread Michal Simek
Hi Wolfgang,

Microblaze boards are without any warnings.

I sent some patches about Makefiles(driver folder and others)  two weeks ago - 
but they need some testing. 
These patches should go to next merge window.

Regards,
Michal


 Hello everybody,
 
 I have released U-Boot v1.3.4-rc2, and it is available both from the
 git repository and the FTP server.
 
 Please help testing.
 
 Please also check if all your patches that you want to have  included
 in  v1.3.4  have really been added - I don't have anything pending on
 my list, but I might have missed something.
 
 If nothing bad pops up, we might have a new release soon... :-)
 
 Best regards,
 
 Wolfgang Denk
 
 -- 
 DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
 HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
 Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
 Athens  built  the  Acropolis.  Corinth  was  a   commercial   city,
 interested  in  purely  materialistic things. Today we admire Athens,
 visit it, preserve the old temples, yet we hardly ever  set  foot  in
 Corinth.  - Dr. Harold Urey, Nobel Laureate in chemistry
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 U-Boot-Users mailing list
 U-Boot-Users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/u-boot-users
 
 
 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] Porting NAND drivers

2008-07-31 Thread Tiju
Hi All,

I am interested in writing a NAND flash driver for my freescale i.MX27ADS board 
in Redboot.

1. Could anyone suggest me wether it is possible to take the u-boot's NAND 
flash generic driver and modify it and port it for Samsung NAND flash in 
redboot?
2. Or is there an easier way I could start porting the NAND driver to i.MX27 
ADS board in redboot?

Any suggestion is greatly appreciated.
Thanks in advance.

Regards,
TJ



  Connect with friends all over the world. Get Yahoo! India Messenger at 
http://in.messenger.yahoo.com/?wm=n/


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] mvbc_p board: build warnings

2008-07-31 Thread André Schwarz
Wolfgang,

thanks - I'll fix it on monday/tuesday and send a patch after testing 
the -rc2.

regards,
André

Wolfgang Denk schrieb:
 Hi,
 
 I'm trying to clean up the build warnings for the mvbc_p board.
 I've succeded with all but this one:
 
 mvbc_p.c: In function 'mvbc_init_gpio':
 mvbc_p.c:124: warning: dereferencing type-punned pointer will break 
 strict-aliasing rules
 
 This relates to the following code:
 
 115 out_be32(gpio-simple_ddr, SIMPLE_DDR);
 116 out_be32(gpio-simple_dvo, SIMPLE_DVO);
 117 out_be32(gpio-simple_ode, SIMPLE_ODE);
 118 out_be32(gpio-simple_gpioe, SIMPLE_GPIOEN); == volatile u8 
 outo_gpioe;
 119
 120 out_be32((u32*)gpio-sint_ode, SINT_ODE);== 
 volatile u8 sint_ode;
 121 out_be32((u32*)gpio-sint_ddr, SINT_DDR);== 
 volatile u8 sint_ddr;
 122 out_be32((u32*)gpio-sint_dvo, SINT_DVO);== 
 volatile u8 sint_dvo;
 123 out_be32((u32*)gpio-sint_inten, SINT_INTEN);== volatile u8 
 sint_inten;
 124 out_be32((u32*)gpio-sint_itype, SINT_ITYPE);== volatile 
 u16 sint_itype;
 125 out_be32((u32*)gpio-sint_gpioe, SINT_GPIOEN);   == volatile u8 
 outo_gpioe;
 
 
 I don't know why the warning is only issued for the  u16  type  and
 not  also for the u8 ones, but anyway: Is the casting to u32* and
 using out_be32() here really correct?
 
 I would expect to see some out_be8() and one out_be16() here?
 
 Best regards,
 
 Wolfgang Denk
 


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

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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 v1.3.4-rc2 released

2008-07-31 Thread Wolfgang Denk
Dear Michal,

in message [EMAIL PROTECTED] you wrote:
 
 Microblaze boards are without any warnings.

Thanks ofr the confirmation.

 I sent some patches about Makefiles(driver folder and others)  two weeks ago 
 - but they need some testing. 
 These patches should go to next merge window.

That was my understanding, too.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
Nothing ever becomes real till it is experienced -- even a proverb is
no proverb to you till your life has illustrated it. - John Keats

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Porting NAND drivers

2008-07-31 Thread Fabio Estevam
Tiju,

Redboot on MX27ADS already supports NAND. Contact me offline if you need help 
with it.

Regards,

Fabio Estevam


--- On Thu, 7/31/08, Tiju [EMAIL PROTECTED] wrote:

 From: Tiju [EMAIL PROTECTED]
 Subject: [U-Boot-Users] Porting NAND drivers
 To: u-boot-users@lists.sourceforge.net
 Date: Thursday, July 31, 2008, 1:41 PM
 Hi All,
 
 I am interested in writing a NAND flash driver for my
 freescale i.MX27ADS board in Redboot.
 
 1. Could anyone suggest me wether it is possible to take
 the u-boot's NAND flash generic driver and modify it
 and port it for Samsung NAND flash in redboot?
 2. Or is there an easier way I could start porting the NAND
 driver to i.MX27 ADS board in redboot?
 
 Any suggestion is greatly appreciated.
 Thanks in advance.
 
 Regards,
 TJ
 
 
 
   Connect with friends all over the world. Get Yahoo!
 India Messenger at http://in.messenger.yahoo.com/?wm=n/
 
 
 -
 This SF.Net email is sponsored by the Moblin Your Move
 Developer's challenge
 Build the coolest Linux based applications with Moblin SDK
  win great prizes
 Grand prize is a trip for two to an Open Source event
 anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 U-Boot-Users mailing list
 U-Boot-Users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/u-boot-users


  

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] JFFS2 command support on OneNAND (take #2)

2008-07-31 Thread Scott Wood
On Wed, Jul 30, 2008 at 09:20:39AM +0200, Fathi BOUDRA wrote:
 TODO: Use NAND command interface (e.g.: part_validate_*nand()). 

Do you mean merging the NAND and OneNAND versions of the jffs2 code,
through the (mostly already existing) function pointer interface?

I'd really like to see that done before merging, unless there's a
consensus from others that it can't wait.

-Scott

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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 UBI

2008-07-31 Thread Scott Wood
On Thu, Jul 31, 2008 at 12:01:18PM +0100, Nigel Hathaway wrote:
 I have been playing around with a board from Olimex: the SAM9-L9260 (it
 has an Atmel AT91SAM9260 on it). This has a ROMboot with U-Boot in NAND
 flash. The board I am using has an interesting feature: the block which
 U-Boot is configured to use for storing its environment just happens to
 be a bad block, so I can't change and store the U-Boot environment
 parameters on it.

There's a patch in the testing branch of u-boot-nand-flash to allow a
range of blocks to be specified for the environment, with bad blocks
being skipped.  Another patch has been posted to allow the location of
the environment to be specified in the OOB area of the boot block (which
is guaranteed to be good).

-Scott

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] Power.org open-firmware/device trees ePAPR reference

2008-07-31 Thread David Hawkins
Hi,

I just received an email from Power.org referencing this document:

http://www.power.org/resources/downloads/Power_ePAPR_APPROVED_v1.0.pdf

  The ePAPR is loosely related to the IEEE 1275 Open Firmware
   standard—IEEE Standard for Boot (Initialization Configuration)
   Firmware: Core Requirements and Practices.

It looks to have a nice description of device trees.

I see lots of familiar U-Boot developer names in the acknowledgments,
so I imagine U-Boot is probably compliant with this specification
already.

Looks like a useful document to reference somewhere on the Denx
documentation area.

Cheers,
Dave

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Power.org open-firmware/device trees ePAPR reference

2008-07-31 Thread Wolfgang Denk
Dear David,

in message [EMAIL PROTECTED] you wrote:
 
 I just received an email from Power.org referencing this document:
 
 http://www.power.org/resources/downloads/Power_ePAPR_APPROVED_v1.0.pdf

Thanks for distributing this information here, too.

 I see lots of familiar U-Boot developer names in the acknowledgments,
 so I imagine U-Boot is probably compliant with this specification
 already.

Let's say we try to comply ;-)

 Looks like a useful document to reference somewhere on the Denx
 documentation area.

It's already there - see
http://www.denx.de/wiki/view/DULG/MoreInformationFurtherReading#Section_12.2.4.


Thanks again.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
God is a comedian playing to an audience too afraid to laugh.
- Voltaire

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Power.org open-firmware/device trees ePAPR reference

2008-07-31 Thread David Hawkins
Hi Wolfgang,

 It's already there - see
 http://www.denx.de/wiki/view/DULG/MoreInformationFurtherReading#Section_12.2.4.

Indeed it is :)

Thanks,
Dave

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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 6/7] NAND: add NAND driver for s3c64xx

2008-07-31 Thread Jean-Christophe PLAGNIOL-VILLARD
 +/*
 + * (C) Copyright 2006 DENX Software Engineering
 + *
 + * 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 common.h
 +
 +#include nand.h
 +#include s3c6400.h
 +
 +#include asm/io.h
 +
 +#ifdef CONFIG_NAND_SPL
 +#define printf(arg...) do {} while (0)
 +#endif
 +
 +/* Nand flash definition values by jsgood */
 +#define S3C_NAND_CFG_HWECC
Please move to config file
 +#undef   S3C_NAND_DEBUG
please remove
 +
 +#ifdef S3C_NAND_DEBUG
 +/*
 + * Function to print out oob buffer for debugging
 + * Written by jsgood
 + */
 +static void print_oob(const char *header, struct mtd_info *mtd)
 +{
 + int i;
 + struct nand_chip *chip = mtd-priv;
 +
 + printf(%s:\t, header);
 +
 + for(i = 0; i  64; i++)
 + printf(%02x , chip-oob_poi[i]);
 +
 + printf(\n);
 +}
 +#endif /* S3C_NAND_DEBUG */
 +
 +#ifdef CONFIG_NAND_SPL
 +static u_char nand_read_byte(struct mtd_info *mtd)
 +{
 + struct nand_chip *this = mtd-priv;
add an empty line
 + return readb(this-IO_ADDR_R);
 +}
 +
 +static void nand_write_byte(struct mtd_info *mtd, u_char byte)
 +{
 + struct nand_chip *this = mtd-priv;
add an empty line
 + writeb(byte, this-IO_ADDR_W);
 +}
 +
 +static void nand_read_buf(struct mtd_info *mtd, u_char *buf, int len)
 +{
 + int i;
 + struct nand_chip *this = mtd-priv;
 +
 + for (i = 0; i  len; i++)
 + buf[i] = readb(this-IO_ADDR_R);
 +}
 +#endif
 +
 +/*
 + * This function determines whether read data is good or not.
 + * If SLC, must write ecc codes to controller before reading status bit.
 + * If MLC, status bit is already set, so only reading is needed.
 + * If status bit is good, return 0.
 + * If correctable errors occured, do that.
 + * If uncorrectable errors occured, return -1.
 + * Written by jsgood
 + */
 +static int s3c_nand_correct_data(struct mtd_info *mtd, u_char *dat,
 +  u_char *read_ecc, u_char *calc_ecc)
 +{
 + int ret = -1;
 + u_long nfestat0, nfmeccdata0, nfmeccdata1;
 + u_char err_type;
 +
 + /* SLC: Write ecc to compare */
 + nfmeccdata0 = (calc_ecc[1]  16) | calc_ecc[0];
 + nfmeccdata1 = (calc_ecc[3]  16) | calc_ecc[2];
 + writel(nfmeccdata0, NFMECCDATA0);
 + writel(nfmeccdata1, NFMECCDATA1);
 +
 + /* Read ecc status */
 + nfestat0 = readl(NFESTAT0);
 + err_type = nfestat0  0x3;
 +
 + switch (err_type) {
 + case 0: /* No error */
 + ret = 0;
 + break;
 +
 + case 1: /* 1 bit error (Correctable)
 +(nfestat0  7)  0x7ff  :error byte number
 +(nfestat0  4)  0x7:error bit number */
 + printf(S3C NAND: 1 bit error detected at byte %ld. Correcting 
 from 
 +0x%02x , (nfestat0  7)  0x7ff, dat[(nfestat0  7) 
  0x7ff]);
 + dat[(nfestat0  7)  0x7ff] ^= (1  ((nfestat0  4)  0x7));
 + printf(to 0x%02x...OK\n, dat[(nfestat0  7)  0x7ff]);
could use inline or macro to be more readable
 + ret = 1;
 + break;
 +
 + case 2: /* Multiple error */
 + case 3: /* ECC area error */
 + printf(S3C NAND: ECC uncorrectable error detected. Not 
 correctable.\n);
 + ret = -1;
 + break;
 + }
 +
 + return ret;
 +}
 +#endif /* S3C_NAND_CFG_HWECC */
 +
 +/*
 + * Board-specific NAND initialization. The following members of the
 + * argument are board-specific (per include/linux/mtd/nand.h):
 + * - IO_ADDR_R?: address to read the 8 I/O lines of the flash device
 + * - IO_ADDR_W?: address to write the 8 I/O lines of the flash device
 + * - hwcontrol: hardwarespecific function for accesing control-lines
 + * - dev_ready: hardwarespecific function for  accesing device ready/busy 
 line
 + * - enable_hwecc?: function to enable (reset)  hardware ecc generator. Must
 + *   only be provided if a hardware ECC is available
 + * - eccmode: mode of ecc, see defines
 + * - chip_delay: chip dependent delay for transfering data from array to
 + *   read regs (tR)
 + * - options: various chip options. They can partly be set to inform
 + *   nand_scan about special functionality. See the defines for further
 + *   explanation
 + * Members 

Re: [U-Boot-Users] [PATCH 5/7] serial: add s3c64xx serial driver

2008-07-31 Thread Jean-Christophe PLAGNIOL-VILLARD
On 12:54 Thu 31 Jul , Guennadi Liakhovetski wrote:
 Ported from u-boot-1.1.6 driver by Samsung.
 
 Signed-off-by: Guennadi Liakhovetski [EMAIL PROTECTED]
 ---
  drivers/serial/Makefile  |1 +
  drivers/serial/s3c64xx.c |  189 
 ++
  2 files changed, 190 insertions(+), 0 deletions(-)
  create mode 100644 drivers/serial/s3c64xx.c
 
 diff --git a/drivers/serial/Makefile b/drivers/serial/Makefile
 index c9e797e..70fe638 100644
 --- a/drivers/serial/Makefile
 +++ b/drivers/serial/Makefile
 @@ -36,6 +36,7 @@ COBJS-y += serial_pl010.o
  COBJS-y += serial_pl011.o
  COBJS-y += serial_xuartlite.o
  COBJS-y += serial_sh.o
 +COBJS-$(CONFIG_S3C64XX) += s3c64xx.o
  COBJS-y += usbtty.o
  
  COBJS:= $(COBJS-y)
 diff --git a/drivers/serial/s3c64xx.c b/drivers/serial/s3c64xx.c
 new file mode 100644
 index 000..d7e9d01
 --- /dev/null
 +++ b/drivers/serial/s3c64xx.c
 @@ -0,0 +1,189 @@
 +/*
 + * (C) Copyright 2002
 + * Gary Jennejohn, DENX Software Engineering, [EMAIL PROTECTED]
 + *
 + * 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 common.h
 +
 +#include s3c6400.h
 +
 +#ifdef CONFIG_SERIAL1
 +#define UART_NR  S3C64XX_UART0
 +
 +#elif defined(CONFIG_SERIAL2)
 +#define UART_NR  S3C64XX_UART1
 +
 +#elif defined(CONFIG_SERIAL3)
 +#define UART_NR  S3C64XX_UART2
 +
 +#else
 +#error Bad: you didn't configure serial ...
 +#endif
 +
 +#define barrier() asm volatile( ::: memory)
 +
 +/* See table in 31.6.11 */
 +static const int udivslot[] = {
 + 0,
 + 0x0080,
 + 0x0808,
 + 0x0888,
 + 0x,
 + 0x4924,
 + 0x4a52,
 + 0x54aa,
 + 0x,
 + 0xd555,
 + 0xd5d5,
 + 0xddd5,
 + 0x,
 + 0xdfdd,
 + 0xdfdf,
 + 0xffdf,
 +};
 +
 +void serial_setbrg(void)
 +{
 + DECLARE_GLOBAL_DATA_PTR;
 + S3C64XX_UART *const uart = S3C64XX_GetBase_UART(UART_NR);
 + u32 reg, pclk_ratio = get_PCLK() / gd-baudrate;
 + int i;
 +
 + /* PCLK / (16 * baudrate) - 1 */
 + reg = pclk_ratio / 16 - 1;
 + i = pclk_ratio - (reg + 1) * 16;
 +
 + uart-UBRDIV = reg;
 + uart-UDIVSLOT = udivslot[i];
 +
 + for (i = 0; i  100; i++)
 + barrier();
 +}
 +
 +/*
 + * Initialise the serial port with the given baudrate. The settings
 + * are always 8 data bits, no parity, 1 stop bit, no start bits.
 + *
 + */
 +int serial_init(void)
 +{
 + S3C64XX_UART *const uart = S3C64XX_GetBase_UART(UART_NR);
please do not use UPPERCASE var name and function  co
 +
 + /* reset and enable FIFOs, set triggers to the maximum */
 + uart-UFCON = 0xff;
 + uart-UMCON = 0;
 + /* 8N1 */
 + uart-ULCON = 3;
 + /* No interrupts, no DMA, pure polling */
 + uart-UCON = 5;
 +
 + serial_setbrg();
 +
 + return 0;
 +}
 +
 +/*
 + * Read a single byte from the serial port. Returns 1 on success, 0
 + * otherwise. When the function is succesfull, the character read is
 + * written into its argument c.
 + */
 +int serial_getc(void)
 +{
 + S3C64XX_UART *const uart = S3C64XX_GetBase_UART(UART_NR);
 +
 + /* wait for character to arrive */
 + while (!(uart-UTRSTAT  0x1));
 +
 + return uart-URXH  0xff;
 +}
 +
 +#ifdef CONFIG_HWFLOW
 +static int hwflow = 0;   /* turned off by default */
 +int hwflow_onoff(int on)
 +{
 + switch (on) {
 + case 0:
 + default:
 + break;  /* return current */
IMHO it's weird to have the default at top
 + case 1:
 + hwflow = 1; /* turn on */
 + break;
 + case -1:
 + hwflow = 0; /* turn off */
 + break;
 + }
 + return hwflow;
 +}
 +#endif
 +

Best Regards,
J.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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 4/7] USB: Add support for OHCI controller on s3c6400

2008-07-31 Thread Jean-Christophe PLAGNIOL-VILLARD
On 12:54 Thu 31 Jul , Guennadi Liakhovetski wrote:
 Notice: USB on s3c6400 currently works _only_ with switched off MMU. One could
 try to enable the MMU, but map addresses 1-to-1, and disable data cache, then
 it should work too and we could still profit from instruction cache.
 
 Signed-off-by: Guennadi Liakhovetski [EMAIL PROTECTED]
 ---
  cpu/arm1176/s3c64xx/Makefile |1 +
  cpu/arm1176/s3c64xx/usb.c|   44 
 ++
  drivers/usb/usb_ohci.c   |1 +
  3 files changed, 46 insertions(+), 0 deletions(-)
  create mode 100644 cpu/arm1176/s3c64xx/usb.c
 
 diff --git a/cpu/arm1176/s3c64xx/Makefile b/cpu/arm1176/s3c64xx/Makefile
 index 92373d8..0a1201d 100644
 --- a/cpu/arm1176/s3c64xx/Makefile
 +++ b/cpu/arm1176/s3c64xx/Makefile
 @@ -28,6 +28,7 @@ LIB = $(obj)lib$(SOC).a
  OBJS = interrupts.o
  #OBJS= nand_cp.o serial.o usb_ohci.o interrupts.o nand.o
If no need please remove put it as conditional
  COBJS-$(CONFIG_S3C6400)  += cpu_init.o speed.o
 +COBJS-$(CONFIG_USB_OHCI_NEW) += usb.o
  
  OBJS += $(COBJS-y)
  
 diff --git a/cpu/arm1176/s3c64xx/usb.c b/cpu/arm1176/s3c64xx/usb.c
 new file mode 100644
 index 000..f9dbc5e
 --- /dev/null
 +++ b/cpu/arm1176/s3c64xx/usb.c
 @@ -0,0 +1,44 @@
 +/*
 + * URB OHCI HCD (Host Controller Driver) initialization for USB on the 
 S3C64XX.
 + *
 + * Copyright (C) 2008, Guennadi Liakhovetski, DENX Software Engineering 
 [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 common.h
 +#include s3c6400.h
 +
 +int usb_cpu_init(void)
 +{
 + OTHERS_REG |= 0x1;
 + return 0;
 +}
 +
 +int usb_cpu_stop(void)
 +{
 + OTHERS_REG = ~0x1;
 + return 0;
 +}
 +
 +void usb_cpu_init_fail(void)
 +{
 + OTHERS_REG = ~0x1;
 +}
 diff --git a/drivers/usb/usb_ohci.c b/drivers/usb/usb_ohci.c
 index fd60edb..94549a8 100644
 --- a/drivers/usb/usb_ohci.c
 +++ b/drivers/usb/usb_ohci.c
 @@ -67,6 +67,7 @@
  #endif
  
  #if defined(CONFIG_ARM920T) || \
 +defined(CONFIG_S3C6400) || \
  defined(CONFIG_S3C2400) || \
  defined(CONFIG_S3C2410) || \
  defined(CONFIG_440EP) || \
Could we find a better way than add and add more defined?

Best Regards,
J.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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 3/7] ARM: Add arm1176 core with s3c6400 SoC

2008-07-31 Thread Jean-Christophe PLAGNIOL-VILLARD
 +# 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
 +#
 +PLATFORM_RELFLAGS += -fno-strict-aliasing  -fno-common -ffixed-r8 \
 + -msoft-float
 +
 +# Make ARMv5 to allow more compilers to work, even though its v6.
 +PLATFORM_CPPFLAGS += -march=armv5t
could we do it dynamicly?
 +# =
 +#
 +# Supply options according to compiler version
 +#
 +# =
 +PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu)
 +PLATFORM_CPPFLAGS +=$(call cc-option,-mno-thumb-interwork,)
 +PLATFORM_RELFLAGS +=$(call cc-option,-mshort-load-bytes,$(call 
 cc-option,-malignment-traps,))
 diff --git a/cpu/arm1176/cpu.c b/cpu/arm1176/cpu.c
 new file mode 100644
 index 000..54228d1
 --- /dev/null
 +++ b/cpu/arm1176/cpu.c
 @@ -0,0 +1,186 @@
 +/*
 + * (C) Copyright 2004 Texas Insturments
 + *
 + * (C) Copyright 2002
 + * Sysgo Real-Time Solutions, GmbH www.elinos.com
 + * Marius Groeger [EMAIL PROTECTED]
 + *
 + * (C) Copyright 2002
 + * Gary Jennejohn, DENX Software Engineering, [EMAIL PROTECTED]
 + *
 + * See file CREDITS for list of people who contributed to this
 + * project.
 + *

 +{
 + volatile int i;
 +
 + /* Many OMAP regs need at least 2 nops  */
so please use nop
 + for (i = 0; i  100; i++);
 +}
 +
 +/* See also ARM Ref. Man. */
 +#define C1_MMU   (10)  /* mmu off/on */
 +#define C1_ALIGN (11)  /* alignment faults off/on */
 +#define C1_DC(12)  /* dcache off/on */
 +#define C1_WB(13)  /* merging write buffer on/off 
 */
 +#define C1_BIG_ENDIAN(17)  /* big endian off/on */
 +#define C1_SYS_PROT  (18)  /* system protection */
 +#define C1_ROM_PROT  (19)  /* ROM protection */
 +#define C1_IC(112) /* icache off/on */
 +#define C1_HIGH_VECTORS  (113) /* location of vectors: low/high 
 addresses */
 +#define RESERVED_1   (0xf  3)  /* must be 111b for R/W */
 +
 +int cpu_init (void)
 +{
 + return 0;
 +}
 +
 +int cleanup_before_linux (void)
 +{
 + /*
 +  * this function is called just before we call linux
 +  * it prepares the processor for linux
 +  *
 +  * we turn off caches etc ...
 +  */
 +
 + unsigned long i;
 +
 + disable_interrupts ();
 +
 + /* turn off I/D-cache */
 + asm (mrc p15, 0, %0, c1, c0, 0:=r (i));
 + i = ~(C1_DC | C1_IC);
 + asm (mcr p15, 0, %0, c1, c0, 0: :r (i));
why don't you use icache_disable() and dcache_disable()?
 +
 + /* flush I/D-cache */
 + i = 0;
 + asm (mcr p15, 0, %0, c7, c7, 0: :r (i));  /* invalidate both caches 
 and flush btb */
 + asm (mcr p15, 0, %0, c7, c10, 4: :r (i)); /* mem barrier to sync 
 things */
please implement icache_flush() and dcache_flush()
 + return 0;
 +}
 +
 +
 +++ b/cpu/arm1176/s3c64xx/Makefile
 +#include common.h
 +#include asm/proc-armv/ptrace.h
 +#include s3c6400.h
 +
 +static ulong timer_load_val;
 +
 +#define PRESCALER167
 +
 +/* macro to read the 16 bit timer */
 +static inline ulong READ_TIMER(void)
 +{
 + S3C64XX_TIMERS *const timers = S3C64XX_GetBase_TIMERS();
please do not use UPPERCASE var type and function  co
 +
 + return timers-TCNTO4;
 +}
 +
 new file mode 100644
 index 000..f28ebe8
 --- /dev/null
 +++ b/cpu/arm1176/s3c64xx/nand_cp.c
 @@ -0,0 +1,132 @@
 +/*
 + * $Id: nand_cp.c,v 1.3 2007/02/26 06:19:52 yongkal Exp $
please remove
 + *
 + * (C) Copyright 2006 Samsung Electronics
 + *
 + * 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
 + * 

Re: [U-Boot-Users] [PATCH] NAND testing: chip-state does not always get set.

2008-07-31 Thread Scott Wood
On Sun, Jun 22, 2008 at 04:30:06PM +0200, Marcel Ziswiler wrote:
 Fixes an issue with chip-state not always being set causing troubles.
 
 Signed-off-by: Marcel Ziswiler [EMAIL PROTECTED]
 ---
  drivers/mtd/nand/nand_base.c |4 
  1 files changed, 4 insertions(+), 0 deletions(-)
 
 diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
 index bfd5cac..4a61fee 100644
 --- a/drivers/mtd/nand/nand_base.c
 +++ b/drivers/mtd/nand/nand_base.c
 @@ -768,6 +768,7 @@ nand_get_device(struct nand_chip *chip, struct mtd_info 
 *mtd, int new_state)
  #else
  static int nand_get_device (struct nand_chip *this, struct mtd_info *mtd, 
 int new_state)
  {
 + this-state = new_state;
   return 0;
  }
  #endif

Applied this portion to nand-flash/testing.

-Scott

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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 v1.3.4-rc2 released

2008-07-31 Thread Jean-Christophe PLAGNIOL-VILLARD
On 18:28 Thu 31 Jul , Michal Simek wrote:
 Hi Wolfgang,
 
 Microblaze boards are without any warnings.
Same for arm
except IXP as evertime

Best Regards,
J.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] SD support for more than 128MB in u-boot1.3.1

2008-07-31 Thread Jean-Christophe PLAGNIOL-VILLARD
On 19:03 Thu 31 Jul , Naveen Kumar GADDIPATI wrote:
 Hi,
 
 Processor is arm926ejs based ST processor.
Could you be a bit more precise?
 I'm facing problem in supporting SD Card of size more than 128MB.
Ditto.
 SD Card is able to detect,but failing in reading boot sector info of the SD 
 block.
 
Log, code, etc... are welcome

Could you rebase your port against the current 1.3.4-rc2?

 One more thing,Is FAT32 support is present in uboot 1.3.1?If their any patch 
 for FAT32 in u-boot,please respond.

FAT32 is present for a long time

but IIRC: FAT32 is present in U-Boot but have somme issue

Best Regards,
J.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] test

2008-07-31 Thread Patty Scarpone
test

 

 

 

 

 

 

 

 

 


___ 
Patty Scarpone

IT Network Engineer

Nevada City Development Center 


2Wire, Inc.  Office:
(530) 274-5454

310 Providence Mine Road Cell: (530)
263-0660 
Nevada City, CA 95959Fax: (530)
274-5404

 

2Wire, Inc. Company Confidential.  The information contained in this
email and any attachments is private, confidential and may be legally
privileged.  If you are not the intended recipient of this message, or
an employee or agent responsible for delivering this message to the
intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify us
immediately by replying to the message and deleting it and any
attachments.

 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] testmail

2008-07-31 Thread Biju Kannadathil
Please ignore; this is a test mail ... 

 

 

Biju-

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
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] Correct ARM Versatile Timer Initialization

2008-07-31 Thread Gururaja Hebbar K R
 Hi,

In message
[EMAIL PROTECTED] you
wrote:
 Hi,
 
  @@ -50,8 +50,7 @@ static ulong lastdec;  int timer_init (void)  {
*(volatile ulong *)(CFG_TIMERBASE + 0) =3D3D CFG_TIMER_RELOAD; 
  /*=20 TimerLoad */
 ^
  - *(volatile ulong *)(CFG_TIMERBASE + 4) =3D3D CFG_TIMER_RELOAD; 
  /*=20 TimerValue */
 ^
 
 Your patch is line-wrapped and cannot be applied.
 
 I Checked the Original Source File  found this.
 
  *(volatile ulong *)(CFG_TIMERBASE + 0) =3D CFG_TIMER_RELOAD;
 /* TimerLoad */  --- This line ends @ Column 80
  *(volatile ulong *)(CFG_TIMERBASE + 4) =3D CFG_TIMER_RELOAD;
 /* TimerValue */  --- This line ends @ Column 81
 
 I just removed the Second Line since it was Invalid.

 I am really sorry for troubling but i have little issue finding the 
 mistake.
 Now in order to remove this, kindly let me know what i have to do.

Please resubmit your patch, without line wrapping.

Yes, I think i couldn't make myself clear. The ORIGINAL Source Code/Line
i need to REMOVE 
itself is greater than 80 Column. I am not adding any code. I am just
removing 1  line that is not 
required.

Kindly Have a look @ File u-boot-1.3.3/cpu/arm926ejs/versatile/timer.c @
line 53. 
I need to remove this Line. So i request to let me know how to remove a
line that's already is broken.

TIA

Regards
Gururaja

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] (Resubmit) ADD ARM AMBA PL031 RTC Support

2008-07-31 Thread Gururaja Hebbar K R
Hi, 

Please move such comments *below* the '---' line. Anything ABOVE '---'
will become the commit message that goes into the repository, only
stuff below the '---' gets ignores as comment.

Yes i will do  re-submit


  drivers/rtc/Makefile|1 +
  drivers/rtc/rtc_pl031.c |  123
+++
  board/versatile/versatile.c |9 +
  include/configs/versatile.h |7 +++

So this is actually not a single patch, but TWO:
Peter Pearse  Jean-Christophe PLAGNIOL-VILLARD had asked me to the
board details which will be using it. 
So i added it here. I already sent a separate Versatile Board Update
Only Code to Peter Pearse but not received any update from him.


So please split your patch and submit as two separate patches.
Ok will do that


 +#if defined(CONFIG_RTC_PL031)  defined(CONFIG_CMD_DATE)
 +rtc_init();
 +#endif

Why do we need the #ifdef's here? It seems this is a board specific
configuration anyway, i. e. we don't expect for example other RTC chips
to be used on this board, or do we?

If the user doesn't Need to Use RTC, He can Just disable it from
Versatile Board Config file versatile.h. This was my Idea. Isn't it
required


Regards
Gururaja

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH] Fix compile error caused by incorrect function return type 2

2008-07-31 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED]

Rename int mii_init(void) to void mii_init(void) for idmr
ColdFire platform

Signed-off-by: TsiChung Liew [EMAIL PROTECTED]
---
 board/idmr/mii.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/board/idmr/mii.c b/board/idmr/mii.c
index f130e6e..78a7028 100644
--- a/board/idmr/mii.c
+++ b/board/idmr/mii.c
@@ -200,7 +200,7 @@ int mii_discover_phy(struct eth_device *dev)
 }
 #endif /* CFG_DISCOVER_PHY */
 
-int mii_init(void) __attribute__((weak,alias(__mii_init)));
+void mii_init(void) __attribute__((weak,alias(__mii_init)));
 
 void __mii_init(void)
 {
-- 
1.5.6.4


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH] Fix compilation error for MCF5275

2008-07-31 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED]

Rename OBJ to COBJ in board/platform/Makefile

Signed-off-by: TsiChung Liew [EMAIL PROTECTED]
---
 board/freescale/m5275evb/Makefile |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/board/freescale/m5275evb/Makefile 
b/board/freescale/m5275evb/Makefile
index f337a75..74c2528 100644
--- a/board/freescale/m5275evb/Makefile
+++ b/board/freescale/m5275evb/Makefile
@@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk
 
 LIB= $(obj)lib$(BOARD).a
 
-OBJS   = $(BOARD).o mii.o
+COBJS  = $(BOARD).o mii.o
 
 SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS))
-- 
1.5.6.4


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH] Fix compilation error for TASREG

2008-07-31 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED]

TASREG is ColdFire platform, the include ppc4xx.h in
board/esd/common/flash.c causes conflict.

Signed-off-by: TsiChung Liew [EMAIL PROTECTED]
---
 board/esd/common/flash.c |2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/board/esd/common/flash.c b/board/esd/common/flash.c
index dca10be..bda361e 100644
--- a/board/esd/common/flash.c
+++ b/board/esd/common/flash.c
@@ -22,7 +22,9 @@
  */
 
 #include common.h
+#ifdef __PPC__
 #include ppc4xx.h
+#endif
 #include asm/processor.h
 
 flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips
*/
-- 
1.5.6.4


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH] Fix compilation issue caused by a missing function

2008-07-31 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED]

Implement usec2ticks() which is used by fsl_i2c.c in
lib_m68k/time.c

Signed-off-by: TsiChung Liew [EMAIL PROTECTED]
---
 lib_m68k/time.c |5 +
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/lib_m68k/time.c b/lib_m68k/time.c
index 28d371d..6eba784 100644
--- a/lib_m68k/time.c
+++ b/lib_m68k/time.c
@@ -199,6 +199,11 @@ unsigned long long get_ticks(void)
return get_timer(0);
 }
 
+unsigned long usec2ticks(unsigned long usec)
+{
+   return get_timer(usec);
+}
+
 /*
  * This function is derived from PowerPC code (timebase clock frequency).
  * On M68K it returns the number of timer ticks per second.
-- 
1.5.6.4


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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]:Enable 2D Engine in SM501 to hurry up fresh speed!

2008-07-31 Thread Ryan CHEN
Hi  Wolfgang,
I have modified my patch. New macro CONFIG_SM501_ENABLE_2DENGINE be
included to specify codes what enable SM501 2D engine. The macro need be
declared in config header file.
Why does it need to enable 2D engine? The reason is most of framebuffer
contents need be moved in VRAM when screen scrolls up. The work be done by
software in current U-Boot for SM501. The patch is to enable 2D engine to do
it by hardware without CPU interference.  

Signed-off-by: Ryan Chen [EMAIL PROTECTED]

diff --git a/drivers/video/sm501.c b/drivers/video/sm501.c
old mode 100644
new mode 100644
index 23db02c..250e445
--- a/drivers/video/sm501.c
+++ b/drivers/video/sm501.c
@@ -54,6 +54,48 @@
 #define write32(ptrReg, value) \
 (*(volatile unsigned int *)(sm501.isaBase + ptrReg) = value)
 
+#ifdef CONFIG_SM501_ENABLE_2DENGINE
+/* Register Macroes*/
+#define _F_START(f) (0 ? f)
+#define _F_END(f)   (1 ? f)
+#define _F_SIZE(f)  (1 + _F_END(f) - _F_START(f))
+#define _F_MASK(f)  (((1  _F_SIZE(f)) - 1)  _F_START(f))
+#define _F_NORMALIZE(v, f)  (((v)  _F_MASK(f))  _F_START(f))
+#define _F_DENORMALIZE(v, f)(((v)  _F_START(f))  _F_MASK(f))
+#define FIELD_GET(x, reg, field) \
+( \
+_F_NORMALIZE((x), reg ## _ ## field) \
+)
+#define FIELD_SET(x, reg, field, value) \
+( \
+(x  ~_F_MASK(reg ## _ ## field)) \
+| _F_DENORMALIZE(reg ## _ ## field ## _ ## value, reg ## _ ## field) \
+)
+#define FIELD_VALUE(x, reg, field, value) \
+( \
+(x  ~_F_MASK(reg ## _ ## field)) \
+| _F_DENORMALIZE(value, reg ## _ ## field) \
+)
+#define FIELD_CLEAR(reg, field) \
+( \
+~ _F_MASK(reg ## _ ## field) \
+)
+#define FIELD_START(field)  (0 ? field)
+#define FIELD_END(field)(1 ? field)
+#define FIELD_SIZE(field)   (1 + FIELD_END(field) -
FIELD_START(field))
+#define FIELD_MASK(field)   (((1  (FIELD_SIZE(field)-1)) |
((1  (FIELD_SIZE(field)-1)) - 1))  FIELD_START(field))
+#define FIELD_NORMALIZE(reg, field) (((reg)  FIELD_MASK(field)) 
FIELD_START(field))
+#define FIELD_DENORMALIZE(field, value) (((value)  FIELD_START(field)) 
FIELD_MASK(field))
+#define FIELD_INIT(reg, field, value)   FIELD_DENORMALIZE(reg ## _ ##
field, \
+  reg ## _ ## field
## _ ## value)
+#define FIELD_INIT_VAL(reg, field, value) \
+(FIELD_DENORMALIZE(reg ## _ ##
field, value))
+#define FIELD_VAL_SET(x, r, f, v)   x = x  ~FIELD_MASK(r ## _ ## f) \
+  | FIELD_DENORMALIZE(r ## _ ##
f, r ## _ ## f ## _ ## v)
+
+#define SM501_TIMEOUT  2   /* 20 ms */
+#endif/* CONFIG_SM501_ENABLE_2DENGINE */
+
 GraphicDevice sm501;
 
 
/*--
---
@@ -77,11 +119,148 @@ static void SmiSetRegs (void)
}
 }
 
+#ifdef CONFIG_SM501_ENABLE_2DENGINE
+static void set_current_gate(void)
+{
+   unsigned long value, gate;
+   /* change to mode0 */
+   value = read32(POWER_MODE_CTRL);
+   value = FIELD_SET(value, POWER_MODE_CTRL, MODE, MODE0);
+   write32(POWER_MODE_CTRL, value);
+
+   /* Don't forget to set up power mode0 gate properly. */
+   gate = read32(CURRENT_POWER_GATE);
+   gate = FIELD_SET(gate, CURRENT_POWER_GATE, 2D,  ENABLE);
+   write32(POWER_MODE0_GATE, gate);
+}
+
+/* Program new power mode. */
+static void setPower(unsigned long nGates, unsigned long Clock)
+{
+   unsigned long gate_reg, clock_reg;
+   unsigned long control_value;
+   u32 i;
+
+   /*  Get current power mode. */
+   control_value = FIELD_GET(read32(POWER_MODE_CTRL),
+   POWER_MODE_CTRL,
+   MODE);
+
+   switch (control_value) {
+   case POWER_MODE_CTRL_MODE_MODE0:
+   /* Switch from mode 0 to mode 1.*/
+   gate_reg = POWER_MODE1_GATE;
+   clock_reg = POWER_MODE1_CLOCK;
+   control_value = FIELD_SET(control_value,
+   POWER_MODE_CTRL, MODE, MODE1);
+   break;
+
+   case POWER_MODE_CTRL_MODE_MODE1:
+   case POWER_MODE_CTRL_MODE_SLEEP:
+   /* Switch from mode 1 or sleep to mode 0.*/
+   gate_reg = POWER_MODE0_GATE;
+   clock_reg = POWER_MODE0_CLOCK;
+   control_value = FIELD_SET(control_value, POWER_MODE_CTRL,
MODE, MODE0);
+   break;
+
+   default:
+   /* Invalid mode */
+   return;
+   }
+
+   /* Program new power mode. */
+   write32(gate_reg, nGates);
+   write32(clock_reg, Clock);
+   write32(POWER_MODE_CTRL, control_value);
+
+   /* When returning from sleep, wait until finished. */
+   i = SM501_TIMEOUT;
+   while ((FIELD_GET(read32(POWER_MODE_CTRL), POWER_MODE_CTRL, \
+   SLEEP_STATUS) == 

[U-Boot-Users] [PATCH]:Enable 2D Engine in SM501!

2008-07-31 Thread Ryan CHEN
Hi all,
This patch is part 2 for [PATCH:Enable 2D Engine in SM501]. New macro 
CONFIG_SM501_ENABLE_2DENGINE be included to specify codes what enable SM501 
2D engine. The macro need be declared in config header file.
Why does it need to enable 2D engine? The reason is most of framebuffer 
contents need be moved in VRAM when screen scrolls up. The work be done by 
software in current U-Boot for SM501. The patch is to enable 2D engine to do it 
by hardware without CPU interference.  

Signed-off-by: Ryan Chen [EMAIL PROTECTED]

diff --git a/include/sm501.h b/include/sm501.h
index 3e71dbb..516776f 100644
--- a/include/sm501.h
+++ b/include/sm501.h
@@ -40,6 +40,2213 @@ typedef struct {
unsigned int Value;
 } SMI_REGS;
 +#ifdef CONFIG_SM501_ENABLE_2DENGINE
+/*
+ *
+ * Definitions for the System Configuration registers.
+ *
+ */
+
+#define SYSTEM_CTRL 0x00
+#define SYSTEM_CTRL_DPMS31:30
+#define SYSTEM_CTRL_DPMS_VPHP   0
+#define SYSTEM_CTRL_DPMS_VPHN   1
+#define SYSTEM_CTRL_DPMS_VNHP   2
+#define SYSTEM_CTRL_DPMS_VNHN   3
+#define SYSTEM_CTRL_PCI_BURST   29:29
+#define SYSTEM_CTRL_PCI_BURST_DISABLE   0
+#define SYSTEM_CTRL_PCI_BURST_ENABLE1
+#define SYSTEM_CTRL_CSC_STATUS  28:28
+#define SYSTEM_CTRL_CSC_STATUS_IDLE 0
+#define SYSTEM_CTRL_CSC_STATUS_BUSY 1
+#define SYSTEM_CTRL_PCI_MASTER  25:25
+#define SYSTEM_CTRL_PCI_MASTER_STOP 0
+#define SYSTEM_CTRL_PCI_MASTER_START1
+#define SYSTEM_CTRL_LATENCY_TIMER   24:24
+#define SYSTEM_CTRL_LATENCY_TIMER_ENABLE0
+#define SYSTEM_CTRL_LATENCY_TIMER_DISABLE   1
+#define SYSTEM_CTRL_PANEL_STATUS23:23
+#define SYSTEM_CTRL_PANEL_STATUS_CURRENT0
+#define SYSTEM_CTRL_PANEL_STATUS_PENDING1
+#define SYSTEM_CTRL_VIDEO_STATUS22:22
+#define SYSTEM_CTRL_VIDEO_STATUS_CURRENT0
+#define SYSTEM_CTRL_VIDEO_STATUS_PENDING1
+#define SYSTEM_CTRL_DE_FIFO 20:20
+#define SYSTEM_CTRL_DE_FIFO_NOT_EMPTY   0
+#define SYSTEM_CTRL_DE_FIFO_EMPTY   1
+#define SYSTEM_CTRL_DE_STATUS   19:19
+#define SYSTEM_CTRL_DE_STATUS_IDLE  0
+#define SYSTEM_CTRL_DE_STATUS_BUSY  1
+#define SYSTEM_CTRL_CRT_STATUS  17:17
+#define SYSTEM_CTRL_CRT_STATUS_CURRENT  0
+#define SYSTEM_CTRL_CRT_STATUS_PENDING  1
+#define SYSTEM_CTRL_ZVPORT  16:16
+#define SYSTEM_CTRL_ZVPORT_00
+#define SYSTEM_CTRL_ZVPORT_11
+#define SYSTEM_CTRL_PCI_BURST_READ  15:15
+#define SYSTEM_CTRL_PCI_BURST_READ_DISABLE  0
+#define SYSTEM_CTRL_PCI_BURST_READ_ENABLE   1
+#define SYSTEM_CTRL_DE_ABORT13:12
+#define SYSTEM_CTRL_DE_ABORT_NORMAL 0
+#define SYSTEM_CTRL_DE_ABORT_2D_ABORT   3
+#define SYSTEM_CTRL_PCI_SUBSYS_LOCK 11:11
+#define SYSTEM_CTRL_PCI_SUBSYS_LOCK_DISABLE 0
+#define SYSTEM_CTRL_PCI_SUBSYS_LOCK_ENABLE  1
+#define SYSTEM_CTRL_PCI_RETRY   7:7
+#define SYSTEM_CTRL_PCI_RETRY_ENABLE0
+#define SYSTEM_CTRL_PCI_RETRY_DISABLE   1
+#define SYSTEM_CTRL_PCI_CLOCK_RUN   6:6
+#define SYSTEM_CTRL_PCI_CLOCK_RUN_DISABLE   0
+#define SYSTEM_CTRL_PCI_CLOCK_RUN_ENABLE1
+#define SYSTEM_CTRL_PCI_SLAVE_BURST_READ_SIZE   5:4
+#define SYSTEM_CTRL_PCI_SLAVE_BURST_READ_SIZE_1 0
+#define SYSTEM_CTRL_PCI_SLAVE_BURST_READ_SIZE_2 1
+#define SYSTEM_CTRL_PCI_SLAVE_BURST_READ_SIZE_4 2
+#define SYSTEM_CTRL_PCI_SLAVE_BURST_READ_SIZE_8 3
+#define SYSTEM_CTRL_CRT_TRISTATE2:2
+#define SYSTEM_CTRL_CRT_TRISTATE_DISABLE0
+#define SYSTEM_CTRL_CRT_TRISTATE_ENABLE 1
+#define SYSTEM_CTRL_INTMEM_TRISTATE 1:1
+#define SYSTEM_CTRL_INTMEM_TRISTATE_DISABLE 0
+#define SYSTEM_CTRL_INTMEM_TRISTATE_ENABLE  1
+#define SYSTEM_CTRL_PANEL_TRISTATE  0:0
+#define SYSTEM_CTRL_PANEL_TRISTATE_DISABLE  0
+#define SYSTEM_CTRL_PANEL_TRISTATE_ENABLE   1
+
+#define CURRENT_POWER_GATE  0x38
+#define CURRENT_POWER_GATE_AC97_I2S 18:18
+#define CURRENT_POWER_GATE_AC97_I2S_DISABLE 0
+#define CURRENT_POWER_GATE_AC97_I2S_ENABLE   

Re: [U-Boot-Users] [PATCH] (Resubmit) ADD ARM AMBA PL031 RTC Support

2008-07-31 Thread Hebbar

Hi,

Why do we need the #ifdef's here? It seems this is a board specific
configuration anyway, i. e. we don't expect for example other RTC chips
to be used on this board, or do we?

Also I Just Checked u-boot-1.3.3/board/bc3450/bc3450.c. Even here it has 
a declaration for RTC @ line 47

#ifdef CONFIG_RTC_MPC5200
#include rtc.h
#endif

@ line 371

#ifdef CONFIG_RTC_MPC5200
struct rtc_time t;

/* set to Wed Dec 31 19:00:00 1969 */
t.tm_sec = t.tm_min = 0;
t.tm_hour = 19;
t.tm_mday = 31;
t.tm_mon = 12;
t.tm_year = 1969;
t.tm_wday = 3;

rtc_set(t);
#endif /* CONFIG_RTC_MPC5200 */


So i think its correct. Please Update me if i am wrong


Regards
Gururaja

-- 
View this message in context: 
http://www.nabble.com/-PATCH--%28Resubmit%29-ADD-ARM-AMBA-PL031-RTC-Support-tp18499969p18767539.html
Sent from the Uboot - Users mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] Resubmit : [PATCH] Correct ARM Versatile Timer Initialization

2008-07-31 Thread Gururaja Hebbar K R
Signed-off-by: Gururaja Hebbar [EMAIL PROTECTED]
---
 cpu/arm926ejs/versatile/timer.c |3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/cpu/arm926ejs/versatile/timer.c
b/cpu/arm926ejs/versatile/timer.c
index 32872d2..9659b67 100644
--- a/cpu/arm926ejs/versatile/timer.c
+++ b/cpu/arm926ejs/versatile/timer.c
@@ -50,8 +50,7 @@ static ulong lastdec;
 int timer_init (void)
 {
*(volatile ulong *)(CFG_TIMERBASE + 0) = CFG_TIMER_RELOAD;
/* TimerLoad */
-   *(volatile ulong *)(CFG_TIMERBASE + 4) = CFG_TIMER_RELOAD;
/* TimerValue */
-   *(volatile ulong *)(CFG_TIMERBASE + 8) = 0x8C;
+   *(volatile ulong *)(CFG_TIMERBASE + 8) = 0x80;
 
/* init the timestamp and lastdec value */
reset_timer_masked();
-- 
1.5.6.4

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Re submit : [PATCH] Correct ARM Versatile Timer Initialization

2008-07-31 Thread Hebbar

Hi,

The above is Because of Below Reasons.

- According to ARM Dual-Timer Module (SP804) TRM (ARM DDI0271), 
---Timer Value Register @ TIMER Base + 4 is Read-only. So removed code which
 writes to this register
---Prescale Value (Bits 3-2 of TIMER Control register) can only be one of 
00,01,10.  The Value 11 is undefined. So This Patch Changes it to 00.

Comments are welcome.

Regards
Gururaja
-- 
View this message in context: 
http://www.nabble.com/Resubmit-%3A--PATCH--Correct-ARM-Versatile-Timer-Initialization-tp18768132p18768421.html
Sent from the Uboot - Users mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users