oweals/u-boot.git
16 years agoppc4xx: Add static support for 44x IBM SDRAM Controller
Adam Graham [Wed, 8 Oct 2008 17:13:14 +0000 (10:13 -0700)]
ppc4xx: Add static support for 44x IBM SDRAM Controller

This patch add the capability to configure a PPC440 based IBM SDRAM
Controller with static, compiled-in, values. PPC440 memory subsystem
includes a Memory Queue core.

Signed-off-by: Adam Graham <agraham@amcc.com>
Signed-off-by: Victor Gallardo <vgallardo@amcc.com>
Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: Add AMCC Arches board support (dual 460GT)
Adam Graham [Wed, 8 Oct 2008 17:12:53 +0000 (10:12 -0700)]
ppc4xx: Add AMCC Arches board support (dual 460GT)

The Arches Evaluation board is based on the AMCC 460GT SoC chip.
This board is a dual processor board with each processor providing
independent resources for Rapid IO, Gigabit Ethernet, and serial
communications. Each 460GT has it's own 512MB DDR2 memory, 32MB NOR
FLASH, UART, EEPROM and temperature sensor, along with a shared debug
port. The two 460GT's will communicate with each other via shared
memory, Gigabit Ethernet and x1 PCI-Express.

Signed-off-by: Adam Graham <agraham@amcc.com>
Signed-off-by: Victor Gallardo <vgallardo@amcc.com>
Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoMerge branch 'master' of /home/stefan/git/u-boot/u-boot
Stefan Roese [Tue, 21 Oct 2008 09:43:08 +0000 (11:43 +0200)]
Merge branch 'master' of /home/stefan/git/u-boot/u-boot

16 years agoMerge 'next' branch
Wolfgang Denk [Sat, 18 Oct 2008 19:59:44 +0000 (21:59 +0200)]
Merge 'next' branch

Conflicts:

board/freescale/mpc8536ds/mpc8536ds.c
include/configs/mgcoge.h

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agomgcoge: add redundant environment sector
Heiko Schocher [Fri, 17 Oct 2008 16:24:06 +0000 (18:24 +0200)]
mgcoge: add redundant environment sector

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agomgsuvd: update size of environment
Heiko Schocher [Fri, 17 Oct 2008 16:23:27 +0000 (18:23 +0200)]
mgsuvd: update size of environment

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agoEnabled the Freescale SGMII riser card on 8536DS
Jason Jin [Fri, 10 Oct 2008 03:41:00 +0000 (11:41 +0800)]
Enabled the Freescale SGMII riser card on 8536DS

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
16 years agoEnabled the Freescale SGMII riser card on 8572DS
Liu Yu [Fri, 10 Oct 2008 03:40:59 +0000 (11:40 +0800)]
Enabled the Freescale SGMII riser card on 8572DS

This patch based on Andy's work.
Including command 'pixis_set_sgmii' support.

Signed-off-by: Liu Yu <yu.liu@freescale.com>
16 years agoMake pixis_set_sgmii more general to support MPC85xx boards.
Liu Yu [Fri, 10 Oct 2008 03:40:58 +0000 (11:40 +0800)]
Make pixis_set_sgmii more general to support MPC85xx boards.

The pixis sgmii command depend on the FPGA support on the board, some 85xx
boards support SGMII riser card but did not support this command, define
CONFIG_PIXIS_SGMII_CMD for those boards which support the sgmii command.

Not like 8544, 8572 has 4 eTsec so that the other two's pixis bits
are not supported by 8544. Therefor, define PIXIS_VSPEED2_MASK and
PIXIS_VCFGEN1_MASK in header file for both boards.

Signed-off-by: Liu Yu <yu.liu@freescale.com>
16 years agoAdd cpu/8xxx to TAGS_SUBDIRS
Ed Swarthout [Thu, 9 Oct 2008 04:38:02 +0000 (23:38 -0500)]
Add cpu/8xxx to TAGS_SUBDIRS

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
16 years agofsl_law clear enable before changing.
Ed Swarthout [Thu, 9 Oct 2008 06:25:55 +0000 (01:25 -0500)]
fsl_law clear enable before changing.

Debug sessions may have left enabled laws.
Changing lawbar with an unkown enabled tgtid could cause problems.

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
16 years agompc8572 additional end-point mode
Ed Swarthout [Thu, 9 Oct 2008 05:29:27 +0000 (00:29 -0500)]
mpc8572 additional end-point mode

mpc8572 supports all pcie controllers as end-points with cfg_host_agent=0.
Include host_agent == 0 decode for end-point determination.

This is not needed for the ds reference board since pcie3 will be a host
in order to connect to the uli chip.  Include it here as a reference for
other mpc8572 boards.

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
16 years ago85xx if NUM_CPUS>1, print cpu number
Ed Swarthout [Thu, 9 Oct 2008 04:37:59 +0000 (23:37 -0500)]
85xx if NUM_CPUS>1, print cpu number

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
16 years agopixis do not print long help if not configured
Ed Swarthout [Thu, 9 Oct 2008 04:38:01 +0000 (23:38 -0500)]
pixis do not print long help if not configured

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
16 years agoHave u-boot pass stashing parameters into device tree
Andy Fleming [Tue, 7 Oct 2008 13:09:50 +0000 (08:09 -0500)]
Have u-boot pass stashing parameters into device tree

