[U-Boot-Users] [PATCH] Motorola i.MX support (1/2)
Robert Schwebel
robert at schwebel.de
Mon Jun 21 09:53:12 CEST 2004
On Mon, Jun 21, 2004 at 08:13:45AM +0200, Steven Scholz wrote:
> How do you seperate the MX1 from the MXL? Maybe it's not neccessary
> for U-Boot. We will hardly support the BlueTooth stuff in U-Boot... On
> the other hand the MX1 got one more UART...
... which has the same register layout (well, at least that ones you
need in u-boot) as the other ones. The basic serial support in
cpu/arm920t/imx_serial.c (well, not exactly a good place for a serial
driver, but that's how it was done for the other ports) can easily be
extended to support more than two serial ports.
> BTW: Does anyone got a working BDI2000 config file for the
> MC9328MX1/L? I want to be able to burn the flash when we got the ADS
> board...
Attached. I'm not sure about the memory situation on the ADS board, our
board has 32 Bit flash.
Robert
--
Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Hornemannstraße 12, 31137 Hildesheim, Germany
Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4
-------------- next part --------------
; bdiGDB configuration for Motorola M9328MX1ADS board
; ---------------------------------------------------
;
[INIT]
;
; Initialize DragonBall MX1 ADS Rev 0.1 board when using JTAG
; so SRAM and SDRAM are downloadable
;
WM32 0x0021b000 0x2f00ac03 ;Select CLKO mux to output HCLK(BCLK)
WM32 0x0021b000 0x2f008403 ;48MHz System Clock
WM32 0x00220000 0x00008C00 ;CS0 - boot flash, 32 wait states, 8-bit
WM32 0x00220004 0x22222601
WM32 0x00220008 0x00000a00 ;CS1 - SRAM, 10 wait states, 32-bit
WM32 0x0022000c 0x11110601
WM32 0x00220020 0x00000a00 ;CS4 - External UART, 10 wait states, 8-bit
WM32 0x00220024 0x11110301
;
;Init SDRAM 16Mx16x2 IAM0 CS2 CL2
;
WM32 0x00221000 0x92120200 ;Set Precharge Command
WM32 0x08200000 0x00000000 ;Issue Precharge all Command
WM32 0x00221000 0xa2120200 ;Set AutoRefresh Command
WM32 0x08000000 0x00000000 ;Issue AutoRefresh Command
WM32 0x08000000 0x00000000
WM32 0x08000000 0x00000000
WM32 0x08000000 0x00000000
WM32 0x08000000 0x00000000
WM32 0x08000000 0x00000000
WM32 0x08000000 0x00000000
WM32 0x08000000 0x00000000
WM32 0x00221000 0xb2120200 ;Set Mode Register
WM32 0x08111800 0x00000000 ;Issue Mode Register Command, Burst Length = 8
WM32 0x00221000 0x82124200 ;Set to Normal Mode
;
[TARGET]
CPUTYPE ARM920T
CLOCK 1 ;JTAG clock
WAKEUP 750 ;because of slow rising reset line
RESET HARD 100 ;beause of heavy capacitive load on reset line
TRST PUSHPULL
ENDIAN LITTLE ;memory model (LITTLE | BIG)
BREAKMODE SOFT 0xDFFFDFFF ;SOFT or HARD, ARM / Thumb break code
;VECTOR CATCH 0x1f ;catch D_Abort, P_Abort, SWI, Undef and Reset
SIO 7 115200 ;Enable SIO via TCP port 7 at 115200
;DCC 7 ;TCP port for DCC I/O
[HOST]
IP 213.252.143.162
FORMAT BIN
LOAD MANUAL
[FLASH]
CHIPTYPE AM29F ; Flash type
CHIPSIZE 0x800000 ; The size of one flash chip in bytes
BUSWIDTH 32 ; The width of the flash memory bus in bits (8 | 16 | 32)
FORMAT BIN 0x10060000 ; Binary, to be flashed to 0x1006'0000
FILE Image ; which file to flash if no name is given to 'prog'
WORKSPACE 0x09FFF000
ERASE 0x10060000 ; Erase space for kernel
ERASE 0x10080000
ERASE 0x100A0000
ERASE 0x100C0000
ERASE 0x100E0000
ERASE 0x10100000
ERASE 0x10120000
ERASE 0x10140000
ERASE 0x10160000
ERASE 0x10180000
ERASE 0x101A0000
ERASE 0x101C0000
ERASE 0x101E0000
More information about the U-Boot
mailing list