oweals/u-boot.git
14 years agoMerge branch 'master' of git://git.denx.de/u-boot-imx
Wolfgang Denk [Fri, 21 May 2010 20:22:23 +0000 (22:22 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-imx

14 years agoFix "par[t]ition" typo.
Wolfgang Denk [Tue, 17 Nov 2009 20:27:39 +0000 (21:27 +0100)]
Fix "par[t]ition" typo.

Signed-off-by: Wolfgang Denk <wd@denx.de>
14 years agoMX31: Added support for the Casio COM57H5M10XRC to QONG
Stefano Babic [Thu, 13 May 2010 08:26:40 +0000 (10:26 +0200)]
MX31: Added support for the Casio COM57H5M10XRC to QONG

The patch adds setup to connect a CASIO COM57H5M10XRC
(640x480 TFT display) to the QONG module.

Signed-off-by: Stefano Babic <sbabic@denx.de>
14 years agofsl_diu_fb.c: fix build warnings
Wolfgang Denk [Mon, 17 May 2010 21:34:18 +0000 (23:34 +0200)]
fsl_diu_fb.c: fix build warnings

Commit 15351855 "fsl-diu: Using I/O accessor to CCSR space" caused a
number of "passing argument 2 of 'out_be32' makes integer from pointer
without a cast" warnings; fix these.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Dave Liu <daveliu@freescale.com>
Cc: Jerry Huang <Chang-Ming.Huang@freescale.com>
Cc: Kumar Gala <galak@kernel.crashing.org>
14 years agoAvoid use of divides in print_size
Nick Thompson [Tue, 11 May 2010 10:29:52 +0000 (11:29 +0100)]
Avoid use of divides in print_size

Modification of print_size to avoid use of divides and especially
long long divides. Keep the binary scale factor in terms of bit
shifts instead. This should be faster, since the previous code
gave the compiler no clues that the divides where always powers
of two, preventing optimisation.

Signed-off-by: Nick Thompson <nick.thompson@ge.com>
Acked-by: Timur Tabi <timur@freescale.com>
14 years agolan91c96, smc911x: remove useless free(ptr) calls on NULL ptr
Serge Ziryukin [Mon, 10 May 2010 14:40:49 +0000 (17:40 +0300)]
lan91c96, smc911x: remove useless free(ptr) calls on NULL ptr

Signed-off-by: Serge Ziryukin <ftrvxmtrx@gmail.com>
14 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc83xx
Wolfgang Denk [Mon, 17 May 2010 21:16:08 +0000 (23:16 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc83xx

14 years agoMerge branch 'master' of git://git.denx.de/u-boot-ppc4xx
Wolfgang Denk [Mon, 17 May 2010 21:14:41 +0000 (23:14 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-ppc4xx

14 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc85xx
Wolfgang Denk [Mon, 17 May 2010 21:11:21 +0000 (23:11 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx

14 years agoFix SICRL setting in SIMPC8313
Ron Madrid [Fri, 14 May 2010 23:27:48 +0000 (16:27 -0700)]
Fix SICRL setting in SIMPC8313

This patch sets the SICRL_LBC bits in SICRL to change the function of the
associated pins to GPIO functionality.

Signed-off-by: Ron Madrid <ron_madrid@sbcglobal.net>
14 years agompc83xx: fix NAND bootstrap too big error
Kim Phillips [Fri, 14 May 2010 18:18:54 +0000 (13:18 -0500)]
mpc83xx: fix NAND bootstrap too big error

commit 167cdad1372917bc11c636c359aad02625291fa9 "SERIAL: Enable
port-mapped access" inadvertently broke 83xx nand boards by
converting NS16550_init to use io accessors, which expanded
the size of the generated code.

this patch fixes the problem by removing icache functions from
the nand builds, which somewhat follows commit
1a2e203b31d33fb720f2cf1033b241ad36ab405a "mpc83xx: turn on icache
in core initialization to improve u-boot boot time"

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
14 years agoRemoval of checkboard from spl bootstrap build for SIMPC8313
Ron Madrid [Mon, 10 May 2010 22:23:20 +0000 (15:23 -0700)]
Removal of checkboard from spl bootstrap build for SIMPC8313

This patch removes the checkboard function from the build of
the 4k bootstrap section for the SIMPC8313 as it is not needed
in the spl build.  This will allow > 100 bytes of extra room
for other uses.

Signed-off-by: Ron Madrid <ron_madrid@sbcglobal.net>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
14 years agoppc4xx: Fix building PLU405 board
Matthias Fuchs [Tue, 11 May 2010 07:54:00 +0000 (09:54 +0200)]
ppc4xx: Fix building PLU405 board

Due to some overlapping sections it's time to update TEXT_BASE
for this board.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu>
Signed-off-by: Stefan Roese <sr@denx.de>
14 years agoMakefile: fix out-of-tree building of "u-boot.img" target
Wolfgang Denk [Sat, 15 May 2010 19:23:51 +0000 (21:23 +0200)]
Makefile: fix out-of-tree building of "u-boot.img" target

Signed-off-by: Wolfgang Denk <wd@denx.de>
14 years agoMVBLM7, MVSMR: fix Makefile (cleanup bootscript.img)
Wolfgang Denk [Sat, 15 May 2010 18:22:21 +0000 (20:22 +0200)]
MVBLM7, MVSMR: fix Makefile (cleanup bootscript.img)

Fix MVBLM7 and MVSMR Makefiles for correct out-of-tree building
(create "bootscript.img" in build directory instead of source
directory) and cleanup (remove "bootscript.img" when cleaning up).

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Andre Schwarz <andre.schwarz@matrix-vision.de>
14 years agoARM: add __aeabi_unwind_cpp_pr0() function to avoid linker complaints
Wolfgang Denk [Mon, 10 May 2010 21:08:02 +0000 (23:08 +0200)]
ARM: add __aeabi_unwind_cpp_pr0() function to avoid linker complaints

Signed-off-by: Wolfgang Denk <wd@denx.de>
Tested-by: Thomas Weber <weber@corscience.de>
14 years agodrivers/mmc/fsl_esdhc.c: fix compiler warnings
Wolfgang Denk [Sun, 9 May 2010 21:52:59 +0000 (23:52 +0200)]
drivers/mmc/fsl_esdhc.c: fix compiler warnings

Commit 77c1458d caused the following compiler warnings:

fsl_esdhc.c: In function 'esdhc_pio_read_write':
fsl_esdhc.c:142: warning: assignment discards qualifiers from pointer target type
fsl_esdhc.c: In function 'esdhc_setup_data':
fsl_esdhc.c:169: warning: unused variable 'wml_value'
fsl_esdhc.c: In function 'esdhc_pio_read_write':
fsl_esdhc.c:164: warning: control reaches end of non-void function

Fix these.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Dipen Dudhat <dipen.dudhat@freescale.com>
Cc: Andy Fleming <afleming@freescale.com>
14 years agoEnabled support for Rev 1.3 SPD for DDR2 DIMMs
York Sun [Fri, 7 May 2010 14:12:01 +0000 (09:12 -0500)]
Enabled support for Rev 1.3 SPD for DDR2 DIMMs

SPD has minor change from Rev 1.2 to 1.3. This patch enables Rev 1.3.
The difference has ben examined and the code is compatible.
Speed bins is not verified on hardware for CL7 at this moment.

This patch also enables SPD Rev 1.x where x is up to "F". According to SPD
spec, the lower nibble is optionally used to determine which additinal bytes
or attribute bits have been defined. Software can safely use defaults. However,
the upper nibble should always be checked.

Signed-off-by: York Sun <yorksun@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
14 years ago85xx/fsl-sata: Use is_serdes_configured() to determine if SATA is enabled
Kumar Gala [Tue, 20 Apr 2010 15:21:25 +0000 (10:21 -0500)]
85xx/fsl-sata: Use is_serdes_configured() to determine if SATA is enabled

On the MPC85xx platform if we have SATA its connected on SERDES.
Determing if SATA is enabled via sata_initialize should not be board
specific and thus we move it out of the MPC8536DS board code.

Additionally, now that we have is_serdes_configured() we can determine
if the given SATA port is enabled and error out if its not in the
driver.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
14 years ago85xx/mpc8536ds: Use is_serdes_configured() to determine of PCIe enabled
Kumar Gala [Tue, 20 Apr 2010 15:21:12 +0000 (10:21 -0500)]
85xx/mpc8536ds: Use is_serdes_configured() to determine of PCIe enabled

The new is_serdes_configured covers a broader range of devices than the
PCI specific code.  Use it instead as we convert away from the
is_fsl_pci_cfg() code.

Additionally move to setting LAWs for PCI based on if its configured.
Also updated PCI FDT fixup code to remove PCI controllers from dtb if
they are configured.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
14 years ago85xx: Add is_serdes_configured() support to MPC8536 SERDES
Kumar Gala [Tue, 20 Apr 2010 15:20:33 +0000 (10:20 -0500)]
85xx: Add is_serdes_configured() support to MPC8536 SERDES

Add the ability to determine if a given IP block connected on SERDES is
configured.  This is useful for things like PCIe and SRIO since they are
only ever connected on SERDES.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
14 years agofsl-diu: Using I/O accessor to CCSR space
Jerry Huang [Thu, 8 Apr 2010 07:56:07 +0000 (15:56 +0800)]
fsl-diu: Using I/O accessor to CCSR space

Using PPC I/O accessor to DIU I/O space instead of directly
read/write. It will prevent the dozen of compiler order issue
and PPC hardware order issue for accessing I/O space.

Using the toolchain(tc-fsl-x86lnx-e500-dp-4.3.74-2.i386.rpm)
can show up the order issue of DIU driver.

Signed-off-by: Dave Liu <daveliu@freescale.com>
Signed-off-by: Jerry Huang <Chang-Ming.Huang@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
14 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc83xx
Wolfgang Denk [Sat, 8 May 2010 23:16:51 +0000 (01:16 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc83xx

14 years agompc83xx/mvBLM7: add usb commands and cleanup.
Andre Schwarz [Mon, 3 May 2010 11:22:31 +0000 (13:22 +0200)]
mpc83xx/mvBLM7: add usb commands and cleanup.

Add USB commands.
Rename autoscript to bootscript.
Add automatic bootscript image generation to makefile.

Signed-off-by: Andre Schwarz <andre.schwarz@matrix-vision.de>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
14 years agompc83xx: Add UPMA configuration to SIMPC8313
Ron Madrid [Wed, 28 Apr 2010 23:04:43 +0000 (16:04 -0700)]
mpc83xx: Add UPMA configuration to SIMPC8313

Added UPM array table, upmconfig, and Local Bus configuration support for SIMPC8313

Signed-off-by: Ron Madrid <ron_madrid@sbcglobal.net>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
14 years agoserial: punt unused serial_addr()
Mike Frysinger [Wed, 5 May 2010 08:32:43 +0000 (04:32 -0400)]
serial: punt unused serial_addr()

Only one file apparently defines this function, and it merely stubs
it out. So if no one is defining/calling it, punt it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agoupdate include/asm/ gitignore after move
Mike Frysinger [Tue, 27 Apr 2010 18:15:34 +0000 (14:15 -0400)]
update include/asm/ gitignore after move

With the cpu include paths moved, the gitignore paths need updating.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Tested-by: Tom Rix <tom@bumblecow.com>
14 years agoFixup native builds on powerpc
Kumar Gala [Wed, 28 Apr 2010 07:52:02 +0000 (02:52 -0500)]
Fixup native builds on powerpc

When we changed ARCH from ppc to powerpc we need to treat HOSTARCH the
same way.  We use HOSTARCH == ARCH to determine if a build is native.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
14 years agocmd_usb.c: show cmd usage if no args given
Serge Ziryukin [Sun, 25 Apr 2010 18:32:36 +0000 (21:32 +0300)]
cmd_usb.c: show cmd usage if no args given

Signed-off-by: Serge Ziryukin <ftrvxmtrx@gmail.com>
14 years agopowerpc: Consolidate bootcount_{store|load} for PowerPC
Stefan Roese [Wed, 28 Apr 2010 08:47:36 +0000 (10:47 +0200)]
powerpc: Consolidate bootcount_{store|load} for PowerPC

This patch consolidates bootcount_{store|load} for PowerPC by
implementing a common version in arch/powerpc/lib/bootcount.c. This
code is now used by all PowerPC variants that currently have these
functions implemented.

The functions now use the proper IO-accessor functions to read/write the
values.

This code also supports two different bootcount versions:

a) Use 2 separate words (2 * 32bit) to store the bootcounter
b) Use only 1 word (2 * 16bit) to store the bootcounter

Version b) was already used by MPC5xxx.

Signed-off-by: Stefan Roese <sr@denx.de>
Acked-by: Detlev Zundel <dzu@denx.de>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
          for 83xx parts
Cc: Michael Zaidman <michael.zaidman@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Kim Phillips <kim.phillips@freescale.com>
Cc: Anatolij Gustschin <agust@denx.de>
14 years agoMerge branch 'master' of git://git.denx.de/u-boot-i2c
Wolfgang Denk [Thu, 6 May 2010 21:21:00 +0000 (23:21 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-i2c

14 years agodrivers/*/Makefile: fix conditional compile rule.
Ender.Dai [Thu, 22 Apr 2010 07:24:25 +0000 (15:24 +0800)]
drivers/*/Makefile: fix conditional compile rule.

Fix conditional compile rule for twl4030.c and videomodes.c.

Signed-off-by: Ender.Dai <ender.dai@gmail.com>
14 years agoMove test for unnecessary memmove to memmove_wd()
Larry Johnson [Tue, 20 Apr 2010 12:09:43 +0000 (08:09 -0400)]
Move test for unnecessary memmove to memmove_wd()

Signed-off-by: Larry Johnson <lrj@acm.org>
14 years agocompiler.h: add uint typedef
Mike Frysinger [Tue, 20 Apr 2010 09:49:30 +0000 (05:49 -0400)]
compiler.h: add uint typedef

Recent crc changes started using the "uint" type in headers that are used
on the build system.  This subsequently broke mingw targets as they do not
provide such a type.  So add this basic typedef to compiler.h so that we
do not have to worry about this breaking again in the future.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agocommand.c: Enable auto tab for the editenv command
Trübenbach, Ralf [Wed, 14 Apr 2010 09:15:16 +0000 (11:15 +0200)]
command.c: Enable auto tab for the editenv command

Enable the auto completion (with TAB) of the environment variable name
after the editenv command.

Signed-off-by: Ralf Trübenbach <ralf.truebenbach@men.de>
14 years ago74xx_7xx: CPCI750: Add ECC support on esd CPCI-CPU/750 board
Reinhard Arlt [Tue, 13 Apr 2010 07:59:09 +0000 (09:59 +0200)]
74xx_7xx: CPCI750: Add ECC support on esd CPCI-CPU/750 board

Add ECC support for DDR RAM for MV64360 on esd CPCI-CPU/750 board.

This patch also adds the "pldver" command to display the CPLD
revision.

Signed-off-by: Reinhard Arlt <reinhard.arlt@esd.eu>
Signed-off-by: Stefan Roese <sr@denx.de>
14 years agosc520: Fix minor DRAM Controller Setup bug
Graeme Russ [Fri, 23 Apr 2010 14:06:00 +0000 (00:06 +1000)]
sc520: Fix minor DRAM Controller Setup bug

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
14 years agosc520: Update to new AMD Copyright
Graeme Russ [Fri, 23 Apr 2010 14:05:59 +0000 (00:05 +1000)]
sc520: Update to new AMD Copyright

AMD recently changed the licensing of the RAM sizing code to the
GPLv2 (or at your option any later version)

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
14 years agoeNET: Implement eNET Watchdog
Graeme Russ [Fri, 23 Apr 2010 14:05:58 +0000 (00:05 +1000)]
eNET: Implement eNET Watchdog

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
14 years agoeNET: Use SC520 MMCR to reset eNET board
Graeme Russ [Fri, 23 Apr 2010 14:05:57 +0000 (00:05 +1000)]
eNET: Use SC520 MMCR to reset eNET board

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
14 years agoeNET: Add PC/AT compatibility setup function
Graeme Russ [Fri, 23 Apr 2010 14:05:56 +0000 (00:05 +1000)]
eNET: Add PC/AT compatibility setup function

The eNET uses the sc520 software timers rather than the PC/AT clones

Set all interrupts and timers up to be PC/AT compatible

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
14 years agoeNET: Add support for onboard RTL8100B (RTL8139) chips
Graeme Russ [Fri, 23 Apr 2010 14:05:55 +0000 (00:05 +1000)]
eNET: Add support for onboard RTL8100B (RTL8139) chips

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
14 years agosc520: Board Specific PCI Init
Graeme Russ [Fri, 23 Apr 2010 14:05:54 +0000 (00:05 +1000)]
sc520: Board Specific PCI Init

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
14 years agosc520: Move PCI defines to PCI include file
Graeme Russ [Fri, 23 Apr 2010 14:05:53 +0000 (00:05 +1000)]
sc520: Move PCI defines to PCI include file

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
14 years agoeNET: Fix CONFIG_SYS_HZ to be 1000
Graeme Russ [Fri, 23 Apr 2010 14:05:52 +0000 (00:05 +1000)]
eNET: Fix CONFIG_SYS_HZ to be 1000

The clock interupt has always been 1kHz as per timer_init() in
/arch/i386/cpu/sc520/sc520_timer.c

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
14 years agoeNET: Fix Flash Write
Graeme Russ [Fri, 23 Apr 2010 14:05:51 +0000 (00:05 +1000)]
eNET: Fix Flash Write

Onboard AMD Flash chip does not support buffered writes

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
14 years agosc520: Allow boards to override udelay
Graeme Russ [Fri, 23 Apr 2010 14:05:50 +0000 (00:05 +1000)]
sc520: Allow boards to override udelay

If the board has a high precision mico-second timer, it maked sense to use
it instead of the on-chip one

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
14 years agox86: Fix support for booting bzImage
Graeme Russ [Fri, 23 Apr 2010 14:05:49 +0000 (00:05 +1000)]
x86: Fix support for booting bzImage

Add support for newer (up to 2.6.33) kernels

Add zboot command which takes the address of a bzImage as its first
argument and (optionally) the size of the bzImage as the second argument
(the second argument is needed for older kernels which do not include
the bzImage size in the header)

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
14 years agox86: Provide weak PC/AT compatibility setup function
Graeme Russ [Fri, 23 Apr 2010 14:05:48 +0000 (00:05 +1000)]
x86: Provide weak PC/AT compatibility setup function

It is possibly to setup x86 boards to use non-PC/AT configurations. For
example, the sc520 is an x86 CPU with PC/AT and non-PC/AT peripherals.
This function allows the board to set itself up for maximum PC/AT
compatibility just before booting the Linux kernel (the Linux kernel
'just works' if everything is PC/AT compliant)

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
14 years agox86: Use CONFIG_SERIAL_MULTI
Graeme Russ [Fri, 23 Apr 2010 14:05:47 +0000 (00:05 +1000)]
x86: Use CONFIG_SERIAL_MULTI

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
14 years agoSERIAL: Enable port-mapped access
Graeme Russ [Fri, 23 Apr 2010 14:05:46 +0000 (00:05 +1000)]
SERIAL: Enable port-mapped access

The x86 architecture exclusively uses Port-Mapped I/O (inb/outb) to access
the 16550 UARTs. This patch mimics how Linux selects between Memory-Mapped
and Port-Mapped I/O. This allows x86 boards to use CONFIG_SERIAL_MUTLI and
drop the custom serial port driver

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
14 years agox86: Fix copying of Real-Mode code into RAM
Graeme Russ [Fri, 23 Apr 2010 14:05:45 +0000 (00:05 +1000)]
x86: Fix copying of Real-Mode code into RAM

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
14 years agox86: Pass relocation offset into Global Data
Graeme Russ [Fri, 23 Apr 2010 14:05:44 +0000 (00:05 +1000)]
x86: Pass relocation offset into Global Data

In order to locate the 16-bit BIOS code, we need to know the reloaction
offset.

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
14 years agox86: Move GDT to a safe location in RAM
Graeme Russ [Fri, 23 Apr 2010 14:05:43 +0000 (00:05 +1000)]
x86: Move GDT to a safe location in RAM

Currently, the GDT is either located in FLASH or in the non-relocated
U-Boot image in RAM. Both of these locations are unsafe as those
locations can be erased during a U-Boot update. Move the GDT into the
highest available memory location and relocate U-Boot to just below it

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
14 years agox86: Add RAM bootstrap functionality
Graeme Russ [Fri, 23 Apr 2010 14:05:42 +0000 (00:05 +1000)]
x86: Add RAM bootstrap functionality

Add a parameter to the 32-bit entry to indicate if entry is from Real
Mode or not. If entry is from Real Mode, execute the destructive 'sizer'
routine to determine memory size as we are booting cold and running in
Flash. If not entering from Real Mode, we are executing a U-Boot image
from RAM and therefore the memory size is already known (and running
'sizer' will destroy the running image)

There are now two 32-bit entry points. The first is the 'in RAM' entry
point which exists at the start of the U-Boot binary image. As such,
you can load u-boot.bin in RAM and jump directly to the load address
without needing to calculate any offsets. The second entry point is
used by the real-to-protected mode switch

This patch also changes TEXT_BASE to 0x6000000 (in RAM). You can load
the resulting image at 0x6000000 and simple go 0x6000000 from the u-boot
prompt

Hopefully a later patch will completely elliminate any dependency on
TEXT_BASE like a relocatable linux kernel (perfect world)

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
14 years agox86: Split sc520 memory sizing versus reporting
Graeme Russ [Fri, 23 Apr 2010 14:05:41 +0000 (00:05 +1000)]
x86: Split sc520 memory sizing versus reporting

This patch allows the low-level assembler boot-strap to obtain the RAM
size without calling the destructive 'sizer' routine. This allows
boot-strapping from a U-Boot image loaded in RAM

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
14 years agox86: Fix sc520 memory size reporting
Graeme Russ [Fri, 23 Apr 2010 14:05:40 +0000 (00:05 +1000)]
x86: Fix sc520 memory size reporting

There is an error in how the assembler version of the sc520 memory size
reporting code works. As a result, it will only ever report at most the
size of one bank of RAM

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
14 years agox86: Fix do_go_exec()
Graeme Russ [Fri, 23 Apr 2010 14:05:39 +0000 (00:05 +1000)]
x86: Fix do_go_exec()

This was broken a long time ago by a49864593e083a5d0779fb9ca98e5a0f2053183d
which munged the NIOS and x86 do_go_exec()

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
14 years agox86: Add register dump to crash handlers
Graeme Russ [Fri, 23 Apr 2010 14:05:38 +0000 (00:05 +1000)]
x86: Add register dump to crash handlers

Shamelessly steal the Linux x86 crash handling code and shove it into
U-Boot (cool - it fits). Be sure to include suitable attribution to
Linus

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
14 years agox86: Fix MMCR Access
Graeme Russ [Fri, 23 Apr 2010 14:05:37 +0000 (00:05 +1000)]
x86: Fix MMCR Access

Change sc520 MMCR Access to use memory accessor functions

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
14 years agox86: #ifdef out getenv_IPaddr()
Graeme Russ [Fri, 23 Apr 2010 14:05:36 +0000 (00:05 +1000)]
x86: #ifdef out getenv_IPaddr()

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
14 years agox86: Add unaligned.h
Graeme Russ [Fri, 23 Apr 2010 14:05:35 +0000 (00:05 +1000)]
x86: Add unaligned.h

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
14 years agoPOST: Added ECC memory test for mpc83xx.
Michael Zaidman [Wed, 7 Apr 2010 15:30:08 +0000 (18:30 +0300)]
POST: Added ECC memory test for mpc83xx.

Signed-off-by: Michael Zaidman <michael.zaidman@gmail.com>
Fixed minor coding style issue.
Signed-off-by: Wolfgang Denk <wd@denx.de>
14 years agocmd_onenand.c: moved to standard subcommand handling
Frans Meulenbroeks [Sat, 27 Mar 2010 16:14:36 +0000 (17:14 +0100)]
cmd_onenand.c: moved to standard subcommand handling

On the fly also fixed the following things:
- write help talked about a parameter oob, but that one was not used, so
  removed it from the help message.
- the test command also allowed a force subcommand but didn't use it.
  eliminated the code.
- do_onenand made static
- do_onenand contained
int blocksize;
...
mtd = &onenand_mtd;
this = mtd->priv;
blocksize = (1 << this->erase_shift);
  As blocksize was not used the last two statements were unneeded so
  removed them.
  The first statement (mtd = ....) assigns to a global. Not sure if it
  is needed, and since I could not test this, left the line for now

Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
14 years agoppc: unused memory region too close to current stack pointer
Norbert van Bolhuis [Fri, 19 Mar 2010 14:34:25 +0000 (15:34 +0100)]
ppc: unused memory region too close to current stack pointer

This avoids a possible overwrite of the (end of) ramdisk by u-boot.
The unused memory region for ppc boot currently starts 1k below the
do_bootm->bootm_start->arch_lmb_reserve stack ptr. This isn't enough since
do_bootm->do_bootm_linux->boot_relocate_fdt calls printf which may
very well use more than 1k stack space.

Signed-off-by: Norbert van Bolhuis <nvbolhuis@aimvalley.nl>
14 years agoallow print_size to print large numbers on 32-bit systems
Timur Tabi [Tue, 13 Apr 2010 18:16:03 +0000 (13:16 -0500)]
allow print_size to print large numbers on 32-bit systems

Modify print_size() so that it can accept numbers larger than 4GB on 32-bit
systems.

Add support for display terabyte, petabyte, and exabyte sizes.  Change the
output to use International Electrotechnical Commission binary prefix standard.

Signed-off-by: Timur Tabi <timur@freescale.com>
14 years agofix print_size printing fractional gigabyte numbers on 32-bit platforms
Timur Tabi [Tue, 13 Apr 2010 18:16:02 +0000 (13:16 -0500)]
fix print_size printing fractional gigabyte numbers on 32-bit platforms

In print_size(), the math that calculates the fractional remainder of a number
used the same integer size as a physical address.  However, the "10 *" factor
of the algorithm means that a large number (e.g. 1.5GB) can overflow the
integer if we're running on a 32-bit system.  Therefore, we need to
disassociate this function from the size of a physical address.

Signed-off-by: Timur Tabi <timur@freescale.com>
14 years agoBlackfin: TWI/I2C: implement multibus support
Mike Frysinger [Wed, 5 May 2010 07:20:30 +0000 (03:20 -0400)]
Blackfin: TWI/I2C: implement multibus support

In order to do this cleanly, the register accesses have to be converted to
a C struct (base pointer), so do that in the process.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agoAdd SPI support to mx51evk board
Stefano Babic [Tue, 16 Mar 2010 16:22:21 +0000 (17:22 +0100)]
Add SPI support to mx51evk board

The patch adds SPI devices to the mx51evk board.
The MC13892 chip (PMIC) is supported.

Signed-off-by: Stefano Babic <sbabic@denx.de>
14 years agoMX: Added definition file for MC13892
Stefano Babic [Sun, 18 Apr 2010 17:27:44 +0000 (19:27 +0200)]
MX: Added definition file for MC13892

The MC13892 is a Power Controller used with processors
of the family MX.51. The file adds definitions to be used to setup
the internal registers via SPI.

Signed-off-by: Stefano Babic <sbabic@denx.de>
14 years agoSPI: added support for MX51 to mxc_spi
Stefano Babic [Sun, 4 Apr 2010 20:43:38 +0000 (22:43 +0200)]
SPI: added support for MX51 to mxc_spi

This patch add SPI support for the MX51 processor.

Signed-off-by: Stefano Babic <sbabic@denx.de>
14 years agoMX31: Add support for PMIC to the QONG module
Stefano Babic [Fri, 16 Apr 2010 15:13:54 +0000 (17:13 +0200)]
MX31: Add support for PMIC to the QONG module

Add support for the PMIC (MC13783) controller
and enables charging of the RTC battery.

Signed-off-by: Stefano Babic <sbabic@denx.de>
14 years agoMX: RTC13783 uses general function to access PMIC
Stefano Babic [Fri, 16 Apr 2010 15:11:19 +0000 (17:11 +0200)]
MX: RTC13783 uses general function to access PMIC

The RTC is part of the Freescale's PMIC controller.
Use general function to access to PMIC internal registers.

Signed-off-by: Stefano Babic <sbabic@denx.de>
Tested-by: Magnus Lilja <lilja.magnus@gmail.com>
14 years agoMX: Added Freescale Power Management Driver
Stefano Babic [Sun, 4 Apr 2010 21:08:03 +0000 (23:08 +0200)]
MX: Added Freescale Power Management Driver

The patch add supports for the Freescale's Power
Management Controller (known as Atlas) used together with i.MX31/51
processors. It was tested with a MC13783 (MX31) and
MC13892 (MX51).

Signed-off-by: Stefano Babic <sbabic@denx.de>
14 years agoi.MX31: Activate NAND support for i.MX31 Litekit board.
Magnus Lilja [Fri, 23 Apr 2010 18:30:49 +0000 (20:30 +0200)]
i.MX31: Activate NAND support for i.MX31 Litekit board.

Signed-off-by: Magnus Lilja <lilja.magnus@gmail.com>
14 years agoMX51: Fix MX51 CPU detect message
Fabio Estevam [Fri, 23 Apr 2010 13:32:01 +0000 (06:32 -0700)]
MX51: Fix MX51 CPU detect message

Fix MX51 CPU detect message.

Original string was:
CPU:   Freescale i.MX51 family 3.0V at 800 MHz

which can be misinterpreted as  3.0 Volts instead of the silicon revision.

,change it to:
CPU:   Freescale i.MX51 family rev3.0 at 800 MHz

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
14 years agoMX51evk: Removed warnings
Stefano Babic [Sun, 18 Apr 2010 18:01:01 +0000 (20:01 +0200)]
MX51evk: Removed warnings

Changes reflect modifications in the fsl_esdhc driver
(the clk_enable field war removed in the configuration structure).

Signed-off-by: Stefano Babic <sbabic@denx.de>
14 years agotx25: fix crash while booting Linux
Anatolij Gustschin [Wed, 21 Apr 2010 11:52:38 +0000 (13:52 +0200)]
tx25: fix crash while booting Linux

Currently booting Linux on TX25 board doesn't work
since there is no correct mach-id and boot parameters
setup for tx25 board. Fix it now.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: John Rigby <jcrigby@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
14 years agoconfigs: remove unused CONFIG_COMMAND_HISTORY
Kim Phillips [Wed, 14 Apr 2010 02:11:53 +0000 (21:11 -0500)]
configs: remove unused CONFIG_COMMAND_HISTORY

$ git grep CONFIG_COMMAND_HISTORY
CHANGELOG:    CONFIG_COMMAND_HISTORY
include/configs/AP1000.h:#define CONFIG_COMMAND_HISTORY 1
include/configs/keymile-common.h:#define CONFIG_COMMAND_HISTORY         1
include/configs/manroland/common.h:#define CONFIG_COMMAND_HISTORY               1
$

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Acked-by: Heiko Schocher <hs@denx.de>
14 years agomvsmr: fix link error
Anatolij Gustschin [Tue, 13 Apr 2010 12:47:32 +0000 (14:47 +0200)]
mvsmr: fix link error

MVSMR board support doesn't link since recent rework
of U-Boot directory structure. Fix it now.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: Andre Schwarz <andre.schwarz@matrix-vision.de>
Acked-by: Andre Schwarz <andre.schwarz@matrix-vision.de>
Fixed merge conflict
Signed-off-by: Wolfgang Denk <wd@denx.de>
14 years agoMerge branch 'master' of git://git.denx.de/u-boot-net
Wolfgang Denk [Tue, 4 May 2010 20:57:37 +0000 (22:57 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-net

14 years agoMerge branch 'master' of git://git.denx.de/u-boot-arm
Wolfgang Denk [Tue, 4 May 2010 20:49:15 +0000 (22:49 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-arm

14 years agoBlackfin: bfin_mac: hook up new write_hwaddr function
Mike Frysinger [Tue, 27 Apr 2010 18:15:28 +0000 (14:15 -0400)]
Blackfin: bfin_mac: hook up new write_hwaddr function

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
14 years agonet: ethoc: add write_hwaddr support
Thomas Chou [Tue, 27 Apr 2010 12:20:27 +0000 (20:20 +0800)]
net: ethoc: add write_hwaddr support

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
14 years agonet: altera_tse: add write_hwaddr support
Thomas Chou [Tue, 27 Apr 2010 12:15:10 +0000 (20:15 +0800)]
net: altera_tse: add write_hwaddr support

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
14 years agonet: fec_mxc: add write_hwaddr support
Heiko Schocher [Tue, 27 Apr 2010 05:43:52 +0000 (07:43 +0200)]
net: fec_mxc: add write_hwaddr support

tested on the magnesium board.

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
14 years agonet:kirkwood_egiga.c: MAC addresses programming using write_hwaddr
Prafulla Wadaskar [Tue, 6 Apr 2010 16:51:33 +0000 (22:21 +0530)]
net:kirkwood_egiga.c: MAC addresses programming using write_hwaddr

Added a new function kwgbe_write_hwaddr for programming egiga
controller's hardware address.
This function will be called for each egiga port being used

Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
14 years agoProgram net device MAC addresses after initializing
Ben Warren [Mon, 26 Apr 2010 18:11:46 +0000 (11:11 -0700)]
Program net device MAC addresses after initializing

Add a new function to the eth_device struct for programming a network
controller's hardware address.

After all network devices have been initialized and the proper MAC address
for each has been determined, make a device driver call to program the
address into the device.  Only device instances with valid unicast addresses
will be programmed.

Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Acked-by: Detlev Zundel <dzu@denx.de>
Tested-by: Prafulla Wadaskar <prafulla@marvell.com>
Tested-by: Heiko Schocher <hs@denx.de>
Tested-by: Thomas Chou <thomas@wytron.com.tw>
14 years agonet: add altera triple speeds ethernet mac driver
Thomas Chou [Tue, 20 Apr 2010 04:49:52 +0000 (12:49 +0800)]
net: add altera triple speeds ethernet mac driver

This driver supports the Altera triple speeds 10/100/1000 ethernet
mac.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
14 years agonet: add opencore 10/100 ethernet mac driver
Thomas Chou [Thu, 15 Apr 2010 14:32:38 +0000 (22:32 +0800)]
net: add opencore 10/100 ethernet mac driver

This patch ports the opencore 10/100 ethernet mac driver ethoc.c
from linux kernel to u-boot.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
14 years agosmc911x driver frame alignment patch
Valentin Yakovenkov [Fri, 23 Apr 2010 05:40:23 +0000 (09:40 +0400)]
smc911x driver frame alignment patch

SMSC911x chips have alignment function to allow frame payload data
(which comes after 14-bytes ethernet header) to be aligned at some
boundary when reading it from fifo (usually - 4 bytes boundary).
This is done by inserting fake zeros bytes BEFORE actual frame data when
reading from SMSC's fifo.
This function controlled by RX_CFG register. There are bits that
represents amount of fake bytes to be inserted.

Linux uses alignment of 4 bytes. Ethernet frame header is 14 bytes long,
so we need to add 2 fake bytes to get payload data aligned at 4-bytes
boundary.
Linux driver does this by adding IP_ALIGNMENT constant (defined at
skb.h) when calculating fifo data length. All network subsystem of Linux
uses this constant too when calculating different offsets.

But u-boot does not use any packet data alignment, so we don't need to
add anything when calculating fifo data length.
Moreover, driver zeros the RX_CFG register just one line up, so chip
does not insert any fake data at the beginig. So calculated data length
is always bigger by 1 word.

It seems that at almost every packet read we get an underflow condition
at fifo and possible corruption of data. Especially at continuous
transfers, such as tftp.

Just after removing this magic addition, I've got tftp transfer speed as
it aught to be at 100Mbps. It was really slow before.

It seems that fifo underflow occurs only when using byte packing on
32-bit blackfin bus (may be because of very small delay between reads).

Signed-off-by: Valentin Yakovenkov <yakovenkov@niistt.ru>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
14 years agonet: Kirkwood_egiga.c bugfixes for rx path
Prafulla Wadaskar [Tue, 6 Apr 2010 16:03:08 +0000 (21:33 +0530)]
net: Kirkwood_egiga.c bugfixes for rx path

Cosmetic changes: Few comments updated
Functionality: Rx packet frame size is programming should
be done when port is in disabled state. this is corrected

Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
14 years agofec_mxc.c: Fix MX27 FEC MAC validity check
Eric Jarrige [Thu, 15 Apr 2010 22:03:19 +0000 (00:03 +0200)]
fec_mxc.c: Fix MX27 FEC MAC validity check

Fix MX27 FEC logic to check validity of the MAC address in fuse.
Only null (empty fuse) or invalid MAC address was retrieved from mx27 fuses before this change.

Signed-off-by: Eric Jarrige <jorasse@armadeus.org>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
14 years agotsec: Wait for both RX and TX to stop
Andy Fleming [Mon, 19 Apr 2010 19:54:49 +0000 (14:54 -0500)]
tsec: Wait for both RX and TX to stop

When gracefully stopping the controller, the driver was continuing if
*either* RX or TX had stopped.  We need to wait for both, or the
controller could get into an invalid state.

Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
14 years agonet: dm9000x: use standard I/O accessors
Mike Frysinger [Wed, 14 Apr 2010 20:29:06 +0000 (16:29 -0400)]
net: dm9000x: use standard I/O accessors

The current dm9000x driver accesses its memory mapped registers directly
instead of using the standard I/O accessors.  This can cause problems on
Blackfin systems as the accesses can get out of order.  So convert the
direct volatile dereferences to use the normal in/out macros.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
14 years agompc512x_fec: Move PHY initialization from probe into init routine.
Detlev Zundel [Thu, 8 Apr 2010 09:49:59 +0000 (11:49 +0200)]
mpc512x_fec: Move PHY initialization from probe into init routine.

This saves the autonegotation delay when not using ethernet in U-Boot

Signed-off-by: Detlev Zundel <dzu@denx.de>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
14 years agofec_mxc don't use internal eeprom on MX25
John Rigby [Thu, 8 Apr 2010 05:29:40 +0000 (23:29 -0600)]
fec_mxc don't use internal eeprom on MX25

Avoid using the internal eeprom on MX25 like MX51 already does.

Signed-off-by: John Rigby <jcrigby@gmail.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
14 years agofix lockup in mcfmii/mii_discover_phy() in case communication fails
Wolfgang Wegner [Tue, 6 Apr 2010 09:13:02 +0000 (11:13 +0200)]
fix lockup in mcfmii/mii_discover_phy() in case communication fails

Signed-off-by: Wolfgang Wegner <w.wegner@astro-kom.de>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
14 years ago83xx: UEC: Added support for bitBang MII driver access to PHYs
Richard Retanubun [Wed, 17 Jun 2009 20:00:41 +0000 (16:00 -0400)]
83xx: UEC: Added support for bitBang MII driver access to PHYs

This patch enabled support for having PHYs on bitBang MII and uec MII
operating at the same time. Modeled after the MPC8360ADS implementation.

Added the ability to specify which ethernet interfaces have bitbang SMI
on the board header file.

Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
14 years ago./net/net.c - make Microsoft dns servers happy with random_port() numbers
Robin Getz [Mon, 8 Mar 2010 19:07:00 +0000 (14:07 -0500)]
./net/net.c - make Microsoft dns servers happy with random_port() numbers

For some reason, (which I can't find any documentation on), if U-Boot
gives a port number higher than 17500 to a Microsoft DNS server, the
server will reply to port 17500, and U-Boot will ignore things (since
that isn't the port it asked the DNS server to reply to).

This fixes that by ensuring the random port number is less than 17500.

Signed-off-by: Robin Getz <rgetz@blackfin.uclinux.org>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>