public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] SPL boot on iMX6
Date: Tue, 27 Aug 2013 15:00:03 +0200	[thread overview]
Message-ID: <521CA2D3.4010705@denx.de> (raw)
In-Reply-To: <20130827120724.4b7f5752@triceratops>

Hi Tapani,

On 27/08/2013 06:07, Tapani Utriainen wrote:

> Your suggestion is similar to what I would first think of, but you do
> the extra kludging to make it work with the current syntax. My approach
> would be to introduce new namings in parallel to the current ones
> (similar, if not the same, as the linux kernel uses) until most imx6
> boards have been cleaned to use the new namings (which might take a while).

We will see when you post patches. My concern is that very often old
code remains unchanged and nobody takes care of it. If there is no
compatibility approach, we should try to clean up all boards.

Can you also take a look at the Troy's patches, mentioned by Eric ?

> 
> For the accessor macro, our experiences from the Wandboard kernel have been
> very positive with the following:
> 
> To set the above mentioned pad, the board file does:
> 
> 	IMX6_SETUP_PAD( SD2_DAT1__USDHC2_DAT1 );
> 
> where the macro IMX6_SETUP_PAD is defined as:
> 
> #define IMX6_SETUP_PAD(p) \
> 	if (cpu_is_mx6q()) \
> 		mxc_iomux_v3_setup_pad(MX6Q_PAD_##p);\
> 	else \
> 		mxc_iomux_v3_setup_pad(MX6DL_PAD_##p)
> 

Sure, I thought something like that, too.

> 
> Of course the syntax can be different. One experience is that this de-clutters 
> the board file (compared with having arrays and arrays of padconf definitions).

It is interesting how much the footprint increases.

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

  reply	other threads:[~2013-08-27 13:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-26  7:17 [U-Boot] SPL boot on iMX6 Tapani Utriainen
2013-08-26  7:42 ` Stefano Babic
2013-08-26 11:12   ` Tapani
2013-08-26 13:33     ` Stefano Babic
2013-08-26 14:23       ` Eric Nelson
2013-08-27 12:53         ` Stefano Babic
2013-08-27  4:07       ` Tapani Utriainen
2013-08-27 13:00         ` Stefano Babic [this message]
2013-08-27 15:00         ` Eric Nelson
2013-08-26 13:28 ` Fabio Estevam

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=521CA2D3.4010705@denx.de \
    --to=sbabic@denx.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox