From: Steven Scholz <steven.scholz@imc-berlin.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] Cleanup cpu/arm920t
Date: Mon, 09 Aug 2004 08:49:28 +0200 [thread overview]
Message-ID: <41171E78.6070101@imc-berlin.de> (raw)
In-Reply-To: <20040806164204.3CFB4C109F@atlas.denx.de>
Dear Wolfgang,
>>Since the cpu/ directory gets clobbered with peripheral driver code I started
>>cleaning up cpu/arm920t.
>
> Thanks for the effort, but I disagree with some parts of the patch.
>
>> - rename cpu/arm920t/usb_ohci.c to drivers/s3c24x0_usb_ohci.c
>
> I disagree with this. drivers/ is for device drivers that are
> _common_ among architectures. It makes absolutely no sense to mode
> processor specific code like the s3c24x0 USB drivers to this
> directory.
Accepted. I found some processor specific driver code in drivers/ (like
s3c24x0_i2c.c s3c4510b_eth.c s3c4510b_eth.h s3c4510b_uart.c
s3c4510b_uart.h) so I thought it becomes "common practice" to put peripheral
driver code for uart or ethernet (although it might be processor specific)
into drivers/.
>> - remove cpu/arm920t/usb_ohci.h (duplicate code)
>
> Duplicate to what?
Duplicate to cpu/mpc5xxx/usb_ohci.h.
>
>> - rename cpu/mpc5xxx/usb_ohci.h to drivers/usb_ohci.h so everybody can use
>> it (maybe we can merge cpu/arm920t/usb_ohci.c and cpu/mpc5xxx/usb_ohci.c
>> someday)
>
>
> Be careful. Do you really think this is a good idea? The 52xx USB
> code suffers from the endinaess problem of the 52xx. I'm not sure if
> this is a good base for common code.
The only difference I found is
+#if defined(CONFIG_MPC5200)
+ __u16 pad1; /* set to 0 on each frame_no change */
+ __u16 frame_no; /* current frame number */
+#else
__u16 frame_no; /* current frame number */
__u16 pad1; /* set to 0 on each frame_no change */
+#endif
Thanks,
--
Steven Scholz
next prev parent reply other threads:[~2004-08-09 6:49 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-06 16:02 [U-Boot-Users] [PATCH] Cleanup cpu/arm920t Steven Scholz
2004-08-06 16:41 ` Wolfgang Denk
2004-08-09 6:49 ` Steven Scholz [this message]
2004-08-09 9:02 ` llandre
2004-08-09 20:08 ` Wolfgang Denk
2004-08-09 20:07 ` Wolfgang Denk
2004-08-09 10:50 ` llandre
2004-08-09 20:10 ` Wolfgang Denk
2004-08-10 6:12 ` Steven Scholz
2004-08-10 7:44 ` Wolfgang Denk
2004-08-10 7:50 ` Steven Scholz
2004-08-10 8:24 ` Wolfgang Denk
2004-08-10 9:09 ` Steven Scholz
2004-08-11 10:45 ` Steven Scholz
2004-08-11 14:23 ` llandre
2004-08-11 15:02 ` Wolfgang Denk
2004-08-11 15:53 ` Steven Scholz
2004-08-11 16:06 ` Steven Scholz
2004-08-11 17:09 ` Wolfgang Denk
2004-08-11 16:31 ` Wolfgang Denk
2004-08-11 16:34 ` llandre
2004-08-11 17:10 ` Wolfgang Denk
2004-08-11 17:28 ` llandre
2004-08-11 18:10 ` Wolfgang Denk
2004-08-12 7:44 ` llandre
2004-08-12 11:56 ` Steven Scholz
2004-08-12 12:54 ` Wolfgang Denk
2004-08-12 14:10 ` Steven Scholz
2004-08-10 7:34 ` llandre
2004-08-10 8:22 ` Wolfgang Denk
-- strict thread matches above, loose matches on Subject: below --
2004-08-10 6:31 Mészáros Lajos
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=41171E78.6070101@imc-berlin.de \
--to=steven.scholz@imc-berlin.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.