public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Pierre AUBERT <p.aubert@staubli.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Patch generalizing USB and IDE drivers for MPC5200
Date: Tue, 02 Mar 2004 09:26:01 +0100	[thread overview]
Message-ID: <40444519.8040607@staubli.com> (raw)
In-Reply-To: <20040301120732.76675C0655@atlas.denx.de>

Hi everybody,

Here's my suggestions :
- for the USB drivers, the constants CONFIG_USB_CDMFDC5xxx and 
CONFIG_USB_GPSCFG5xxx
  must be defined in the board configuration file
- for the IDE driver, the reset routine is board specific, then the good 
place for it is the board directory.

The attached patch fixes this points for the Lite5200 board. (Reinhard: 
it includes your fixes for compiler warnings
in usb_ohci.c).


CHANGELOG:
* Patch by Pierre AUBERT, 02 Mar 2004
   cleanups on IDE and USB drivers for MPC5200


Wolfgang Denk wrote:

>In message <00ef01c3ff80$3bf22e90$644ba8c0@alb.sub.de> you wrote:
>  
>
>>1. This spatch removes the compiler warnings (integer made from pointer
>>without cast)
>>
>>2. it generalizes the Clock Divider Values and the Port Config for USB
>>
>>if CONFIG_USB_CDMFDC5xxx and CONFIG_USB_GPSCFG5xxx are NOT defined, nothing
>>changes.
>>    
>>
>
>Please provide a CHANGELOG entry and a description of these #define's
>for the README.
>
>  
>
>>@@ -1532,10 +1532,19 @@ int usb_lowlevel_init(void)
>> {
>> 
>> 	/* Set the USB Clock						     */
>>+#if defined (CONFIG_USB_CDMFDC5xxx)
>>+	*(vu_long *)MPC5XXX_CDM_48_FDC = CONFIG_USB_CDMFDC5xxx;
>>+#else
>> 	*(vu_long *)MPC5XXX_CDM_48_FDC = 0x0001bbbb;
>>-	*(vu_long *)MPC5XXX_GPS_PORT_CONFIG &= ~0x00800000;
>>+#endif
>>+	/* remove all USB bits first before ORing in ours */
>>+	*(vu_long *)MPC5XXX_GPS_PORT_CONFIG &= ~0x00807000;
>> 	/* Activate USB port						     */
>>+#if defined (CONFIG_USB_GPSCFG5xxx)
>>+	*(vu_long *)MPC5XXX_GPS_PORT_CONFIG |= CONFIG_USB_GPSCFG5xxx;
>>+#else
>> 	*(vu_long *)MPC5XXX_GPS_PORT_CONFIG |= 0x00001000;
>>+#endif
>>    
>>
>
>If you think it is likely that these nubers may need  adjustment  for
>other  boards,  then  we  should  #defined them for ALL boards in the
>config file and get rid of the "#if defined()" mess here.
>
>Your patch adds no code tat actually uses these constants, so basicly
>all we do is create dead code.
>
>That's why I reject the patch as is. Please feel free to address  the
>3 issues listed above and resubmit.
>
>Best regards,
>
>Wolfgang Denk
>
>  
>

Best regards

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: u-boot-ide-usb-mpc5200.patch
Url: http://lists.denx.de/pipermail/u-boot/attachments/20040302/8f7536a1/attachment.txt 

  reply	other threads:[~2004-03-02  8:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-01 11:27 [U-Boot-Users] Patch generalizing USB driver for MPC5200 Reinhard Meyer
2004-03-01 12:07 ` Wolfgang Denk
2004-03-02  8:26   ` Pierre AUBERT [this message]
2004-03-14  0:36     ` [U-Boot-Users] Patch generalizing USB and IDE drivers " Wolfgang Denk
2004-03-01 18:16 ` [U-Boot-Users] linker script howto David Updegraff
2004-03-01 18:39   ` Cal Erickson
2004-03-01 19:21   ` Wolfgang Denk
2004-03-02  5:39   ` ganapathi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40444519.8040607@staubli.com \
    --to=p.aubert@staubli.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox