]> git.dujemihanovic.xyz Git - u-boot.git/log
u-boot.git
13 years agophylib: Work around bug in Teranetics PHY
Andy Fleming [Wed, 20 Apr 2011 23:41:17 +0000 (18:41 -0500)]
phylib: Work around bug in Teranetics PHY

The Teranetics PHY does not properly report the link state
for fiber connections. The new PHY code actually checked the link,
and so the FM driver would refuse to talk over a linkless PHY.

But the link may actually be up, so now we always report it as up
for fiber connections on the tn2020.

Signed-off-by: Andy Fleming <afleming@freescale.com>
13 years agopowerpc/85xx: CONFIG_ENABLE_36BIT_PHYS does not depend on CONFIG_PHYS_64BIT
Timur Tabi [Tue, 6 Sep 2011 14:36:06 +0000 (09:36 -0500)]
powerpc/85xx: CONFIG_ENABLE_36BIT_PHYS does not depend on CONFIG_PHYS_64BIT

The macro CONFIG_ENABLE_36BIT_PHYS is used to indicate that the given SOC is
capable of 36-bit physical addresses, even if such large addresses are not
used.  On two boards, this macro was enabled only when building a 36-bit
image.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/8xxx: Add support for interactive DDR programming interface
York Sun [Fri, 16 Sep 2011 20:21:35 +0000 (13:21 -0700)]
powerpc/8xxx: Add support for interactive DDR programming interface

Interactive DDR debugging provides a user interface to view and modify SPD,
DIMM parameters, board options and DDR controller registers before DDR is
initialized. With this feature, developers can fine-tune DDR for board
bringup and other debugging without frequently having to reprogram the flash.

To enable this feature, define CONFIG_FSL_DDR_INTERACTIVE in board header
file and set an environment variable to activate it. Syntax:

setenv ddr_interactive on

After reset, U-boot prompts before initializing DDR controllers
FSL DDR>

The available commands are
print      print SPD and intermediate computed data
reset      reboot machine
recompute  reload SPD and options to default and recompute regs
edit       modify spd, parameter, or option
compute    recompute registers from current next_step to end
next_step  shows current next_step
help       this message
go         program the memory controller and continue with u-boot

The first command should be "compute", which reads data from DIMM SPDs and
board options, performs the calculation then stops before setting DDR
controller. A user can use "print" and "edit" commands to view and modify
anything. "Go" picks up from current step with any modification and
compltes the calculation then enables the DDR controller to continue u-boot.
"Recompute" does it over from fresh reading.

Signed-off-by: York Sun <yorksun@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agoarm920t/s3c24x0/usb_ohci.c: fix warning: variable ... set but not used
Wolfgang Denk [Thu, 6 Oct 2011 07:22:52 +0000 (09:22 +0200)]
arm920t/s3c24x0/usb_ohci.c: fix warning: variable ... set but not used

