From: Ulf Samuelsson <ulf@atmel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] arm SoC code in U-Boot.
Date: Tue, 6 Mar 2007 23:45:10 +0100 [thread overview]
Message-ID: <010201c76041$9a42fa90$01c4af0a@Glamdring> (raw)
In-Reply-To: 20070306223220.22829352604@atlas.denx.de
>> > Do we really need the "freescale" subdirectory here? Maybe
>> > cpu/arm_imx would be a shorter and more descriptive name?
> ...
>> I think it is a matter of taste.
>
> Agreed.
>
>> Some people would like to have consistency
>> making it easy to find where things are located.
>
> To me making it easy to find where things are located includes not to
> add unnecessary directory levels.
>
> When adding "cpu/freescale/" I see no clear line what should go in
> there and what not. Whould we then move all the cpu/mpc???/
> directories into cpu/freescale/ ? And then probably create (for
> consistency) a "cpu/amcc/" directory and mode cpu/ppc4xx into that
> one? What do we get in addition to another directory level? IMO that
> would not improve anything, and you still don't see where shared code
> is located.
I think you can still keep the cpu/ppc4xx directory but if you
find that cpu/ppcYYY has shared code with the cpu/ppc4xx
and you would like to have a common driver, then
you put it in "cpu/amcc/ppc.
For freescale you would put shared code in
cpu/freescale/imx and cpu/freescale/ppc
and maybe cpu/freescale/coldfire
>
>> If you look at what is driving duplication, then you find
>> that the peripherals are either developed inside a semiconductor
>> company, or they are licensed from an IP provider.
>>
>> It makes a lot of sense therefore to dedicate directories
>> to the providers of IP:
>> ARM is a provider, but so are also Freescale, Atmel and others.
>
> Well, where did license Freescale the IMX core from? I don't think
> that we should focus on vendor names here, but instead on content.
> And the content is "ARM IMX" related code. Assuming that is CPU
> specific enough to go under "cpu/", I feel we should either add a
> "cpu/imx" directory or - a little more descriptive - "cpu/arm_imx/"
> as suggested above. Even "cpu/arm/imx/" seems more natural to me than
> "cpu/freescale/imx/".
>
I might be wrong, but think the issue is that
Freescale has some common peripherals which are used
both on ARM926EJS and ARM920T chips.
If the peripherals are licensed from ARM, then I think that the peripheral
might be in use in other ARM chipa I.E. non-imx chips as well and "cpu/arm"
would
be OK, but not "cpu/arm/imx"
.
If the peripherals are developed by Freescale, then if they
happen to use the peripheral on a non-ARM chip then
the cpu/arm/imx is no good and cpu/arm_imx is also no good.
"cpu/freescale" is then much better for generic stuff
and "cpu/freescale/imx" for things shared only among imx chips.
.
cpu/arm could
be a directory, but then it is
> Best regards,
>
> Wolfgang Denk
>
Best Regards
Ulf Samuelsson ulf at atmel.com
Atmel Nordic AB
Mail: Box 2033, 174 02 Sundbyberg, Sweden
Visit: Kavalleriv?gen 24, 174 58 Sundbyberg, Sweden
Phone +46 (8) 441 54 22 Fax +46 (8) 441 54 29
GSM +46 (706) 22 44 57
Technical support when I am not available:
AT89 C51 Applications Group: mailto:micro.hotline at nto.atmel.com
AT90 AVR Applications Group: mailto:avr at atmel.com
AT91 ARM Applications Group: mailto:at91support at atmel.com
FPSLIC Application Group: mailto:fpslic at atmel.com Best AVR
link: www.avrfreaks.net
next prev parent reply other threads:[~2007-03-06 22:45 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-06 17:02 [U-Boot-Users] arm SoC code in U-Boot Peter Pearse
2007-03-06 21:36 ` Wolfgang Denk
2007-03-06 21:55 ` Ulf Samuelsson
2007-03-06 22:32 ` Wolfgang Denk
2007-03-06 22:45 ` Ulf Samuelsson [this message]
2007-03-06 23:51 ` [U-Boot-Users] SDRAM cache inhibit David Clark
2007-03-07 0:06 ` Wolfgang Denk
2007-03-07 15:35 ` David Clark
2007-03-07 6:30 ` [U-Boot-Users] arm SoC code in U-Boot Stefan Roese
2007-03-07 12:37 ` Haavard Skinnemoen
2007-03-07 14:27 ` Ben Warren
2007-03-07 14:39 ` Wolfgang Denk
-- strict thread matches above, loose matches on Subject: below --
2007-03-08 8:17 TXEMA LOPEZ
2007-03-08 8:40 ` Wolfgang Denk
2007-03-02 10:03 Txema Lopez
2007-03-05 11:38 ` Ulf Samuelsson
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='010201c76041$9a42fa90$01c4af0a@Glamdring' \
--to=ulf@atmel.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