Some cores don't support ethernet stashing at all, and some
instances have errata.  Adds 3 properties to gianfar nodes
which support stashing.  For now, just add this support to
85xx SoCs.

Signed-off-by: Andy Fleming <afleming@freescale.com>
16 years agoAdd DDR options setting on MPC8641HPCN board
Haiying Wang [Fri, 3 Oct 2008 16:37:57 +0000 (12:37 -0400)]
Add DDR options setting on MPC8641HPCN board

* Add board specific parameter table to choose correct cpo, clk_adjust,
write_data_delay based on board ddr frequency and n_ranks.

* Set odt_rd_cfg and odt_wr_cfg based on the dimm# and CS#.

Signed-off-by: James Yang <James.Yang@freescale.com>
Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
16 years agoAdd ddr interleaving suppport for MPC8572DS board
Haiying Wang [Fri, 3 Oct 2008 16:37:41 +0000 (12:37 -0400)]
Add ddr interleaving suppport for MPC8572DS board

* Add board specific parameter table to choose correct cpo, clk_adjust,
write_data_delay, 2T based on board ddr frequency and n_ranks.

* Set odt_rd_cfg and odt_wr_cfg based on the dimm# and CS#.

* Set memory controller interleaving mode to bank interleaving, and disable
bank(chip select) interleaving mode by default, because the default on-board
DDR DIMMs are 2x512MB single-rank.

* Change CONFIG_ICS307_REFCLK_HZ from 33333333 to 33333000.

Signed-off-by: James Yang <James.Yang@freescale.com>
Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
16 years agoAdd debug information for DDR controller registers
Haiying Wang [Fri, 3 Oct 2008 16:37:26 +0000 (12:37 -0400)]
Add debug information for DDR controller registers

Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
16 years agoCheck DDR interleaving mode
Haiying Wang [Fri, 3 Oct 2008 16:37:10 +0000 (12:37 -0400)]
Check DDR interleaving mode

* Check DDR interleaving mode from environment by reading memctl_intlv_ctl and
ba_intlv_ctl.
* Print DDR interleaving mode information
* Add doc/README.fsl-ddr to describe the interleaving setting

Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
16 years agoPass dimm parameters to populate populate controller options
Haiying Wang [Fri, 3 Oct 2008 16:36:55 +0000 (12:36 -0400)]
Pass dimm parameters to populate populate controller options

Because some dimm parameters like n_ranks needs to be used with the board
frequency to choose the board parameters like clk_adjust etc. in the
board_specific_paramesters table of the board ddr file, we need to pass
the dimm parameters to the board file.

* move ddr dimm parameters header file from /cpu to /include directory.
* add ddr dimm parameters to populate board specific options.
* Fix fsl_ddr_board_options() for all the 8xxx boards which call this function.

Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
16 years agoMake DDR interleaving mode work correctly
Haiying Wang [Fri, 3 Oct 2008 16:36:39 +0000 (12:36 -0400)]
Make DDR interleaving mode work correctly

Fix some bugs:
  1. Correctly set intlv_ctl in cs_config.
  2. Correctly set sa, ea in cs_bnds when bank interleaving mode is enabled.
  3. Set base_address and total memory for each ddr controller in memory
     controller interleaving mode.

Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
16 years ago85xx: Enable interrupt and setexpr commands on Freescale 85xx boards
Kumar Gala [Tue, 23 Sep 2008 04:40:42 +0000 (23:40 -0500)]
85xx: Enable interrupt and setexpr commands on Freescale 85xx boards

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years ago85xx: Improve flash remapping on MPC8572DS & MPC8536DS
Kumar Gala [Mon, 22 Sep 2008 19:11:11 +0000 (14:11 -0500)]
85xx: Improve flash remapping on MPC8572DS & MPC8536DS

Changing the flash from cacheable to cache-inhibited was taking a significant
amount of time due to the fact that we were iterating over the full 256M of
flash.  Instead we can just flush the L1 d-cache and invalidate the i-cache.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years ago85xx: Export invalidate_{i,d}cache and add flush_dcache
Kumar Gala [Mon, 22 Sep 2008 19:11:10 +0000 (14:11 -0500)]
85xx: Export invalidate_{i,d}cache and add flush_dcache

Added the ability for C code to invalidate the i/d-cache's and
to flush the d-cache.  This allows us to more efficient change mappings
from cache-able to cache-inhibited.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agomgcoge, mgsuvd: extract more common code
Heiko Schocher [Fri, 17 Oct 2008 14:11:52 +0000 (16:11 +0200)]
mgcoge, mgsuvd: extract more common code

