All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kim Phillips <kim.phillips@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] mpc83xx: make dtb basename file references equal those of linux
Date: Mon, 10 Mar 2008 08:59:09 -0500	[thread overview]
Message-ID: <20080310085909.8b341a3d.kim.phillips@freescale.com> (raw)
In-Reply-To: <20080308091956.EF63C248F9@gemini.denx.de>

On Sat, 08 Mar 2008 10:19:56 +0100
Wolfgang Denk <wd@denx.de> wrote:

> Dear Kim,
> 
> in message <20080307204848.8a7b5cba.kim.phillips@freescale.com> you wrote:
> >
> > > I  don't  think  it's  exactly  intuitive  to  have  a  board   named
> > > "mpc832xemds" and the related files use "mpc832x_mds".
> > > 
> > > That looks awfully broken to me.
> > 
> > afaik, you can supposedly buy an mds board with an mpc8321,
> > mpc8321e, mpc8323, or an mpc8323e (the trailing 'e' denotes whether the
> > crypto engine has its fuse intact).  It's just the mpc8323e that is
> > (probably by far) the most common.
> 
> Yes, I know. By "board name" I mean the name of the configuration in
> U-Boot, and the related file names i. e.
> 
> 	Makefile:	MPC8323ERDB_config
> 			MPC832XEMDS_config
> 			MPC832XEMDS_HOST_33_config
> 			MPC832XEMDS_HOST_66_config
> 			MPC832XEMDS_SLAVE_config
> 			MPC832XEMDS_ATM_config
> 	doc/README.mpc8323erdb
> 	doc/README.mpc832xemds
> 	include/configs/MPC8323ERDB.h
> 	include/configs/MPC832XEMDS.h
> 	board/freescale/mpc8323erdb/Makefile
> 	board/freescale/mpc8323erdb/config.mk
> 	board/freescale/mpc8323erdb/mpc8323erdb.c
> 	board/freescale/mpc832xemds/Makefile
> 	board/freescale/mpc832xemds/config.mk
> 	board/freescale/mpc832xemds/mpc832xemds.c
> 	board/freescale/mpc832xemds/pci.c
> 
>   and:
>   	CONFIG_MPC832XEMDS
> 
> 
> compare Linux:
> 
> 	arch/powerpc/configs/mpc832x_mds_defconfig
> 	arch/powerpc/configs/mpc832x_rdb_defconfig
> 	arch/powerpc/boot/dts/mpc832x_mds.dts
> 	arch/powerpc/boot/dts/mpc832x_rdb.dts
> 	arch/powerpc/platforms/83xx/mpc832x_mds.c
> 	arch/powerpc/platforms/83xx/mpc832x_rdb.c
> 
>   and:
>   	CONFIG_MPC832x_MDS
> 
> > linux board support files are consistent /within/ linux, and u-boot
> 
> No, not even this.
> 
> arch/powerpc/boot/dts/mpc832x_mds.dts says:
> 
> 	* MPC8323E EMDS Device Tree Source
> 	 model = "MPC8323EMDS";
> 	 compatible = "MPC8323EMDS", "MPC832xMDS", "MPC83xxMDS";
> 
> There is no name with an underscore there.
> 
> > board support files are intra-u-boot consistent; it's just this
> > particular file (the device tree) needs to be inter-linux and u-boot
> > consistent (for interoperability purposes).  Since linux does currently
> 
> As you can see above, there are  more  places  where  the  same  name
> could or rather should be shared between U-Boot and Linux:
> 
> - for the board specific #define's
> - for the board configuration ("MAKEALL foo" resp. "make foo_config"
>   in U-Boot and "make foo_defconfig" in Linux)
> - for the file names in the source trees

you're right..

> Depending on your lab setup, you probably also share between U-Boot
> and Linux
> 
> - the name of the /tftpboot directory
> - the name of the BDI2000 config file
> - the port name on the terminal server for serial console access
> - the port name remote power switch unit
> 
> > host the device tree files, we should probably follow their naming
> > scheme, unless you want to discuss hosting device tree files in
> > u-boot ;).
> > 
> > fyi, the board file was changed in the linux git tree commit
> > be156bed9ebfe365c6d95f715eae3529cf694fcb
> 
> 
> But OK - that's your stuff. I will not block your commit now,  but  I
> really  think this shouldbe cleaned up - in your own interest, and in
> the interest of your users.

I'll have a look into it when I get a chance.

Thanks,

Kim

      reply	other threads:[~2008-03-10 13:59 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-07 18:27 [U-Boot-Users] [PATCH] mpc83xx: make dtb basename file references equal those of linux Kim Phillips
2008-03-07 19:38 ` Wolfgang Denk
2008-03-07 20:27   ` Timur Tabi
2008-03-08  0:59     ` Wolfgang Denk
2008-03-10 15:03       ` Timur Tabi
2008-03-07 20:28   ` Kim Phillips
2008-03-07 20:47     ` Jerry Van Baren
2008-03-08  1:04       ` Wolfgang Denk
2008-03-08  1:03     ` Wolfgang Denk
2008-03-08  2:48       ` Kim Phillips
2008-03-08  9:19         ` Wolfgang Denk
2008-03-10 13:59           ` Kim Phillips [this message]

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=20080310085909.8b341a3d.kim.phillips@freescale.com \
    --to=kim.phillips@freescale.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 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.