public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] arm SoC code in U-Boot.
@ 2007-03-06 17:02 Peter Pearse
  2007-03-06 21:36 ` Wolfgang Denk
  0 siblings, 1 reply; 16+ messages in thread
From: Peter Pearse @ 2007-03-06 17:02 UTC (permalink / raw)
  To: u-boot

Hi
	I see from
http://www.freescale.com/webapp/sps/site/homepage.jsp?nodeId=02XPgQ82172
973 that 
there are IMX SOCs with three different ARM cores (920, 926, 1136).

Hopefully, there would be some commonality in the u-boot imx code - so
repeating it under the individual cpus seems wasteful.

Arguably freescale could produce a SOC with someone else's core 

(although I think that would be a silly idea of course ;-> )


I could live with cpu/freescale/imx. Presumably it would be built in
via the SOC value?

Regards

Peter

-- 
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium.  Thank you.

^ permalink raw reply	[flat|nested] 16+ messages in thread
* [U-Boot-Users] arm SoC code in U-Boot.
@ 2007-03-08  8:17 TXEMA LOPEZ
  2007-03-08  8:40 ` Wolfgang Denk
  0 siblings, 1 reply; 16+ messages in thread
From: TXEMA LOPEZ @ 2007-03-08  8:17 UTC (permalink / raw)
  To: u-boot

Hi,
I'm afraid I'm quite a bit missing in this discussion. At last, where must I put the imx21 related code? In drivers/imx ? Or will the U-Boot structure be changed (the Soc related code will be spread over drivers/..)?. Must I wait? Must I do something about it?.

Best regards,  

 -----Mensaje original-----
De: 	wd at denx.de [mailto:wd at denx.de] 
Enviado el:	mi?rcoles, 07 de marzo de 2007 15:39
Para:	Haavard Skinnemoen
CC:	Stefan Roese; u-boot-users at lists.sourceforge.net; Ulf Samuelsson; Grant Likely; TXEMA LOPEZ; Peter Pearse
Asunto:	Re: [U-Boot-Users] arm SoC code in U-Boot. 

In message <1defaf580703070437x2d36edd8q52bc86a41d7df2f2@mail.gmail.com> you wrote:
> On 3/7/07, Stefan Roese <sr@denx.de> wrote:
> 
> > Why not try to match this a little more to the Linux directory structure:
> >
> > drivers/net/netarm_eth.*
> > drivers/net/qe/*
> > drivers/i2c/omap1510_i2c.*
> > ...
> 
> I think this is a great idea. Grouping drivers together by function
> makes them much easier to find, and it's also easier to find examples
> when you're writing a new driver. With the current layout, you have to
> grep through the drivers, cpu and board hierarchies to find existing
> drivers similar to the one you're trying to write.
> 

Seems we have an agreement. Let's do it this way, then. Thanks to all
of you.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
Office:  Kirchenstr. 5,       D-82194 Groebenzell,            Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Language shapes the way we think, and determines what we  can  think
about."                                                 - B. L. Whorf

^ permalink raw reply	[flat|nested] 16+ messages in thread
* [U-Boot-Users] arm SoC code in U-Boot.
@ 2007-03-02 10:03 Txema Lopez
  2007-03-05 11:38 ` Ulf Samuelsson
  0 siblings, 1 reply; 16+ messages in thread
From: Txema Lopez @ 2007-03-02 10:03 UTC (permalink / raw)
  To: u-boot

Hi all,

I'm working in a port for the csb535fs board. I sent a patch to U-Boot 
that includes a new directory (imx21) for the i.MX21 SoC related code 
following the actual policy of U-Boot. Grant Likely thinks (and now I'm 
agree) this code is very similar to imx code and must be put in the same 
directory. But, the SoC related code in U-Boot is located on the 
cpu/arm**** directories, so it's depends on the arm core. My idea is to 
put all this SoC related code in a specific directory (cpu/arm_soc).
This would be the patch for the makefile.

--- Makefile    2007-02-27 09:59:17.000000000 +0100
+++ NewMakefile    2007-03-02 09:19:33.000000000 +0100
@@ -191,8 +191,12 @@ LIBS  = lib_generic/libgeneric.a
 LIBS += board/$(BOARDDIR)/lib$(BOARD).a
 LIBS += cpu/$(CPU)/lib$(CPU).a
 ifdef SOC
+ifeq ($(ARCH),arm)
+LIBS += cpu/arm_soc/$(SOC)/lib$(SOC).a
+else
 LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
 endif
+endif
 LIBS += lib_$(ARCH)/lib$(ARCH).a
 LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a 
fs/jffs2/libjffs2.a \
     fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a

So, these directories
    at91rm9200
    imx
    ks8695
    omap
    s3c240x0
    versatile
Must be moved from cpu/arm**** directories to cpu/arm_soc directory.

This change could be a quite intrusive and would affect quite a few 
boards, so I need some feedback from the list.

Wolfgang proposed a particular solution for the imx related code putting 
it in a new directory (cpu/arm/imx_common). For me is OK too. I don't 
know who has the last say in these questions but I would like to know 
what will be the solution to not work in vain.


Best regards,



  

-------------- next part --------------
A non-text attachment was scrubbed...
Name: tlopez.vcf
Type: text/x-vcard
Size: 324 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20070302/3aa6a6e8/attachment.vcf 

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

end of thread, other threads:[~2007-03-08  8:40 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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