in ft_blob_update () for both boards was an unneccessary
repetition of code, which this patch moves in a common
function for this boards.

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agomgcoge, mgsuvd: use in_*/out_* accesors
Heiko Schocher [Fri, 17 Oct 2008 10:15:55 +0000 (12:15 +0200)]
mgcoge, mgsuvd: use in_*/out_* accesors

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agomgsuvd: fix compiler warning when using soft_i2c driver
Heiko Schocher [Fri, 17 Oct 2008 11:52:51 +0000 (13:52 +0200)]
mgsuvd: fix compiler warning when using soft_i2c driver

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agomgsuvd: fix coding style
Heiko Schocher [Fri, 17 Oct 2008 10:15:05 +0000 (12:15 +0200)]
mgsuvd: fix coding style

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agomgcoge: Second Flash on CS5 not on CS1
Heiko Schocher [Fri, 17 Oct 2008 10:13:30 +0000 (12:13 +0200)]
mgcoge: Second Flash on CS5 not on CS1

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agoAdded arch_lmb_reserve to allow arch specific memory regions protection
Kumar Gala [Fri, 17 Oct 2008 02:52:08 +0000 (21:52 -0500)]
Added arch_lmb_reserve to allow arch specific memory regions protection

Each architecture has different ways of determine what regions of memory
might not be valid to get overwritten when we boot.  This provides a
hook to allow them to reserve any regions they care about.  Currently
only ppc, m68k and sparc need/use this.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agomgcoge: added CONFIG_FIT to support the new u-boot image format
Heiko Schocher [Thu, 16 Oct 2008 14:32:35 +0000 (16:32 +0200)]
mgcoge: added CONFIG_FIT to support the new u-boot image format

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agorename CFG_ macros to CONFIG_SYS
Jean-Christophe PLAGNIOL-VILLARD [Thu, 16 Oct 2008 13:01:15 +0000 (15:01 +0200)]
rename CFG_ macros to CONFIG_SYS

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years ago74xx/7xx/86xx: Rename flush_data_cache to flush_dcache to match 85xx version
Kumar Gala [Mon, 13 Oct 2008 19:12:55 +0000 (14:12 -0500)]
74xx/7xx/86xx: Rename flush_data_cache to flush_dcache to match 85xx version

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoExpose command table search for sub-commands
Kumar Gala [Tue, 23 Sep 2008 15:05:02 +0000 (10:05 -0500)]
Expose command table search for sub-commands

Sub-command can benefit from using the same table and search functions
that top level commands have.  Expose this functionality by refactoring
find_cmd() and introducing find_cmd_tbl() that sub-command processing
can call.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agomgsuvd, mgcoge: added BOOTCOUNT feature.
Heiko Schocher [Wed, 15 Oct 2008 07:41:33 +0000 (09:41 +0200)]
mgsuvd, mgcoge: added BOOTCOUNT feature.

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agomgcoge, mgsuvd: added support for the IVM EEprom.
Heiko Schocher [Wed, 15 Oct 2008 07:41:00 +0000 (09:41 +0200)]
mgcoge, mgsuvd: added support for the IVM EEprom.

The EEprom contains some Manufacturerinformation,
which are read from u-boot at boot time, and saved
in same hush shell variables.

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agohush: add showvar command for hush shell.
Heiko Schocher [Wed, 15 Oct 2008 07:40:28 +0000 (09:40 +0200)]
hush: add showvar command for hush shell.

This new command shows the local variables defined in
the hush shell:

=> help showvar
showvar
    - print values of all hushshell variables
showvar name ...
    - print value of hushshell variable 'name'

Also make the set_local_var() and unset_local_var ()
no longer static, so it is possible to define local
hush shell variables at boot time. If CONFIG_HUSH_INIT_VAR
is defined, u-boot calls hush_init_var (), where
boardspecific code can define local hush shell
variables at boottime.

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agoI2C: adding new "i2c bus" Command to the I2C Subsystem.
Heiko Schocher [Wed, 15 Oct 2008 07:39:47 +0000 (09:39 +0200)]
I2C: adding new "i2c bus" Command to the I2C Subsystem.

With this Command it is possible to add new I2C Busses,
which are behind 1 .. n I2C Muxes. Details see README.

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agomgcoge, mgsuvd: add board specific I2C deblocking mechanism.
Heiko Schocher [Wed, 15 Oct 2008 07:39:08 +0000 (09:39 +0200)]
mgcoge, mgsuvd: add board specific I2C deblocking mechanism.

As documented in doc/I2C_Edge_Conditions, adding a
board specific deblocking mechanism via CFG_I2C_INIT_BOARD
for the mgcoge and mgsuvd board.

This code was originally written by Keymile in association
with Anatech and Atmel in 1998. The Code toggels the SCL
until the SCA line goes to HIGH (max. 16 times).
And after this, a start condition is sent.

This is another approach to deblock the I2C Bus. The
soft I2C driver actually sends 9 clocks with SDA High,
and then a stop at the end, to deblock the I2C Bus.

Maybe we should use the approach from Keymile as
the new standard?

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agosoft_i2c: Add CFG_I2C_INIT_BOARD option
Heiko Schocher [Wed, 15 Oct 2008 07:38:38 +0000 (09:38 +0200)]
soft_i2c: Add CFG_I2C_INIT_BOARD option

