public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V2 6/6] arm: mx5: Add support for DENX M53EVK
Date: Sun, 21 Apr 2013 21:46:41 +0200 (CEST)	[thread overview]
Message-ID: <1643889946.6492.1366573601954.JavaMail.root@advansee.com> (raw)
In-Reply-To: <201304212112.31672.marex@denx.de>

Dear Marek Vasut,

On Sunday, April 21, 2013 9:12:31 PM, Marek Vasut wrote:
> Dear Beno?t Th?baudeau,
> 
> > Dear Marek Vasut,
> > 
> > On Sunday, April 21, 2013 5:52:27 PM, Marek Vasut wrote:
> > > Add basic support for the DENX M53EVK board. Currently supported is:
> > > MMC (incl. booting)
> > 
> >              ^
> > Can you clarify this, please?
> 
> Use u-boot.imx for SD booting as usual.
> 
> > spl_boot_device() points only to NAND, so
> > you're clearly talking about hardware MMC boot, and not about hardware
> > NAND boot followed by SPL payload fetched from MMC. But MMC boot does not
> > need SPL here, in which case you will have to generate a simple
> > u-boot.imx, or you will rather want to use u-boot-with-spl.imx for SD
> > (NAND header dropped to leave room for MBR). And in the latter case, why
> > have spl_boot_device() point to NAND for MMC boot?
> 
> No, regular u-boot.imx will be used for SD boot.

OK. So this will require to call make with u-boot.imx as the explicit target.
Should this be documented somewhere, perhaps in a README file for this board?

Another solution would be, like for woodburn, to have an sd-specific config:
 - m53evk_nand_config would define CONFIG_SPL from boards.cfg, so
   u-boot-with-nand-spl.imx would be generated.
 - mx53evk_sd_config would not define CONFIG_SPL from boards.cfg, so u-boot.imx
   would be generated.
And CONFIG_SPL would be removed from m53evk.h.

Or, change the various config.mk in order to build u-boot.imx even if CONFIG_SPL
is defined, which would be useless for some boards, but useful here in order to
avoid having 2 configs for almost the same build, while still not having to
explicitly give a make target.

> > > NAND (incl. booting)
> > > Ethernet, I2C, USB, SATA, RTC.
> > > 
> > > Signed-off-by: Marek Vasut <marex@denx.de>
> > > Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
> > > Cc: Beno?t Th?baudeau <benoit.thebaudeau@advansee.com>
> > > Cc: Fabio Estevam <fabio.estevam@freescale.com>
> > > Cc: Scott Wood <scottwood@freescale.com>
> > > Cc: Stefano Babic <sbabic@denx.de>
> > > Cc: Tom Rini <trini@ti.com>
> > > Cc: Wolfgang Denk <wd@denx.de>
> > > ---
> 
> [...]
> 
> > > +static void m53_set_nand(void)
> > > +{
> > > +	u32 i;
> > > +
> > > +	#define M4IF_GENP_WEIM_MM		0x00000001
> > > +	#define WEIM_GCR2_MUX16_BYP_GRANT	0x00001000
> > > +
> > > +	/* NAND flash is muxed on ATA pins */
> > > +	setbits_le32(M4IF_BASE_ADDR + 0xc, M4IF_GENP_WEIM_MM);
> > 
> > This should be clrbits_le32().
> 
> Why?

Because I mistakenly assumed (without checking, and even without reading your
comment above) that the NFC pins used on this board were muxed on EIM like for
mx53ard. So your patch is correct here. ;)

> > > +
> > > +	/* Wait for Grant/Ack sequence (see EIM_CSnGCR2:MUX16_BYP_GRANT) */
> > > +	for (i = 0x4; i < 0x94; i += 0x18)
> > > +		clrbits_le32(WEIM_BASE_ADDR + i, WEIM_GCR2_MUX16_BYP_GRANT);
> > > +
> > > +	mxc_set_clock(0, 33, MXC_NFC_CLK);
> > > +	enable_nfc_clk(1);
> > > +}
> 
> [...]

Best regards,
Beno?t

  reply	other threads:[~2013-04-21 19:46 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-21 15:52 [U-Boot] [PATCH V2 1/6] imx: Align the imximage header and payload to multiples of 4k Marek Vasut
2013-04-21 15:52 ` [U-Boot] [PATCH V2 2/6] nand: Add SPL_NAND support to mxc_nand_spl Marek Vasut
2013-04-22 22:57   ` Scott Wood
2013-04-21 15:52 ` [U-Boot] [PATCH V2 3/6] arm: imx: Pack u-boot.bin into uImage for SPL Marek Vasut
2013-04-21 15:52 ` [U-Boot] [PATCH 4/6] arm: mx5: Add SPL support code to MX5 Marek Vasut
2013-04-21 15:52 ` [U-Boot] [PATCH 5/6] arm: mx5: Add NAND clock handling Marek Vasut
2013-04-21 15:52 ` [U-Boot] [PATCH V2 6/6] arm: mx5: Add support for DENX M53EVK Marek Vasut
2013-04-21 17:16   ` Benoît Thébaudeau
2013-04-21 19:12     ` Marek Vasut
2013-04-21 19:46       ` Benoît Thébaudeau [this message]
2013-04-21 20:29         ` Marek Vasut
2013-04-24  7:39           ` Stefano Babic
2013-04-24 10:59             ` Benoît Thébaudeau
2013-04-25  7:31               ` Stefano Babic
2013-04-25  8:38                 ` Stefan Roese
2013-04-25 12:31                   ` Stefano Babic
2013-04-25 12:38                   ` Marek Vasut
2013-04-25 12:48                     ` Stefan Roese
2013-04-25 12:49                       ` Benoît Thébaudeau
2013-04-25 13:02                         ` Stefano Babic
2013-04-25 13:16                           ` Benoît Thébaudeau
2013-04-25 13:31                             ` Stefano Babic
2013-04-25 13:46                         ` Stefan Roese
2013-04-25 14:12                           ` Marek Vasut
2013-04-25 13:00                       ` Stefano Babic
2013-04-24 18:52             ` Marek Vasut
2013-04-25  7:20               ` Stefano Babic
2013-04-25 13:36                 ` Marek Vasut
2013-04-25 14:45                   ` Stefano Babic
2013-04-25 14:54                     ` Marek Vasut
2013-04-24 19:04   ` Fabio Estevam
2013-04-24 21:32     ` Marek Vasut
2013-04-24 21:44       ` Otavio Salvador
2013-04-25  0:55       ` Fabio Estevam
2013-04-25 20:12         ` Marek Vasut
2013-05-05 15:59 ` [U-Boot] [PATCH V2 1/6] imx: Align the imximage header and payload to multiples of 4k Stefano Babic

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=1643889946.6492.1366573601954.JavaMail.root@advansee.com \
    --to=benoit.thebaudeau@advansee.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