From mboxrd@z Thu Jan 1 00:00:00 1970 From: stefano babic Date: Thu, 09 Aug 2012 22:05:25 +0200 Subject: [U-Boot] [PATCH V3 1/3] imx-common/cmd_resetmode.c: add imx resetmode command In-Reply-To: <502405E9.7010207@boundarydevices.com> References: <1344475594-10630-1-git-send-email-troy.kisky@boundarydevices.com> <502364FD.6020408@denx.de> <502405E9.7010207@boundarydevices.com> Message-ID: <50241805.8030404@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 =====================================================================