This patch adds the option for a boardspecific
I2C deblocking mechanism for the soft i2c driver.

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agomgcoge, mgsuvd: add DTT (LM75) support.
Heiko Schocher [Wed, 15 Oct 2008 07:38:07 +0000 (09:38 +0200)]
mgcoge, mgsuvd: add DTT (LM75) support.

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agolm75: Make the LM75 MULTI_BUS compatible.
Heiko Schocher [Wed, 15 Oct 2008 07:37:34 +0000 (09:37 +0200)]
lm75: Make the LM75 MULTI_BUS compatible.

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agolm75: fix Codingstyle issues.
Heiko Schocher [Wed, 15 Oct 2008 07:37:04 +0000 (09:37 +0200)]
lm75: fix Codingstyle issues.

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agomgcoge, mgsuvd: added EEprom support.
Heiko Schocher [Wed, 15 Oct 2008 07:36:33 +0000 (09:36 +0200)]
mgcoge, mgsuvd: added EEprom support.

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agomgcoge, mgsuvd: add I2C support.
Heiko Schocher [Wed, 15 Oct 2008 07:36:03 +0000 (09:36 +0200)]
mgcoge, mgsuvd: add I2C support.

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agosoft_i2c: prevent compiler warnings if driver does not use CPU Pins.
Heiko Schocher [Wed, 15 Oct 2008 07:35:26 +0000 (09:35 +0200)]
soft_i2c: prevent compiler warnings if driver does not use CPU Pins.

This patch fixes the following warnings, when using
the soft_i2c driver using no CPU pins on MPC82xx or MPC8xx
systems:

soft_i2c.c: In function 'send_reset':
soft_i2c.c:93: warning: unused variable 'immr'
soft_i2c.c: In function 'send_start':
soft_i2c.c:124: warning: unused variable 'immr'
soft_i2c.c: In function 'send_stop':
soft_i2c.c:146: warning: unused variable 'immr'
soft_i2c.c: In function 'send_ack':
soft_i2c.c:171: warning: unused variable 'immr'
soft_i2c.c: In function 'write_byte':
soft_i2c.c:196: warning: unused variable 'immr'
soft_i2c.c: In function 'read_byte':
soft_i2c.c:244: warning: unused variable 'immr'

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agoi2c: add CONFIG_I2C_MULTI_BUS for soft_i2c and mpc8260 i2c driver.
Heiko Schocher [Wed, 15 Oct 2008 07:34:45 +0000 (09:34 +0200)]
i2c: add CONFIG_I2C_MULTI_BUS for soft_i2c and mpc8260 i2c driver.

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agomgcoge: fix Coding Style issues.
Heiko Schocher [Wed, 15 Oct 2008 07:34:05 +0000 (09:34 +0200)]
mgcoge: fix Coding Style issues.

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agoI2C: add new command i2c reset.
Heiko Schocher [Wed, 15 Oct 2008 07:33:30 +0000 (09:33 +0200)]
I2C: add new command i2c reset.

If I2C Bus is blocked (see doc/I2C_Edge_Conditions),
it is not possible to get out of this, until the
complete Hardware gets a reset. This new commando
calls again i2c_init (and that calls i2c_init_board
if defined), which will deblock the I2C Bus.

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agomgsuvd, mgcoge: move this 2 boards in one dir.
Heiko Schocher [Wed, 15 Oct 2008 07:32:25 +0000 (09:32 +0200)]
mgsuvd, mgcoge: move this 2 boards in one dir.

There are some more extensions, which are for both boards
and some more boards from this manufacturer will follow soon.

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agohwmon: Add LM63 support
Dirk Eibach [Wed, 8 Oct 2008 11:44:27 +0000 (13:44 +0200)]
hwmon: Add LM63 support

This patch adds support for the National LM63 temperature
sensor with integrated fan control. It's used on the GDSys
Neo board (405EP) which will be submitted later.

Signed-off-by: Dirk Eibach <eibach@gdsys.de>
Acked-by: Stefan Roese <sr@denx.de>
16 years agoAdd Red Black Tree support
Kyungmin Park [Wed, 8 Oct 2008 02:01:17 +0000 (11:01 +0900)]
Add Red Black Tree support

Now it's used at UBI module. Of course other modules can use it.
If you want to use it, please define CONFIG_RBTREE

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
16 years agoCONFIG_EFI_PARTITION: Added support for EFI partition in cmd_ext2fs.c
richardretanubun [Mon, 6 Oct 2008 20:10:53 +0000 (16:10 -0400)]
CONFIG_EFI_PARTITION: Added support for EFI partition in cmd_ext2fs.c

Added support for CONFIG_EFI_PARTITION to ext2 commands.
Signed-off-by: Richard Retanubun <RichardRetanubun@RugggedCom.com>
16 years agoAdd support for CONFIG_EFI_PARTITION (GUID Partition Table)
richardretanubun [Fri, 26 Sep 2008 15:13:22 +0000 (11:13 -0400)]
Add support for CONFIG_EFI_PARTITION (GUID Partition Table)

The GUID (Globally Unique Identifier) Partition Table (GPT) is a part
of EFI. See http://en.wikipedia.org/wiki/GUID_Partition_Table

Based on linux/fs/partitions/efi.[ch]

Signed-off-by: Richard Retanubun <RichardRetanubun@RugggedCom.com>
16 years agoFIT: output image load address for type 'firmware', fix message while there
Bartlomiej Sieka [Wed, 1 Oct 2008 13:26:32 +0000 (15:26 +0200)]
FIT: output image load address for type 'firmware', fix message while there

Now that the auto-update feature uses the 'firmware' type for updates, it is
useful to inspect the load address of such images.

Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
16 years agoAutomatic software update from TFTP server
Bartlomiej Sieka [Wed, 1 Oct 2008 13:26:31 +0000 (15:26 +0200)]
Automatic software update from TFTP server

The auto-update feature allows to automatically download software updates
from a TFTP server and store them in Flash memory during boot. Updates are
contained in a FIT file and protected with SHA-1 checksum.

More detailed description can be found in doc/README.update.

Signed-off-by: Rafal Czubak <rcz@semihalf.com>
Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
16 years agoflash: factor out adjusting of Flash address to the end of sector
Bartlomiej Sieka [Wed, 1 Oct 2008 13:26:27 +0000 (15:26 +0200)]
flash: factor out adjusting of Flash address to the end of sector

The upcoming automatic update feature needs the ability to adjust an
address within Flash to the end of its respective sector. Factor out
this functionality to a new function flash_sect_roundb().

Signed-off-by: Rafal Czubak <rcz@semihalf.com>
Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
Signed-off-by: Stefan Roese <sr@denx.de>
16 years agonet: Make TFTP server timeout configurable
Bartlomiej Sieka [Wed, 1 Oct 2008 13:26:29 +0000 (15:26 +0200)]
net: Make TFTP server timeout configurable

There are two aspects of a TFTP transfer involving timeouts:
1. timeout waiting for initial server reply after sending RRQ
2. timeouts while transferring actual data from the server

Since the upcoming auto-update feature attempts a TFTP download during each
boot, it is undesirable to have a long delay when the TFTP server is not
available. Thus, this commit makes the server timeout (1.) configurable by two
global variables:

TftpRRQTimeoutMSecs
TftpRRQTimeoutCountMax

TftpRRQTimeoutMSecs overrides default timeout when trying to connect to a TFTP
server, TftpRRQTimeoutCountMax overrides default number of connection retries.
The total delay when trying to download a file from a non-existing TFTP server
is TftpRRQTimeoutMSecs x TftpRRQTimeoutCountMax milliseconds.

Timeouts during file transfers (2.) are unaffected.

Signed-off-by: Rafal Czubak <rcz@semihalf.com>
Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agonet: express the first argument to NetSetTimeout() in milliseconds
Bartlomiej Sieka [Wed, 1 Oct 2008 13:26:28 +0000 (15:26 +0200)]
net: express the first argument to NetSetTimeout() in milliseconds

Enforce millisecond semantics of the first argument to NetSetTimeout() --
the change is transparent for well-behaving boards (CFG_HZ == 1000 and
get_timer() countiing in milliseconds).

Rationale for this patch is to enable millisecond granularity for
network-related timeouts, which is needed for the upcoming automatic
software update feature.

Summary of changes:
- do not scale the first argument to NetSetTimeout() by CFG_HZ
- change timeout values used in the networking code to milliseconds

Signed-off-by: Rafal Czubak <rcz@semihalf.com>
Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agoAdds two more ethernet interface to 83xx
richardretanubun [Mon, 29 Sep 2008 22:28:23 +0000 (18:28 -0400)]
Adds two more ethernet interface to 83xx

Added as a convenience for other platforms that uses MPC8360 (has 8 UCC).
Six eth interface is chosen because the platform I am using combines
UCC1&2 and UCC3&4 as 1000 Eth and the other four UCCs as 10/100 Eth.

Signed-off-by: Richard Retanubun <RichardRetanubun@RugggedCom.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agoChange UEC PHY interface to RGMII on MPC8568MDS
Haiying Wang [Wed, 24 Sep 2008 16:42:12 +0000 (11:42 -0500)]
Change UEC PHY interface to RGMII on MPC8568MDS

Change UEC phy interface from GMII to RGMII on MPC8568MDS board

Because on MPC8568MDS, GMII interface is only recommended for 1000Mbps speed,
but RGMII interface can work at 10/100/1000Mbps, and RGMII interface works more stable.

Now both UEC1 and UEC2 can work properly under u-boot.

