From: stefano babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V3 1/3] imx-common/cmd_resetmode.c: add imx resetmode command
Date: Thu, 09 Aug 2012 22:05:25 +0200 [thread overview]
Message-ID: <50241805.8030404@denx.de> (raw)
In-Reply-To: <502405E9.7010207@boundarydevices.com>
Am 09/08/2012 20:48, schrieb Troy Kisky:
>> Maybe I am searching in wrong places. Where can I find the description
>> for the feature you have implemented ?
>
> The only documentations I've found are in the freescale release of u-boot.
> cpu/arm_cortexa8/mx53/generic.c
>
> void do_switch_mfgmode(void)
> {
> u32 reg;
> reg = readl(SRTC_BASE_ADDR + SRTC_LPGR);
> /* After set bit 28 of LPGR register of SRTC to 1, Set bit
> * [25:0] to specified value according to format of SBMR,
> * after trigger a watchdog reset, ROM will read Bit 28 and
> * then copy bit [25:0] of LPGR to SBMR, then ROM can enter
> * serial download mode.*/
> reg |= 0x12000000;
> writel(reg, SRTC_BASE_ADDR + SRTC_LPGR);
> /* this watchdog reset will let chip enter mfgtool download
> * mode. */
> do_reset(NULL, 0, 0, NULL);
> }
>
> U_BOOT_CMD(
> download_mode, 1, 1, do_switch_mfgmode,
> "download_mode - enter i.MX serial/usb download mode\n",
> "");
>
>
> and for mx6q by disassembling iMX6DQ_SPI_to_uSDHC3.bin
> and iMX6DQ_SPI_to_uSDHC4.bin
Well, it is sounds odd that we have to do reverse-engineering to
implement features. Can some Freescalers here point out to some docs ?
This feature is surely very useful - any hints to have more information ?
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-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
prev parent reply other threads:[~2012-08-09 20:05 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-09 1:26 [U-Boot] [PATCH V3 1/3] imx-common/cmd_resetmode.c: add imx resetmode command Troy Kisky
2012-08-09 1:26 ` [U-Boot] [PATCH V3 2/3] mx6qsabrelite: add resetmode support Troy Kisky
2012-08-09 1:26 ` [U-Boot] [PATCH V3 3/3] mx53evk: " Troy Kisky
2012-08-09 7:21 ` [U-Boot] [PATCH V3 1/3] imx-common/cmd_resetmode.c: add imx resetmode command Stefano Babic
2012-08-09 18:48 ` Troy Kisky
2012-08-09 19:29 ` Eric Nelson
2012-08-09 21:12 ` stefano babic
2012-08-09 21:49 ` Troy Kisky
2012-08-09 21:15 ` Troy Kisky
2012-08-10 1:09 ` Eric Nelson
2012-08-11 17:44 ` Stefano Babic
2012-08-09 20:05 ` stefano babic [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=50241805.8030404@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 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.