[U-Boot] [PATCH V3 1/3] imx-common/cmd_resetmode.c: add imx resetmode command
stefano babic
sbabic at denx.de
Thu Aug 9 22:05:25 CEST 2012
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
=====================================================================
More information about the U-Boot
mailing list