It is also in consistent with the kernel setting for 8568 UEC phy interface.

Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agoPrepare v2008.10 release: update CHANGELOG & Makefile v2008.10
Wolfgang Denk [Sat, 18 Oct 2008 19:30:31 +0000 (21:30 +0200)]
Prepare v2008.10 release: update CHANGELOG & Makefile

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agomgcoge: add redundant environment sector
Heiko Schocher [Fri, 17 Oct 2008 16:24:06 +0000 (18:24 +0200)]
mgcoge: add redundant environment sector

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agomgsuvd: update size of environment
Heiko Schocher [Fri, 17 Oct 2008 16:23:27 +0000 (18:23 +0200)]
mgsuvd: update size of environment

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years ago83xx NAND boot: wait for LTESR[CC]
Lepcha Suchit [Thu, 16 Oct 2008 18:38:00 +0000 (13:38 -0500)]
83xx NAND boot: wait for LTESR[CC]

At least some revisions of the 8313, and possibly other chips, do not
wait for all pages of the initial 4K NAND region to be loaded before
beginning execution; thus, we wait for it before branching out of the
first NAND page.

This fixes warm reset problems when booting from NAND on 8313erdb.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
16 years agoppc4xx: PPC44x MQ initialization
Yuri Tikhonov [Fri, 17 Oct 2008 10:54:18 +0000 (12:54 +0200)]
ppc4xx: PPC44x MQ initialization

Set the MQ Read Passing & MCIF Cycle limits to the recommended by AMCC
values. This fixes the occasional 440SPe hard locking issues when the 440SPe's
dedicated DMA engines are used (e.g. by the h/w accelerated RAID driver).

Previously the appropriate initialization had been made in Linux, by the
ppc440spe ADMA driver, which is wrong because modifying the MQ configuration
registers after normal operation has begun is not supported and could
have unpredictable results.

Comment from Stefan: This patch doesn't change the resulting value of the
MQ registers. It explicitly sets/clears all bits to the desired state which
better documents the resulting register value instead of relying on pre-set
default values.

Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: PPC44x MQ initialization
Stefan Roese [Fri, 17 Oct 2008 10:51:46 +0000 (12:51 +0200)]
ppc4xx: PPC44x MQ initialization

Set the MQ Read Passing & MCIF Cycle limits to the recommended by AMCC
values. This fixes the occasional 440SPe hard locking issues when the 440SPe's
dedicated DMA engines are used (e.g. by the h/w accelerated RAID driver).

Previously the appropriate initialization had been made in Linux, by the
ppc440spe ADMA driver, which is wrong because modifying the MQ configuration
registers after normal operation has begun is not supported and could
have unpredictable results.

Comment from Stefan: This patch doesn't change the resulting value of the
MQ registers. It explicitly sets/clears all bits to the desired state which
better documents the resulting register value instead of relying on pre-set
default values.

Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
Signed-off-by: Stefan Roese <sr@denx.de>
16 years ago85xx: Using proper I2C source clock divider for MPC8544
Kumar Gala [Fri, 17 Oct 2008 02:58:50 +0000 (21:58 -0500)]
85xx: Using proper I2C source clock divider for MPC8544

The MPC8544 RM incorrect shows the SEC_CFG bit in PORDEVSR2 as being
bit 26, instead it should be bit 28.  This caused in incorrect
interpretation of the i2c_clk which is the same as the SEC clk on
MPC8544.  The SEC clk is controlled by cfg_sec_freq that is reported
in PORDEVSR2.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoRevert "85xx: Using proper I2C source clock divider for MPC8544"
Kumar Gala [Fri, 17 Oct 2008 02:58:49 +0000 (21:58 -0500)]
Revert "85xx: Using proper I2C source clock divider for MPC8544"

This reverts commit dffd2446fb041f38ef034b0fcf41e51e5e489159.

The fix introduced by this patch is not correct.  The problem is
that the documentation is not correct for the MPC8544 with regards
to which bit in PORDEVSR2 is for the SEC_CFG.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoMerge branch 'master' of /home/wd/git/u-boot/master/
Wolfgang Denk [Fri, 17 Oct 2008 08:37:54 +0000 (10:37 +0200)]
Merge branch 'master' of /home/wd/git/u-boot/master/

16 years ago85xx: Fix compile warning
Kumar Gala [Wed, 15 Oct 2008 15:19:41 +0000 (10:19 -0500)]
85xx: Fix compile warning

mpc8536ds.c: In function 'is_sata_supported':
mpc8536ds.c:614: warning: unused variable 'devdisr'

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFix the function conflict in x86emu when DEBUG is on
Jason Jin [Wed, 15 Oct 2008 02:40:24 +0000 (10:40 +0800)]
Fix the function conflict in x86emu when DEBUG is on

The function parse_line() in common/main.c was exposed globally by commit
6636b62a6efc7f14e6e788788631ae7a7fca4537, Result in conflict with the same
name funciton in drivers/bios_emulator/x86emu/debug.c when define the DEBUG.
This patch fix this by renaming the function in the debug.c file.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
16 years agoCoding Style cleanup, update CHANGELOG, prepare 2008.10-rc3 v2008.10-rc3
Wolfgang Denk [Wed, 15 Oct 2008 13:50:45 +0000 (15:50 +0200)]
Coding Style cleanup, update CHANGELOG, prepare 2008.10-rc3

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc83xx
Wolfgang Denk [Wed, 15 Oct 2008 09:31:50 +0000 (11:31 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc83xx

16 years agoFix compiler warning in lib_ppc/board.c
Heiko Schocher [Wed, 15 Oct 2008 07:51:19 +0000 (09:51 +0200)]
Fix compiler warning in lib_ppc/board.c

Fix compiler warning introduced by commit 0f8cbc18

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agompc83xx: wait till UPM completes the write to array
Selvamuthukumar [Thu, 9 Oct 2008 04:59:14 +0000 (10:29 +0530)]
mpc83xx: wait till UPM completes the write to array

Reference manual states that MxMR[MAD] increment is the indication
of write to UPM array is complete. Honour that. Also, make the dummy
write explicit.

also fix the comment.

Signed-off-by: Selvamuthukumar <selva.muthukumar@e-coninfotech.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
16 years agoRemove unwanted ';' at end of define.
Selvamuthukumar [Wed, 8 Oct 2008 23:12:20 +0000 (18:12 -0500)]
Remove unwanted ';' at end of define.

Currently this is not creating any problem. But it will result
in compilation error when used as below.

printf("CFG_SDRAM_CFG2 - %08x\n", CFG_SDRAM_CFG2);

Signed-off-by: Selvamuthukumar <selva.muthukumar@e-coninfotech.com>
continuation of the theme based on git grep "^#define CFG_.*;$" include/

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
16 years agoARM DaVinci: Add maintainer information for SFFSDR board.
Hugo Villeneuve [Mon, 6 Oct 2008 14:53:59 +0000 (10:53 -0400)]
ARM DaVinci: Add maintainer information for SFFSDR board.

Signed-off-by: Hugo Villeneuve <hugo.villeneuve@lyrtech.com>
16 years agoapi: fix type mismatch
Matthias Fuchs [Sat, 4 Oct 2008 17:26:16 +0000 (19:26 +0200)]
api: fix type mismatch

This patch fixes a type mismatch and thus removes a compiler
warning when compiling with CONFIG_API on powerpc.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agocmd_i2c: Fix help for CONFIG_I2C_CMD_TREE && !CONFIG_I2C_MULTI_BUS
Peter Tyser [Wed, 1 Oct 2008 17:25:04 +0000 (12:25 -0500)]
cmd_i2c: Fix help for CONFIG_I2C_CMD_TREE && !CONFIG_I2C_MULTI_BUS

Original code displayed:
 => help i2c
 i2c i2c speed [speed] - show or set I2C bus speed
 i2c md chip address[.0, .1, .2] [# of objects] - read from I2C device
 ...

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
16 years agoUpdate CHANGELOG
Wolfgang Denk [Tue, 14 Oct 2008 20:13:41 +0000 (22:13 +0200)]
Update CHANGELOG

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoDo not init SATA when disabled on 8536DS.
Jason Jin [Fri, 10 Oct 2008 03:41:01 +0000 (11:41 +0800)]
Do not init SATA when disabled on 8536DS.

SGMII and SATA share the serdes on MPC8536 CPU, When SATA disabled and the
driver still try to access the SATA registers, the cpu will hangup.
This patch try to fix this by reading the serdes status before the SATA
initialize.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
Acked-by: Andy Fleming <afleming@freescale.com>
16 years agofsl_diu: fix alignment error that caused malloc corruption
Nikita V. Youshchenko [Thu, 2 Oct 2008 20:03:55 +0000 (00:03 +0400)]
fsl_diu: fix alignment error that caused malloc corruption

When aligning malloc()ed screen_base, invalid offset was added.
This not only caused misaligned result (which did not cause hardware
misbehaviour), but - worse - caused screen_base + smem_len to
be out of malloc()ed space, which in turn caused breakage of
futher malloc()/free() operation.

This patch fixes screen_base alignment.

Also this patch makes memset() that cleans framebuffer to be executed
on first initialization of diu, not only on re-initialization. It looks
correct to clean the framebuffer instead of displaying random garbage;
I believe that was disabled only because that memset caused breakage
of malloc/free described above - which no longer happens with the fix
described above.

Signed-off-by: Nikita V. Youshchenko <yoush@debian.org>
16 years agoapi: Fix building with CONFIG_API
Matthias Fuchs [Wed, 24 Sep 2008 08:29:37 +0000 (10:29 +0200)]
api: Fix building with CONFIG_API

This patch fixes building with CONFIG_API and CONFIG_USB_STORAGE.

USB_MAX_STOR_DEV is defined in include/usb.h, but
needed in api/api_storage.c.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agoRemove unused CFG_EEPROM_PAGE_WRITE_ENABLE references
Peter Tyser [Tue, 23 Sep 2008 17:39:40 +0000 (12:39 -0500)]
Remove unused CFG_EEPROM_PAGE_WRITE_ENABLE references

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
16 years agoRemove CFG_EEPROM_PAGE* dependencies for temperature sensors
Peter Tyser [Tue, 23 Sep 2008 17:38:42 +0000 (12:38 -0500)]
Remove CFG_EEPROM_PAGE* dependencies for temperature sensors

The checks for CFG_EEPROM_PAGE_WRITE_ENABLE and
CFG_EEPROM_PAGE_WRITE_BITS in various temperature
sensor drivers are not necessary

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
16 years agocmd_spi: remove broken signed casting for display
Mike Frysinger [Tue, 14 Oct 2008 11:04:38 +0000 (07:04 -0400)]
cmd_spi: remove broken signed casting for display

Since we're working with unsigned data, you can't apply a signed pointer
cast and then attempt to print the result.  Otherwise you get wrong output
when the sign bit is set like "0xFF" incorrectly extended to "0xFFFFFFFF".

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
16 years agostrings cmd: drop old CONFIG_CFG_STRINGS define
Mike Frysinger [Tue, 14 Oct 2008 11:05:24 +0000 (07:05 -0400)]
strings cmd: drop old CONFIG_CFG_STRINGS define

We don't need CONFIG_CFG_STRINGS anymore now that we have the define
CONFIG_CMD_STRINGS and Makefile control.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
16 years agoFix the NAND size overflow issue.
Jason Jin [Fri, 19 Sep 2008 09:32:49 +0000 (17:32 +0800)]
Fix the NAND size overflow issue.

When the total size of all NAND devices exceeds 4 GiB, the size  will
overflow. This patch tries to fix this.

Note that we still have a problem when a single NAND device is bigger
than 4 GiB: then the overflow would actually happen earlier, i. e.
when storing the size in nand_info[].size, as nand_info[].size is an
"u_int32_t".

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoMerge branch 'master' of git://git.denx.de/u-boot-net
Wolfgang Denk [Tue, 14 Oct 2008 11:07:43 +0000 (13:07 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-net

16 years agoMerge branch 'master' of git://git.denx.de/u-boot-sh
Wolfgang Denk [Tue, 14 Oct 2008 10:59:35 +0000 (12:59 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-sh

16 years agoAX88180: new gigabit network driver
Louis Su [Wed, 9 Jul 2008 03:01:37 +0000 (11:01 +0800)]
AX88180: new gigabit network driver

Signed-off-by: Louis Su <louis@asix.com.tw>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agoenable 10/100M at VSC8601 at tsec driver
Andre Schwarz [Tue, 19 Aug 2008 14:07:03 +0000 (16:07 +0200)]
enable 10/100M at VSC8601 at tsec driver

Currently VSC8601 doesn't link with 10/100M partners if the
EEPROM/Strapping is not set up.
Setting the auto-neg register fixes this.

Signed-off-by: Andre Schwarz <andre.schwarz@matrix-vision.de>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agonet: ne2000: Divided a function of NE2000 driver
Nobuhiro Iwamatsu [Tue, 30 Sep 2008 06:02:53 +0000 (15:02 +0900)]
net: ne2000: Divided a function of NE2000 driver

get_prom function was used __attriute__ , but it is not enable.
ax88796.o does not do link besides ne2000.o. When ld is carried
out, get_prom function of ax88796.c is ignored.
This problem is a thing by specifications of ld.
I checked and test this patch on SuperH and MIPS.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agosh: rsk7203: Add smc911x driver support to board config file
Nobuhiro Iwamatsu [Tue, 14 Oct 2008 02:10:59 +0000 (11:10 +0900)]
sh: rsk7203: Add smc911x driver support to board config file

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
16 years agosh: Fix cannot execute a stand-alone application
Nobuhiro Iwamatsu [Thu, 9 Oct 2008 04:54:33 +0000 (13:54 +0900)]
sh: Fix cannot execute a stand-alone application

Address calculated in EXPORT_FUNC in SuperH was wrong, I revised it.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
16 years agofsl_pci_init do not scan bus when configured as an end-point
Ed Swarthout [Thu, 9 Oct 2008 04:38:00 +0000 (23:38 -0500)]
fsl_pci_init do not scan bus when configured as an end-point

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Acked-by: Andy Fleming <afleming@freescale.com>
16 years agoARM DaVinci: Remove redundant setting of GD_FLG_RELOC for sffsdr board.
Hugo Villeneuve [Tue, 16 Sep 2008 21:07:53 +0000 (17:07 -0400)]
ARM DaVinci: Remove redundant setting of GD_FLG_RELOC for sffsdr board.

This is no longer necessary now that the GD_FLG_RELOC flag is set for
all ARM boards.

Signed-off-by: Hugo Villeneuve <hugo.villeneuve@lyrtech.com>
16 years agoFix lzma uncompress call (image_start wrongly used instead image_len)
Luigi 'Comio' Mantellini [Sat, 13 Sep 2008 08:04:32 +0000 (10:04 +0200)]
Fix lzma uncompress call (image_start wrongly used instead image_len)

Signed-off-by: Luigi 'Comio' Mantellini <luigi.mantellini@idf-hit.com>
16 years agoMerge branch 'master' of git://git.denx.de/u-boot-cfi-flash
Wolfgang Denk [Mon, 13 Oct 2008 12:18:38 +0000 (14:18 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-cfi-flash