Fix:
usb_ohci.c: In function 'dl_transfer_length':
usb_ohci.c:768:8: warning: variable 'tdINFO' set but not used [-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Remy Bohmer <linux@bohmer.net>
13 years agocommon/usb.c: fix warning: variable ... set but not used
Wolfgang Denk [Wed, 5 Oct 2011 21:11:19 +0000 (23:11 +0200)]
common/usb.c: fix warning: variable ... set but not used

Fix:
usb.c: In function 'usb_parse_config':
usb.c:331:17: warning: variable 'ch' set but not used [-Wunused-but-set-variable]
usb.c: In function 'usb_hub_port_connect_change':
usb.c:1123:29: warning: variable 'portchange' set but not used [-Wunused-but-set-variable]
usb.c: In function 'usb_hub_configure':
usb.c:1183:25: warning: variable 'hubsts' set but not used [-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Remy Bohmer <linux@bohmer.net>
Acked-by: Remy Bohmer <linux@bohmer.net>
13 years agodrivers/usb/host/ohci-hcd.c: fix warning: variable ... set but not used
Wolfgang Denk [Wed, 5 Oct 2011 21:03:43 +0000 (23:03 +0200)]
drivers/usb/host/ohci-hcd.c: fix warning: variable ... set but not used

Fix:
ohci-hcd.c: In function 'dl_transfer_length':
ohci-hcd.c:968:8: warning: variable 'tdINFO' set but not used [-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Remy Bohmer <linux@bohmer.net>
Acked-by: Remy Bohmer <linux@bohmer.net>
13 years agocommon/cmd_usb.c: fix warning: variable ... set but not used
Wolfgang Denk [Wed, 5 Oct 2011 21:01:59 +0000 (23:01 +0200)]
common/cmd_usb.c: fix warning: variable ... set but not used

Fix:
cmd_usb.c: In function 'usb_show_tree_graph':
cmd_usb.c:284:29: warning: variable 'port' set but not used [-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Remy Bohmer <linux@bohmer.net>
Acked-by: Remy Bohmer <linux@bohmer.net>
13 years agodrivers/net/smc91111.c: fix warning: variable ... set but not used
Wolfgang Denk [Wed, 5 Oct 2011 20:59:27 +0000 (22:59 +0200)]
drivers/net/smc91111.c: fix warning: variable ... set but not used

Fix:
smc91111.c: In function 'smc_phy_configure':
smc91111.c:1194:6: warning: variable 'failed' set but not used [-Wunused-but-set-variable]
smc91111.c:1190:7: warning: variable 'phyaddr' set but not used [-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agofs/jffs2/jffs2_1pass.c: fix warning: variable ... set but not used
Wolfgang Denk [Wed, 5 Oct 2011 20:58:11 +0000 (22:58 +0200)]
fs/jffs2/jffs2_1pass.c: fix warning: variable ... set but not used

Fix:
jffs2_1pass.c: In function 'jffs2_1pass_read_inode':
jffs2_1pass.c:699:7: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
jffs2_1pass.c: In function 'jffs2_1pass_build_lists':
jffs2_1pass.c:1578:14: warning: variable 'empty_start' set but not used [-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agoCFI: fix warning: variable ... set but not used
Wolfgang Denk [Wed, 5 Oct 2011 20:48:12 +0000 (22:48 +0200)]
CFI: fix warning: variable ... set but not used

Fix:
cfi_mtd.c: In function 'cfi_mtd_init':
cfi_mtd.c:226:19: warning: variable 'mtd_list' set but not used [-Wunused-but-set-variable]
cfi_mtd.c: In function 'cfi_mtd_init':
cfi_mtd.c:225:6: warning: unused variable 'devices_found'
cfi_mtd.c: In function 'cfi_mtd_init':
cfi_mtd.c:226:19: warning: variable 'mtd_list' set but not used [-Wunused-but-set-variable]
[-Wunused-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Stefan Roese <sr@denx.de>
Acked-by: Stefan Roese <sr@denx.de>
13 years agoarch/arm/lib/board.c: fix warning: variable ... set but not used
Wolfgang Denk [Wed, 5 Oct 2011 20:44:43 +0000 (22:44 +0200)]
arch/arm/lib/board.c: fix warning: variable ... set but not used

Fix:
board.c:445:8: warning: variable 'bd' set but not used [-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
13 years agonetconsole: support packets longer than 512 bytes
Michael Walle [Fri, 7 Oct 2011 12:27:50 +0000 (12:27 +0000)]
netconsole: support packets longer than 512 bytes

Esp. while printing the environment the output is usually longer than 512
bytes. Instead of cutting the message, send multiple 512 bytes packets.

Signed-off-by: Michael Walle <michael@walle.cc>
Acked-by: Mike Frysinger <vapier@gentoo.org>
13 years agocmd_time: add time command
Che-liang Chiou [Thu, 6 Oct 2011 23:40:48 +0000 (23:40 +0000)]
cmd_time: add time command

The 'time' command runs and reports execution time of commands.

Sample usage:
--------------------
u-boot# time crc 0x1000 1000
CRC32 for 00001000 ... 00001fff ==> ae94dc4b

time: 0.004 seconds, 4 ticks
--------------------

Signed-off-by: Che-Liang Chiou <clchiou@chromium.org>
Acked-by: Mike Frysinger <vapier@gentoo.org>
13 years agoREADME: fix typos and such.
Wolfgang Denk [Sun, 9 Oct 2011 19:06:34 +0000 (21:06 +0200)]
README: fix typos and such.

Reported-by: Michael Jones <michael.jones@matrix-vision.de>
Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agoREADME: fix documentation of CONFIG_SHOW_BOOT_PROGRESS
Wolfgang Denk [Fri, 7 Oct 2011 07:58:21 +0000 (09:58 +0200)]
README: fix documentation of CONFIG_SHOW_BOOT_PROGRESS

Some previous changes added code right in the middle of the
description of CONFIG_SHOW_BOOT_PROGRESS.  Move this text down.
Fix formatting while we are at it.

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agocommon/image.c: remove duplicated IH_TYPE entries.
Wolfgang Denk [Fri, 7 Oct 2011 06:33:16 +0000 (08:33 +0200)]
common/image.c: remove duplicated IH_TYPE entries.

Also rearrange IH_TYPE table slightly.

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agoserial: uartlite: Support for SERIAL_MULTI
Michal Simek [Sun, 25 Sep 2011 21:03:08 +0000 (21:03 +0000)]
serial: uartlite: Support for SERIAL_MULTI

Add support for SERIAL MULTI for uartlite.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agoppc: Fix DBSR_IAx defines in <bedbug/regs.h>
Stefan Roese [Fri, 7 Oct 2011 01:05:49 +0000 (01:05 +0000)]
ppc: Fix DBSR_IAx defines in <bedbug/regs.h>

While adding asm/cache.h to common.h for PPC targets, I got an
error about multiple definitions of some DBSR_ macros. While
scanning these defines, I noticed that some where defined not
correctly for all PPC variants. So I removed all unused defines,
and corrected the ones really used by bedbug (book-e vs. ppc40x).

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
13 years agoppc: Include <asm/cache.h> in common.h
Stefan Roese [Fri, 7 Oct 2011 01:05:34 +0000 (01:05 +0000)]
ppc: Include <asm/cache.h> in common.h

This is needed for the patch "cache: add default setting for
CONFIG_SYS_CACHELINE_SIZE" from Anton Staaf. As cache.h defines
CONFIG_SYS_CACHELINE_SIZE for PPC targets.

This will remove the following warnings/errors:

include/common.h:819:2: warning: #warning CONFIG_SYS_CACHELINE_SIZE not defined, using __BIGGEST_ALIGNMENT__
cache.c:33: error: '__BIGGEST_ALIGNMENT__' undeclared (first use in this function)

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Anton Staaf <robotboy@chromium.org>
Cc: Wolfgang Denk <wd@denx.de>
13 years agopart: show efi partition name when print out partition info
Lei Wen [Wed, 7 Sep 2011 18:11:19 +0000 (18:11 +0000)]
part: show efi partition name when print out partition info

Previous output:
Marvell>>  mmc part

Partition Map for MMC device 1  --   Partition Type: EFI

Part  Start LBA  End LBA
gpt1  0x8C00    0xCBFF
gpt2  0xCC00    0x57BFF
gpt3  0x57C00    0xA2BFF
gpt4  0xA2C00    0xECBFDE

With the patch, the output becomes:
Marvell>> mmc part

Partition Map for MMC device 1  --   Partition Type: EFI

Part    Name                    Start LBA       End LBA
  1     ramdisk                 0x00008C00      0x0000CBFF
  2     system                  0x0000CC00      0x00057BFF
  3     userdata                0x00057C00      0x000A2BFF
  4     remaining               0x000A2C00      0x00ECBFDE

Signed-off-by: Lei Wen <leiwen@marvell.com>
13 years agoublimage: NAND block size isn't set at build-time
Loïc Minier [Mon, 3 Oct 2011 09:57:12 +0000 (11:57 +0200)]
ublimage: NAND block size isn't set at build-time

mkimage's ublimage support can't depend of build-time board configs;
instead, this should be set in ublimage.cfg.  Since currently no configs
in u-boot override the NAND block size, hardcode it as such in
ublimage.h to fix a build failure with "make tools":
gcc [...] -o ublimage.o ublimage.c -c
In file included from ublimage.c:37:0:
ublimage.h:31:20: fatal error: config.h: No such file or directory

Cc: Heiko Schocher <hs@denx.de>
Cc: patches@linaro.org
Signed-off-by: Loïc Minier <loic.minier@linaro.org>
Acked-by: Heiko Schocher <hs@denx.de>
13 years agoSafer timestamp_autogenerated.h generation
Loïc Minier [Mon, 3 Oct 2011 09:57:11 +0000 (11:57 +0200)]
Safer timestamp_autogenerated.h generation

Generate timestamp_autogenerated.h as safely as version_autogenerated.h.

Cc: patches@linaro.org
Signed-off-by: Loïc Minier <loic.minier@linaro.org>
Acked-by: Mike Frysinger <vapier@gentoo.org>
13 years agoBuild timestamp_autogenerated.h without config
Loïc Minier [Mon, 3 Oct 2011 09:57:10 +0000 (11:57 +0200)]
Build timestamp_autogenerated.h without config

Tools such as mkimage include version information but are
config-agnostic; build timestamp_autogenerated.h even when config.mk
isn't generated to fix "make tools" build failure:
gcc [...] -o mkimage.o mkimage.c -c
In file included from include/version.h:27:0, from mkimage.c:26:
include/timestamp.h:27:37: fatal error: timestamp_autogenerated.h: No
such file or directory

Cc: patches@linaro.org
Signed-off-by: Loïc Minier <loic.minier@linaro.org>
Acked-by: Mike Frysinger <vapier@gentoo.org>
13 years agoTell git to ignore asm-offsets.s
Laurence Withers [Fri, 30 Sep 2011 12:09:39 +0000 (12:09 +0000)]
Tell git to ignore asm-offsets.s

The generated file asm-offsets.s may be found at various depths in the
arch subdirectories, so simply ignore it throughout the tree.

Signed-off-by: Laurence Withers <lwithers@guralp.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
13 years agoSPL: Make path to start.S configurable
Marek Vasut [Sun, 11 Sep 2011 17:56:19 +0000 (17:56 +0000)]
SPL: Make path to start.S configurable

Introduce CONFIG_SPL_START_S_PATH to configure path to start.S file. It's not
always fitting to use CPU's start.S .

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
13 years agocmd_sf: Fix compiler warning
Kumar Gala [Mon, 3 Oct 2011 04:35:47 +0000 (04:35 +0000)]
cmd_sf: Fix compiler warning

cmd_sf.c: In function 'do_spi_flash':
cmd_sf.c:164:9: warning: 'skipped' may be used uninitialized in this function

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Simon Glass <sjg@chromium.org>
13 years agoboard configs: drop NET_MULTI references
Mike Frysinger [Sun, 2 Oct 2011 10:01:28 +0000 (10:01 +0000)]
board configs: drop NET_MULTI references

Now that none of the core checks CONFIG_NET_MULTI, there's not much point
in boards defining it.  So scrub all references to it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agonet: drop !NET_MULTI code
Mike Frysinger [Sun, 2 Oct 2011 10:01:27 +0000 (10:01 +0000)]
net: drop !NET_MULTI code

This is long over due.  All but two net drivers have been converted, but
those have now been dropped.

The only thing left to do is actually delete all references to NET_MULTI
and code that is compiled when that is not defined.  So here we scrub the
core code.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agonet: drop !NET_MULTI ns7520 driver
Mike Frysinger [Sun, 2 Oct 2011 10:01:26 +0000 (10:01 +0000)]
net: drop !NET_MULTI ns7520 driver

This driver was never converted to NET_MULTI, and no board uses it.
So punt it and be done.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agonet: drop !NET_MULTI bcm570x/tigon3 drivers
Mike Frysinger [Sun, 2 Oct 2011 10:01:25 +0000 (10:01 +0000)]
net: drop !NET_MULTI bcm570x/tigon3 drivers

These drivers have never been converted to NET_MULTI, and they are only
used by one board (BMW).  So drop the drivers until someone feels like
rewriting them for NET_MULTI support.

Rather than punting the BMW board completely, just disable net support
in its board config.  Seems to build fine without it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agomkconfig: start deprecating Makefile config targets
Mike Frysinger [Sat, 1 Oct 2011 10:15:04 +0000 (10:15 +0000)]
mkconfig: start deprecating Makefile config targets

Now that we've got boards.cfg and most people have converted over,
start warning people who have yet to so we can phase board configs
completely out of the Makefile.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agoimage: push default arch values to arch headers
Mike Frysinger [Mon, 3 Oct 2011 14:50:33 +0000 (14:50 +0000)]
image: push default arch values to arch headers

This pushes the ugly duplicated arch ifdef lists we maintain in various
image related files out to the arch headers themselves.

Acked-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Tested-by: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agoMAKEALL: rename coldfire list to m68k to match arch
Mike Frysinger [Sun, 25 Sep 2011 19:27:19 +0000 (19:27 +0000)]
MAKEALL: rename coldfire list to m68k to match arch

The m68k tree is the only one where `./MAKEALL <arch>` does not work.
So rename the existing coldfire list in the MAKEALL script to m68k, and
add an alias from coldfire to m68k.  This makes scripting around MAKEALL
easier.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agomkimage: Add variable lenght header support
Stefano Babic [Thu, 15 Sep 2011 23:50:16 +0000 (23:50 +0000)]
mkimage: Add variable lenght header support

Some images have not a header of fix lenght. The patch will be
used for the generation of AIS images, because this header has
a variable lenght. The patch adds also the parameter "-s" (skip)
to not copy automatically the passed image file.

Signed-off-by: Stefano Babic <sbabic@denx.de>
13 years agomkimage: ublimage must return if the header is not verified
Stefano Babic [Thu, 15 Sep 2011 23:50:15 +0000 (23:50 +0000)]
mkimage: ublimage must return if the header is not verified

Each image handler must return a not-zero velue if the
header is not recognized to allow the main program to
iterate to the next handler.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Heiko Schocher <hs@denx.de>
Acked-by: Heiko Schocher <hs@denx.de>
13 years agokm_arm: enable POST for these boards
Valentin Longchamp [Mon, 12 Sep 2011 04:18:42 +0000 (04:18 +0000)]
km_arm: enable POST for these boards

The current km_arm boards have a Power-On test jumper. When this
jumper is set, this triggers some Power-On tests on the board.

This patch enables the support of this jumper for starting the
memory_regions test when the jumper is set.

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Cc: Prafulla Wadaskar <prafulla@marvell.com>
13 years agokm_arm: change CONFIG_SYS_TEXT_BASE to end of RAM
Valentin Longchamp [Mon, 12 Sep 2011 04:18:41 +0000 (04:18 +0000)]
km_arm: change CONFIG_SYS_TEXT_BASE to end of RAM

This allows to test a larger part of the RAM in the memory tests.

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Cc: Heiko Schocher <hs@denx.de>
Cc: Prafulla Wadaskar <prafulla@marvell.com>
13 years agoPOST: add new memory regions test
Valentin Longchamp [Mon, 12 Sep 2011 04:18:40 +0000 (04:18 +0000)]
POST: add new memory regions test

This test is similar to the actual POST memory test but quicker and
far less complete. It checks the address and data lines and then only
tests some regularly placed sub regions of the RAM.
This can be useful when we want to test the RAM but we do not have enough
time to run the full memory test.

The POST memory test code was rearranged in order to avoid code duplication
between the two tests but the memory test functionnality remains the same.

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Ackey-by: Mike Frysinger <vapier@gentoo.org>
13 years agoPOST: drivers/memory.c coding style cleanup
Valentin Longchamp [Wed, 3 Aug 2011 02:37:03 +0000 (02:37 +0000)]
POST: drivers/memory.c coding style cleanup

This is needed for a further patch adding a new memory test.

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
13 years agoPOST: make env test flags fetching optional
Valentin Longchamp [Wed, 3 Aug 2011 02:37:02 +0000 (02:37 +0000)]
POST: make env test flags fetching optional

Some boards have the environment variables defined in a slow EEPROM. post_run
accesses these environment variables to define which tests have to be run (in
post_get_flags). This is very slow before the code relocation on some boards
with a slow I2C EEPROM for environement variables.

This patch adds a config option to skip the fetching of the test flags in the
environment variables. The test flags assigned to the tests then only are the
ones statically defined for the test in post/tests.c.

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
13 years agoPOST: add post_log_res field for post results in global data
Valentin Longchamp [Wed, 3 Aug 2011 02:37:01 +0000 (02:37 +0000)]
POST: add post_log_res field for post results in global data

The current post_log_word in global data is currently split into 2x
16 bits: half for the test start, half for the test success.
Since we alredy have more than 16 POST tests defined and more could
be defined, this may result in an overflow and the post_output_backlog
would not work for the tests defined further of these 16 positions.

An additional field is added to global data so that we can now support up
to 32 (depending of architecture) tests. The post_log_word is only used
to record the start of the test and the new field post_log_res for the
test success (or failure). The post_output_backlog is for this change
also adapted.

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
13 years agoPOST: allow redefinition of post_word_load/store
Valentin Longchamp [Fri, 2 Sep 2011 04:59:04 +0000 (04:59 +0000)]
POST: allow redefinition of post_word_load/store

The predefinde post_word_load/store functions do not fit all boards,
so we introduce a way to define post_word_load/store as externs in
post.h that then can be defined in board specific files. This is done
with the CONFIG_POST_EXTERNAL_WORD_FUNCS #define

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
13 years agoPOST/arm: adaptations needed for POST on ARM to work
Valentin Longchamp [Fri, 2 Sep 2011 04:59:03 +0000 (04:59 +0000)]
POST/arm: adaptations needed for POST on ARM to work

For post to run on ARM, 3 things are needed:
- post_log_word to be defined in gd
- a post.h include in arch/arm/lib/board.c

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Cc: Mike Frysinger <vapier@gentoo.org>
Acked-by: Mike Frysinger <vapier@gentoo.org>
13 years agoconsole: Implement pre-console buffer
Graeme Russ [Thu, 1 Sep 2011 00:48:27 +0000 (00:48 +0000)]
console: Implement pre-console buffer

Allow redirection of console output prior to console initialisation to a
temporary buffer.

To enable this functionality, the board (or arch) must define:
 - CONFIG_PRE_CONSOLE_BUFFER - Enable pre-console buffer
 - CONFIG_PRE_CON_BUF_ADDR - Base address of pre-console buffer
 - CONFIG_PRE_CON_BUF_SZ - Size of pre-console buffer (in bytes)

The pre-console buffer will buffer the last CONFIG_PRE_CON_BUF_SZ bytes
Any earlier characters are silently dropped.

13 years agoMakefile: remove mx31pdk exception
Stefano Babic [Tue, 30 Aug 2011 00:52:43 +0000 (00:52 +0000)]
Makefile: remove mx31pdk exception

An entry in the main Makefile for the mx31pdk board is not
necessary, and the board is added to boards.cfg as all
other targets.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Wolfgang Denk <wd@denx.de>
13 years agoMakefile: drop imx31_phycore from general Makefile
Stefano Babic [Tue, 30 Aug 2011 00:52:42 +0000 (00:52 +0000)]
Makefile: drop imx31_phycore from general Makefile

Signed-off-by: Stefano Babic <sbabic@denx.de>
13 years agoMakefile: remove tx25 exception
Stefano Babic [Mon, 29 Aug 2011 04:57:10 +0000 (04:57 +0000)]
Makefile: remove tx25 exception

An entry in the main Makefile for the tx25 board is not
necessary, and the board is added to boards.cfg as all
other targets.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Wolfgang Denk <wd@denx.de>
13 years agoPPC: Cleanup tqm8xx_pcmcia.c
Marek Vasut [Wed, 5 Oct 2011 02:51:55 +0000 (02:51 +0000)]
PPC: Cleanup tqm8xx_pcmcia.c

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Tested-by: Wolfgang Denk <wd@denx.de>
Acked-by: Wolfgang Denk <wd@denx.de>
13 years agoTQM8xx: make room for growing code size due to I/O accessor cleanup
Wolfgang Denk [Wed, 5 Oct 2011 09:55:01 +0000 (09:55 +0000)]
TQM8xx: make room for growing code size due to I/O accessor cleanup

Commit "PPC: Cleanup tqm8xx_pcmcia.c" will clean up the PCMCIA code
to use I/O accessors instead of plain volatile pointer accesses.
This will result in about 300 byte bigger code.  Fix custom linker
script to make room for this.

While we are at it, drop unmaintained u-boot.lds.debug linker script.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Tested-by: Wolfgang Denk <wd@denx.de>
13 years agoMerge branch 'master' of git://git.denx.de/u-boot-nand-flash
Wolfgang Denk [Tue, 4 Oct 2011 20:20:25 +0000 (22:20 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-nand-flash

* 'master' of git://git.denx.de/u-boot-nand-flash:
  PPC: Fix socrates NAND problem
  PPC: Fix fsl_upm.c by renaming nand handling functions
  NAND: Make page, erase, oob size available via cmd_nand
  mtd: eLBC NAND: remove elbc_fcm_ctrl->oob_poi
  NAND: Add -y option to nand scrub command
  NAND: Add nand read.raw and write.raw commands
  NAND: Really ignore bad blocks when scrubbing
  spl, nand: add 4bit HW ecc oob first nand_read_page function
  mxc_nand: fix a problem writing more than 32MB
  mxc_nand: fixed some typos (cosmetic)
  nand: increase chip_delay in mv kirkwood nand driver

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc85xx
Wolfgang Denk [Tue, 4 Oct 2011 20:08:13 +0000 (22:08 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx

* 'master' of git://git.denx.de/u-boot-mpc85xx:
  powerpc/p3060: Add SoC related support for P3060 platform
  powerpc/85xx: Add support for setting up RAID engine liodns on P5020
  powerpc/85xx: Refactor some defines out of corenet_ds.h
  fm-eth: Add ability for board code to disable a port
  powerpc/mpc8548: Add workaround for erratum NMG_LBC103
  powerpc/mpc8548: Add workaround for erratum NMG_DDR120
  powerpc/mpc85xxcds: Fix PCI speed
  powerpc/mpc8548cds: Fix booting message
  powerpc/p4080: Add support for secure boot flow
  powerpc/85xx: Add Secure Boot support on P1010RDB for NOR, NAND & SPIFLASH
  powerpc/85xx: Add PBL & SECUREBOOT support on P3041/P5020DS boards
  powerpc/p2041rdb: remove watch dog related codes
  powerpc/p2041rdb: updated description of cpld command
  powerpc/p2041rdb: add more ddr frequencies support
  powerpc/p2041rdb: set sysclk according to status of physical switch SW1
  powerpc/p2041rdb: update cpld reset command according to CPLD 2.0
  powerpc/mpc8349emds: Migrate from spd_sdram to unified DDR driver
  powerpc/mpc83xx: Migrate from spd_sdram to unified DDR driver
  powerpc/mpc8xxx: Add DDR2 to unified DDR driver
  powerpc/mpc8xxx: Fix picos_to_mclk() and get_memory_clk_period_ps()
  powerpc/mpc8xxx: Add SPD EEPROM address for single controller 2 slots
  powerpc/mpc8xxx: Fix DDR code for empty first DIMM slot and enable DQS_en
  powerpc/85xx: Refactor P2041RDB to use common p_corenet files
  powerpc/85xx: refactor common P-Series CoreNet files for FSL boards
  powerpc/85xx: Enable CMD_REGINFO on corenet boards
  powerpc/85xx: p2041rdb - Remove unused 'execute' perm in TLB entries
  powerpc/85xx: Fix USB protocol definitions for P1020RDB
  powerpc/corenet_ds: Use separated speed tables for UDIMM and RDIMM
  powerpc/mpc8xxx: Move DDR RCW overriding to common code
  powerpc/mpc8xxx: Extend CWL table
  powerpc/85xx: Cleanup how SVR_MAJ() is defined on MPC8536
  powerpc/85xx: Cleanup extern in corenet_ds board code
  powerpc/p2041rdb: Add ethernet support on P2041RDB board
  powerpc/85xx: Add networking support to P1023RDS
  powerpc/hydra: Add ethernet support on P5020/P3041 DS boards
  powerpc/85xx: Add FMan ethernet support to P4080DS
  powerpc/85xx: Add support for FMan ethernet in Independent mode
  powerpc/mpc8548cds: Cleanup mpc8548cds.c
  powerpc/mp: add support for discontiguous cores
  powerpc/85xx: corenet_ds - Remove unused 'execute' perm in TLB entries
  fdt: Add new fdt_create_phandle helper
  fdt: Rename fdt_create_phandle to fdt_set_phandle
  powerpc/85xx: Fix compile warnings/errors if CONFIG_SYS_DPAA_FMAN isn't set
  fsl_ifc: Add the workaround for erratum IFC A-003399(enabled on P1010)
  powerpc/P1010: Add workaround for erratum P1010-A003549 (related to IFC)
  fsl_ifc: Add the workaround for erratum IFC-A002769 (enable on P1010)
  powerpc/85xx: Expanding the window of CCSRBAR in AS=1 from 4k to 1M
  powerpc/85xx: Add NAND/NAND_SPL support to P1010RDB
  nand: Freescale Integrated Flash Controller NAND support
  powerpc/85xx: Add basic support for P1010RDB
  powerpc/85xx: Add support for new P102x/P2020 RDB style boards
  powerpc/85xx: relocate CCSR before creating the initial RAM area
  powerpc/85xx: introduce and document CONFIG_SYS_CCSRBAR macros
  powerpc/85xx: Enable internal USB UTMI PHY on p204x/p3041/p50x0
  powerpc/85xx: Add ULPI and UTMI USB Phy support for P1010/P1014

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-i2c
Wolfgang Denk [Tue, 4 Oct 2011 20:06:06 +0000 (22:06 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-i2c

* 'master' of git://git.denx.de/u-boot-i2c:
  I2C: mv_i2c: fix multi-bus init issue
  I2C: mv_i2c: fix build issue when enable debug option

13 years agoMerge branch 'emaclite' of git://git.denx.de/u-boot-microblaze
Wolfgang Denk [Tue, 4 Oct 2011 20:05:15 +0000 (22:05 +0200)]
Merge branch 'emaclite' of git://git.denx.de/u-boot-microblaze

* 'emaclite' of git://git.denx.de/u-boot-microblaze:
  net: emaclite: Use dynamic allocation
  net: emaclite: Remove baseaddress from xemaclite
  net: emaclite: Use calloc instead of malloc
  net: emaclite: Remove deviceid property
  net: emaclite: Change driver name and add address

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-microblaze
Wolfgang Denk [Tue, 4 Oct 2011 19:32:16 +0000 (21:32 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-microblaze

* 'master' of git://git.denx.de/u-boot-microblaze:
  microblaze: Enable FDT/FIT support
  microblaze: Remove address offset for uart16550
  microblaze: Do not select NFS for platforms without ethernet
  microblaze: Clean up reset asm code
  microblaze: Save and restore first unused vector
  microblaze: Setup MB vectors if feature is enable for u-boot
  microblaze: Remove debug saving value

13 years agoRevert "GCC4.6: Convert various empty macros to inline functions"
Wolfgang Denk [Tue, 4 Oct 2011 19:19:19 +0000 (21:19 +0200)]
Revert "GCC4.6: Convert various empty macros to inline functions"

This reverts commit 60ce53cf9f408d9ad721f8e7a87d6a564e6d5bac.

The commit causes build breakage for a number of boards. This results
from the fact that now the arguments of debug() actually get
referenced (even if there is hope that the compiler will optimize
away the debug() call).  The obvious fix to that probem (change the
code to always declare the referenced variables and data structures)
increases the code size, and was this rejected.  So it was decided to
revert this commit until a better solution is found.

13 years agoPPC: Fix socrates NAND problem
Marek Vasut [Mon, 3 Oct 2011 22:56:09 +0000 (00:56 +0200)]
PPC: Fix socrates NAND problem

nand.c:36: error: static declaration of 'nand_read_buf' follows non-static declaration
/home/marex/u-boot/include/nand.h:139: error: previous declaration of 'nand_read_buf' was here

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Scott Wood <scottwood@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
13 years agoPPC: Fix fsl_upm.c by renaming nand handling functions
Marek Vasut [Mon, 3 Oct 2011 22:56:07 +0000 (00:56 +0200)]
PPC: Fix fsl_upm.c by renaming nand handling functions

This avoids colision with nand subsystem's functions.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Scott Wood <scottwood@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
13 years agoNAND: Make page, erase, oob size available via cmd_nand
Marek Vasut [Thu, 22 Sep 2011 01:57:26 +0000 (03:57 +0200)]
NAND: Make page, erase, oob size available via cmd_nand

The "nand info" and "nand device" now set shell/environment variables:
nand_writesize ... nand page size
nand_oobsize ..... nand oob area size
nand_erasesize ... nand erase block size

Also, the "nand info" command now displays this info.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
[scottwood@freescale.com: removed unnecessary memsets]
Signed-off-by: Scott Wood <scottwood@freescale.com>
13 years agomtd: eLBC NAND: remove elbc_fcm_ctrl->oob_poi
mhench [Mon, 11 Jul 2011 12:29:43 +0000 (12:29 +0000)]
mtd: eLBC NAND: remove elbc_fcm_ctrl->oob_poi

The eLBC NAND driver currently follows up each program/write operation with a
read-back of the page, in order to [ostensibly] fill in ECC data for the
caller. However, the page address used for this read is always -1, so the read
will never work correctly.  Remove this useless (and potentially problematic)
block of code.

v2: fix broken mailer

Signed-off-by: mhench <mhench@elutions.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
13 years agoNAND: Add -y option to nand scrub command
Marek Vasut [Tue, 13 Sep 2011 22:20:35 +0000 (00:20 +0200)]
NAND: Add -y option to nand scrub command

This allows the scrub command to scrub without asking the user if he really
wants to scrub the area. Useful in scripts.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Scott Wood <scottwood@freescale.com>
13 years agoNAND: Add nand read.raw and write.raw commands
Marek Vasut [Fri, 23 Sep 2011 13:43:10 +0000 (15:43 +0200)]
NAND: Add nand read.raw and write.raw commands

These commands should work around various "hardware" ECC and BCH methods.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
[scottwood@freescale.com: s/write the page/access the page/]
Signed-off-by: Scott Wood <scottwood@freescale.com>
13 years agoNAND: Really ignore bad blocks when scrubbing
Marek Vasut [Mon, 12 Sep 2011 04:04:06 +0000 (06:04 +0200)]
NAND: Really ignore bad blocks when scrubbing

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
[scottwood@freescale.com: use chip instead of redundant priv_nand]
Signed-off-by: Scott Wood <scottwood@freescale.com>
13 years agospl, nand: add 4bit HW ecc oob first nand_read_page function
Heiko Schocher [Sat, 16 Jul 2011 00:06:49 +0000 (00:06 +0000)]
spl, nand: add 4bit HW ecc oob first nand_read_page function

Signed-off-by: Heiko Schocher <hs@denx.de>
cc: Scott Wood <scottwood@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
13 years agomxc_nand: fix a problem writing more than 32MB
Helmut Raiger [Wed, 6 Jul 2011 17:04:41 +0000 (19:04 +0200)]
mxc_nand: fix a problem writing more than 32MB

When writing 0x4000 to the unlockend_blkaddr register, large writes to
a 2k page NAND sometimes fail. The current kernel driver writes 0xFFFF
to this register for V2 of the nand controller.

However on an i.MX31 this also fixes writes larger than 32MB.
The datasheet is very unspecific, but (0x4000=16384)*2000
roughly fits the limits we're encountering with NAND writes.
This problem might be NAND chip specific.

Signed-off-by: Helmut Raiger <helmut.raiger@hale.at>
Signed-off-by: Scott Wood <scottwood@freescale.com>
13 years agomxc_nand: fixed some typos (cosmetic)
Helmut Raiger [Wed, 6 Jul 2011 07:40:28 +0000 (09:40 +0200)]
mxc_nand: fixed some typos (cosmetic)

Signed-off-by: Helmut Raiger <helmut.raiger@hale.at>
Signed-off-by: Scott Wood <scottwood@freescale.com>
13 years agonand: increase chip_delay in mv kirkwood nand driver
Stefan Bigler [Mon, 18 Jul 2011 13:25:11 +0000 (15:25 +0200)]
nand: increase chip_delay in mv kirkwood nand driver

The new SAMSUNG NAND Flash K9F1G08U0D require a bigger chip_delay.
The Data Transfer from Cell to Register is >= 35us. Other Vendors
and older chips normally use >= 25us. To have enough margin 40us
is selected.

Signed-off-by: Stefan Bigler <stefan.bigler@keymile.com>
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
cc: Prafulla Wadaskar <prafulla@marvell.com>
cc: Stefan Roese <sr@denx.de>
Signed-off-by: Scott Wood <scottwood@freescale.com>
13 years agopowerpc/p3060: Add SoC related support for P3060 platform
Shengzhou Liu [Wed, 31 Aug 2011 09:48:18 +0000 (17:48 +0800)]
powerpc/p3060: Add SoC related support for P3060 platform

Add P3060 SoC specific information:cores setup, LIODN setup, etc

The P3060 SoC combines six e500mc Power Architecture processor cores with
high-performance datapath acceleration architecture(DPAA), CoreNet fabric
infrastructure, as well as network and peripheral interfaces.

Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Add support for setting up RAID engine liodns on P5020
Kumar Gala [Sat, 10 Sep 2011 15:44:13 +0000 (10:44 -0500)]
powerpc/85xx: Add support for setting up RAID engine liodns on P5020

Add support for Job Queue/Ring LIODN for the RAID Engine on P5020.  Each
Job Queue/Ring combo needs one id assigned for a total of 4 (2 JQs/2
Rings per JQ).  This just handles RAID Engine in non-DPAA mode.

Signed-off-by: Santosh Shukla <santosh.shukla@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Refactor some defines out of corenet_ds.h
Kumar Gala [Wed, 31 Aug 2011 14:50:13 +0000 (09:50 -0500)]
powerpc/85xx: Refactor some defines out of corenet_ds.h

Move some SoC/board specific defines out of corenet_ds.h and into the
corresponding P3041DS/P4080DS/P5020.h.

We moved CONFIG_MMC, CONFIG_PCIE3, & CONFIG_FSL_NGPIXIS because the P3060
SoC/reference board does not have these devices and it will share the same
board code.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agofm-eth: Add ability for board code to disable a port
Kumar Gala [Wed, 14 Sep 2011 17:01:35 +0000 (12:01 -0500)]
fm-eth: Add ability for board code to disable a port

The SoC configuration may have more ports enabled than a given board
actually can utilize.  Add a routinue that allows the board code to
disable a port that it knows isn't being used.

fm_disable_port() needs to be called before cpu_eth_init().

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/mpc8548: Add workaround for erratum NMG_LBC103
Kumar Gala [Mon, 3 Oct 2011 13:37:57 +0000 (08:37 -0500)]
powerpc/mpc8548: Add workaround for erratum NMG_LBC103

The erratum NMG_LBC103 is LBIU3 in MPC8548 errata document.
Any local bus transaction may fail during LBIU resynchronization
process when the clock divider [CLKDIV] is changing. Ensure there
is no transaction on the local bus for at least 100 microseconds
after changing clock divider LCRR[CLKDIV].

Refer to the erratum LBIU3 of mpc8548.

Signed-off-by: Zhao Chenhui <chenhui.zhao@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/mpc8548: Add workaround for erratum NMG_DDR120
Kumar Gala [Fri, 16 Sep 2011 14:54:30 +0000 (09:54 -0500)]
powerpc/mpc8548: Add workaround for erratum NMG_DDR120

Erratum NMG_DDR120 (DDR19 in MPC8548 errata document) applies to some
early version silicons. The default settings of the DDR IO receiver
biasing may not work at cold temperature. When a failure occurs,
a DDR input latches an incorrect value. The workaround will set the
receiver to an acceptable bias point.

Signed-off-by: Gong Chen
Signed-off-by: Zhao Chenhui <chenhui.zhao@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/mpc85xxcds: Fix PCI speed
chenhui zhao [Thu, 15 Sep 2011 06:52:34 +0000 (14:52 +0800)]
powerpc/mpc85xxcds: Fix PCI speed

The CDS uses PCICLK as SYSCLK. The PCICLK should be 33333333Hz or 66666666Hz.

Signed-off-by: Ebony Zhu <ebony.zhu@freescale.com>
Signed-off-by: Zhao Chenhui <chenhui.zhao@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/mpc8548cds: Fix booting message
chenhui zhao [Tue, 6 Sep 2011 16:41:14 +0000 (16:41 +0000)]
powerpc/mpc8548cds: Fix booting message

Align the output for PCI. Replace "PCI" with "PCI1".

Signed-off-by: Zhao Chenhui <chenhui.zhao@freescale.com>
13 years agopowerpc/p4080: Add support for secure boot flow
Ruchika Gupta [Wed, 15 Dec 2010 17:02:08 +0000 (17:02 +0000)]
powerpc/p4080: Add support for secure boot flow

Pre u-boot Flow:
1. User loads the u-boot image in flash
2. PBL/Configuration word is used to create LAW for Flash at 0xc0000000
   (Please note that ISBC expects all these addresses, images to be
    validated, entry point etc within 0 - 3.5G range)
3. ISBC validates the u-boot image, and passes control to u-boot
   at 0xcffffffc.

Changes in u-boot:
1. Temporarily map CONFIG_SYS_MONITOR_BASE to the 1M
   CONFIG_SYS_PBI_FLASH_WINDOW in AS=1.
   (The CONFIG_SYS_PBI_FLASH_WINDOW is the address map for the flash
    created by PBL/configuration word within 0 - 3.5G memory range. The
    u-boot image at this address has been validated by ISBC code)
2. Remove TLB entries for 0 - 3.5G created by ISBC code
3. Remove the LAW entry for the CONFIG_SYS_PBI_FLASH_WINDOW created by
   PBL/configuration word after switch to AS = 1

Signed-off-by: Ruchika Gupta <ruchika.gupta@freescale.com>
Signed-off-by: Kuldip Giroh <kuldip.giroh@freescale.com>
Acked-by: Wood Scott-B07421 <B07421@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Add Secure Boot support on P1010RDB for NOR, NAND & SPIFLASH
Ruchika Gupta [Thu, 9 Jun 2011 03:52:48 +0000 (22:52 -0500)]
powerpc/85xx: Add Secure Boot support on P1010RDB for NOR, NAND & SPIFLASH

Signed-off-by: Ruchika Gupta <ruchika.gupta@freescale.com>
Signed-off-by: Kuldip Giroh <kuldip.giroh@freescale.com>
13 years agopowerpc/85xx: Add PBL & SECUREBOOT support on P3041/P5020DS boards
Kumar Gala [Sat, 9 Apr 2011 18:43:55 +0000 (13:43 -0500)]
powerpc/85xx: Add PBL & SECUREBOOT support on P3041/P5020DS boards

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/p2041rdb: remove watch dog related codes
Shaohui Xie [Fri, 23 Sep 2011 01:18:12 +0000 (09:18 +0800)]
powerpc/p2041rdb: remove watch dog related codes

CPLD 2.2 removed board watch dog support due to the limitation of CPLD
capacity after adding all the requested features, such as switch overriding.
There is no pin-compatible upgrade part available for current PCB design.
So remove codes related to it.

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/p2041rdb: updated description of cpld command
Shaohui Xie [Thu, 22 Sep 2011 09:27:29 +0000 (17:27 +0800)]
powerpc/p2041rdb: updated description of cpld command

According to CPLD 2.2, the default configuration is changed, so updated the
description of CPLD command, otherwise it will confusing.

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/p2041rdb: add more ddr frequencies support
Shaohui Xie [Thu, 22 Sep 2011 03:46:12 +0000 (11:46 +0800)]
powerpc/p2041rdb: add more ddr frequencies support

This table covers DDR frequencies from 666 to 1666. Frequencies 666, 833,
1000, 1066 and 1333 were verified on this board with SO-DIMM
(UG51U6400N8SU-ACF).

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/p2041rdb: set sysclk according to status of physical switch SW1
Shaohui Xie [Tue, 13 Sep 2011 09:55:11 +0000 (17:55 +0800)]
powerpc/p2041rdb: set sysclk according to status of physical switch SW1

P2041RDB supports 3 sysclk frequencies, it's selected by SW1[6~8],
software need to read the SW1 status to decide what the sysclk needs.

SW1[8~6] : frequency
0 0 1 : 83.3MHz
0 1 0 : 100MHz
others: 66.667MHz

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/p2041rdb: update cpld reset command according to CPLD 2.0
Shaohui Xie [Tue, 13 Sep 2011 09:51:39 +0000 (17:51 +0800)]
powerpc/p2041rdb: update cpld reset command according to CPLD 2.0

CPLD 2.0 provides a new register which bit[0] is set to '1' will reset
board with initializing the CPLD registers to default values. And add
bit[6] of register at offset 0x5 to use to enable flash bank selection.

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agoI2C: mv_i2c: fix multi-bus init issue
Lei Wen [Fri, 30 Sep 2011 05:44:12 +0000 (05:44 +0000)]
I2C: mv_i2c: fix multi-bus init issue

When enable the multi-bus, the current_bus is not inited in the original
implementation, which make the i2c operation unpredicatable.

Signed-off-by: Lei Wen <leiwen@marvell.com>
13 years agoI2C: mv_i2c: fix build issue when enable debug option
Lei Wen [Fri, 30 Sep 2011 05:43:48 +0000 (05:43 +0000)]
I2C: mv_i2c: fix build issue when enable debug option

When DEBUG_I2C is open, the following build issue would shows up.

mv_i2c.c: In function 'i2c_transfer':
mv_i2c.c:257: error: 'ISR' undeclared (first use in this function)
mv_i2c.c:257: error: (Each undeclared identifier is reported only once
mv_i2c.c:257: error: for each function it appears in.)

Signed-off-by: Lei Wen <leiwen@marvell.com>
13 years agonet: emaclite: Use dynamic allocation
Michal Simek [Thu, 25 Aug 2011 10:47:56 +0000 (12:47 +0200)]
net: emaclite: Use dynamic allocation

Every emaclite instance use own setting.

Signed-off-by: Michal Simek <monstr@monstr.eu>
Acked-by: Mike Frysinger <vapier@gentoo.org>
13 years agonet: emaclite: Remove baseaddress from xemaclite
Michal Simek [Thu, 25 Aug 2011 10:36:39 +0000 (12:36 +0200)]
net: emaclite: Remove baseaddress from xemaclite

Use dev->iobase instead of baseaddress.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agonet: emaclite: Use calloc instead of malloc
Michal Simek [Thu, 25 Aug 2011 10:28:47 +0000 (12:28 +0200)]
net: emaclite: Use calloc instead of malloc

Simplify driver logic and clear eth_device structure
in one command.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agonet: emaclite: Remove deviceid property
Michal Simek [Thu, 25 Aug 2011 10:27:04 +0000 (12:27 +0200)]
net: emaclite: Remove deviceid property

Cleanup structure.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agonet: emaclite: Change driver name and add address
Michal Simek [Thu, 25 Aug 2011 10:25:14 +0000 (12:25 +0200)]
net: emaclite: Change driver name and add address

Current xilinx emaclite use net multi registration
but doesn't support several emaclites interfaces.
Changing driver name with adding address to name
is the first step how to distiguish several drivers.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agomicroblaze: Enable FDT/FIT support
Michal Simek [Fri, 25 Jun 2010 16:05:28 +0000 (18:05 +0200)]
microblaze: Enable FDT/FIT support

Enable FDT and FIT support.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agomicroblaze: Remove address offset for uart16550
Michal Simek [Mon, 28 Feb 2011 09:17:22 +0000 (10:17 +0100)]
microblaze: Remove address offset for uart16550

U-Boot BSP handle 0x3 offset for big endian systems.
Little endian Microblaze systems don't use any offset.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agomicroblaze: Do not select NFS for platforms without ethernet
Michal Simek [Mon, 28 Feb 2011 09:16:09 +0000 (10:16 +0100)]
microblaze: Do not select NFS for platforms without ethernet

Undefined network functionality for systems without ethernet
and disable NFS support.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agomicroblaze: Clean up reset asm code
Michal Simek [Tue, 30 Aug 2011 13:22:24 +0000 (15:22 +0200)]
microblaze: Clean up reset asm code

- Remove code copying
- Reset address is setup from first stage bootloader
- Support reset vector setup on little endian

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agomicroblaze: Save and restore first unused vector
Michal Simek [Mon, 15 Nov 2010 09:54:43 +0000 (09:54 +0000)]
microblaze: Save and restore first unused vector

Use one memory space to detect little/big endian platforms.
The first unused address(0x28) is used instead 0x0 address (reset vectors).
Detection rewrited reset vector setup from first stage bootloader.

Workflow:
1. Store 0x28 to r7
2. Do little/big endian test
3. Restore r7 to 0x28

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agomicroblaze: Setup MB vectors if feature is enable for u-boot
Michal Simek [Thu, 21 Jul 2011 08:47:21 +0000 (10:47 +0200)]
microblaze: Setup MB vectors if feature is enable for u-boot

For example: Setup reset vectors if reset address is setup.
Setup user exception vector if user exception is enabled

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agomicroblaze: Remove debug saving value
Michal Simek [Thu, 21 Jul 2011 08:45:41 +0000 (10:45 +0200)]
microblaze: Remove debug saving value

Forget to remove debug code.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agoGCC4.6: Squash warning in lzo1x_decompress.c
Marek Vasut [Fri, 30 Sep 2011 10:13:26 +0000 (12:13 +0200)]
GCC4.6: Squash warning in lzo1x_decompress.c

lzo1x_decompress.c: In function ‘parse_header’:
lzo1x_decompress.c:35:5: warning: variable ‘level’ set but not used
[-Wunused-but-set-variable]

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
13 years agoGCC4.6: Squash warning in cmd_ubi.c:
Marek Vasut [Fri, 30 Sep 2011 10:13:25 +0000 (12:13 +0200)]
GCC4.6: Squash warning in cmd_ubi.c:

cmd_ubi.c: In function ‘ubi_volume_read’:
cmd_ubi.c:319:9: warning: variable ‘count_save’ set but not used
[-Wunused-but-set-variable]

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
13 years agoGCC4.6: Squash warning in vmt.c
Marek Vasut [Fri, 30 Sep 2011 10:19:42 +0000 (12:19 +0200)]
GCC4.6: Squash warning in vmt.c

vmt.c: In function ‘ubi_free_volume’:
vmt.c:681:6: warning: variable ‘err’ set but not used
[-Wunused-but-set-variable]

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
13 years agoGCC4,6: Squash warning in cmd_nand.c
Marek Vasut [Fri, 30 Sep 2011 10:13:23 +0000 (12:13 +0200)]
GCC4,6: Squash warning in cmd_nand.c

cmd_nand.c: In function ‘do_nand’:
cmd_nand.c:490:7: warning: variable ‘chip’ set but not used
[-Wunused-but-set-variable]
cmd_nand.c:489:7: warning: variable ‘part’ set but not used
[-Wunused-but-set-variable]

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Scott Wood <scottwood@freescale.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>