public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [Patch] KVME080 Support
@ 2005-08-18  9:57 Sangmoon Kim
  2005-08-18 20:41 ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: Sangmoon Kim @ 2005-08-18  9:57 UTC (permalink / raw)
  To: u-boot

Hi,
This patch adds support for KVME080 board.
KVME080 is a VME board with MPC8245 CPU.

It also patches drivers/cfi_flash.c.

First, it adds CFG_FLASH_PROTECT_CLEAR
because for some flash memories(such as 28F320C3)
all banks are protected after reset.

Second, it makes write_buff not to call flash_write_cfibuffer
if buffer_size is1. Because for flash memories with buffer_size 1,
buffer write is not supported.

Third, it makes 64 bit writes to use FLASH_WRITE64
if FLASH_WRITE64 is defined.
Because KVME080 needs it.

Fourth, it makes flash_detect_cfi call FLASH_PORTWIDTH
when changing portwidth if FLASH_PORTWIDTH is defined.
Because on some CPUs (such as MPC8245),
port width should be changed.

Regards,
Sangmoon Kim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kvme080.patch.gz
Type: application/x-gzip
Size: 8675 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20050818/9ca1bcd7/attachment.bin 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot-Users] [Patch] KVME080 Support
  2005-08-18  9:57 [U-Boot-Users] [Patch] KVME080 Support Sangmoon Kim
@ 2005-08-18 20:41 ` Wolfgang Denk
  2005-08-19  3:22   ` Sangmoon Kim
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Denk @ 2005-08-18 20:41 UTC (permalink / raw)
  To: u-boot

In message <004e01c5a3db$3840e6f0$212d4cdc@smkim> you wrote:
>
> This patch adds support for KVME080 board.
> KVME080 is a VME board with MPC8245 CPU.
> 
> It also patches drivers/cfi_flash.c.

Can you please split your patch into two?

Please  see  section  "Submitting  Patches"  in  the   README   which
explicitely requires:

        Changesets that contain different, unrelated modifications
        shall be submitted as SEPARATE patches, one patch per
        changeset.


And please cleanup your code before re-submitting:

* It violates the coding style requirements (trailing white space).

* Using globally visible preprocessor defines like  FLASH_WRITE64  is
  not  acceptable  (you also forgot to document these, but that would
  help either), and defining such code in the board  config  file  is
  the  wrong  way  to implement it either. The board config file is -
  ummm, a _configuration_ file, but does not contain source code.


Also:  please  read  the  recent  "U-Boot  Developer's   Information"
posting;  you  are  supposed  to  provide  a  "sign-off" line for all
patches.

Rejected, sorry.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
One friend in a lifetime is much; two  are  many;  three  are  hardly
possible. Friendship needs a certain parallelism of life, a community
of thought, a rivalry of aim.                     - Henry Brook Adams

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot-Users] [Patch] KVME080 Support
  2005-08-18 20:41 ` Wolfgang Denk
@ 2005-08-19  3:22   ` Sangmoon Kim
  2006-07-22 18:56     ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: Sangmoon Kim @ 2005-08-19  3:22 UTC (permalink / raw)
  To: u-boot

Hi,
> 
> Can you please split your patch into two?
> 
I splited the patch and extracted KVME080 parts only.

> 
> And please cleanup your code before re-submitting:
> 
> * It violates the coding style requirements (trailing white space).
> 
Sorry, I was suprised that my code had so many white spaces.
I am sure I fixed all of it now.

> * Using globally visible preprocessor defines like  FLASH_WRITE64  is
>  not  acceptable  (you also forgot to document these, but that would
>  help either), and defining such code in the board  config  file  is
>  the  wrong  way  to implement it either. The board config file is -
>  ummm, a _configuration_ file, but does not contain source code.
>
I deleted the 'source code' from the board configuration file.
The current version of KVME080 board runs well without patching cfi_flash.c
I'll find an alternative way and send the patch for cfi_flash.c later.

> 
> Also:  please  read  the  recent  "U-Boot  Developer's   Information"
> posting;  you  are  supposed  to  provide  a  "sign-off" line for all
> patches.
> 
I added the "sign-off" line at the end of the patch.

Regards,
Sangmoon Kim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kvme080.patch.gz
Type: application/x-gzip
Size: 7760 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20050819/50c86749/attachment.bin 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot-Users] [Patch] KVME080 Support
  2005-08-19  3:22   ` Sangmoon Kim
@ 2006-07-22 18:56     ` Wolfgang Denk
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2006-07-22 18:56 UTC (permalink / raw)
  To: u-boot

In message <005001c5a46d$4fb80e20$212d4cdc@smkim> you wrote:
> 
> I splited the patch and extracted KVME080 parts only.

Added, thanks.

But please check your code - it does not compile;  it  runs  into  an
endless loop when trying to byils the srec image. I guess either your
memory map and/or your linker script is broken.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I have made mistakes, but have never made the mistake of  claiming  I
never made one.                                     - James G. Bennet

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-07-22 18:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-18  9:57 [U-Boot-Users] [Patch] KVME080 Support Sangmoon Kim
2005-08-18 20:41 ` Wolfgang Denk
2005-08-19  3:22   ` Sangmoon Kim
2006-07-22 18:56     ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox