]> git.sur5r.net Git - u-boot/log
u-boot
13 years agovideo: mb862xx: change controller detection message
Anatolij Gustschin [Sat, 16 Jul 2011 20:28:23 +0000 (22:28 +0200)]
video: mb862xx: change controller detection message

Signed-off-by: Anatolij Gustschin <agust@denx.de>
13 years agovideo: mb862xx: support Coral-PA controller
Anatolij Gustschin [Fri, 27 May 2011 14:08:20 +0000 (16:08 +0200)]
video: mb862xx: support Coral-PA controller

Add detection of Coral-PA and configure Coral CCF an MMR parameters
using CONFIG_SYS_MB862xx_CCF and CONFIG_SYS_MB862xx_MMR macros.
Use CCF and MMR parameters for Coral-P Eval. Board if the appropriate
macros weren't defined.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
13 years agovideo: Add SHARP LQ084S3LG01 LCD support on P1022DS
Timur Tabi [Thu, 26 May 2011 14:02:17 +0000 (09:02 -0500)]
video: Add SHARP LQ084S3LG01 LCD support on P1022DS

The SHARP LQ084S3LG01 is a TFT LCD used on the P1022DS (revision "C") board.
This device only supports 800x600 resolution, so if that resolution is selected,
assume that this is the device.  The device is attached to the LVDS port
on the P1022DS board.

The existing 800x600 entry (for the PDM360NG board) is actually 800x480,
so we fix that.  To support two different 800x resolutions, the Y-resolution
is now passed to fsl_diu_init() and both values are used to pick the proper
fb_videomode structure.

The data for the 800x600 video mode is originally from Jiang Yutang.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Jiang Yutang <b14898@freescale.com>
13 years agovideo: Use memset instead of loop
Matthias Weisser [Wed, 29 Jun 2011 11:57:25 +0000 (13:57 +0200)]
video: Use memset instead of loop

There is a optimized version of memset in u-boot available so use it instead
of the hand written loop version.

Signed-off-by: Matthias Weisser <weisserm@arcor.de>
13 years agoMerge branch 'master' of git://git.denx.de/u-boot-mmc
Wolfgang Denk [Tue, 2 Aug 2011 20:39:36 +0000 (22:39 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-mmc

* 'master' of git://git.denx.de/u-boot-mmc:
  Revert "AT91:mmc:fix multiple read/write error"

13 years agosf: macronix: disable write protection when initializing
Simon Guinot [Mon, 2 May 2011 11:01:38 +0000 (11:01 +0000)]
sf: macronix: disable write protection when initializing

Signed-off-by: Simon Guinot <sguinot@lacie.com>
13 years agosf: spansion: add support for S25FL129P_64K
Shaohui Xie [Wed, 20 Apr 2011 20:07:11 +0000 (20:07 +0000)]
sf: spansion: add support for S25FL129P_64K

Signed-off-by: Shaohui Xie <b21989@freescale.com>
Cc: Mike Frysinger <vapier@gentoo.org>
13 years agomtd/spi/macronix.c: add MX25L4005 and MX25L8005
Macpaul Lin [Wed, 20 Apr 2011 16:51:39 +0000 (16:51 +0000)]
mtd/spi/macronix.c: add MX25L4005 and MX25L8005

Add support of MX25L4005 and MX25L8005 according to the datasheet
http://www.mct.net/download/macronix/mx25l8005.pdf

This patch has been tested with MX25L4005 and MX25L8005

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
13 years agoMerge branch 'master' of git://git.denx.de/u-boot-ppc4xx
Wolfgang Denk [Tue, 2 Aug 2011 19:52:21 +0000 (21:52 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-ppc4xx

* 'master' of git://git.denx.de/u-boot-ppc4xx:
  net/4xx: Install interrupt handler after driver registration

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-blackfin
Wolfgang Denk [Tue, 2 Aug 2011 19:46:53 +0000 (21:46 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-blackfin

* 'master' of git://git.denx.de/u-boot-blackfin:
  Blackfin: jtag-console: fix timer usage
  Blackfin: switch to common display_options()
  Blackfin: serial: move early debug strings into .rodata section
  Blackfin: adi boards: also set stderr to nc with helper
  Blackfin: update anomaly lists to latest public info
  Blackfin: serial: convert to bfin_{read,write} helpers
  Blackfin: split out async setup
  Blackfin: adi boards: enable pretty flash progress output
  Blackfin: drop unused dma.h header from start code
  Blackfin: portmux: allow header to be included in assembly files
  Blackfin: cm-bf537e/cm-bf537u/tcm-bf537: enable mmc_spi support
  Blackfin: cm-bf537e/cm-bf537u/tcm-bf537: update network settings
  Blackfin: sync MMR read/write helpers with Linux
  Blackfin: gpio: optimize free path a little
  Blackfin: post: setup default CONFIG_SYS_POST_WORD_ADDR
  Blackfin: uart: fix printf warning
  Blackfin: add init.elf helper code
  Blackfin: dont reset SWRST on newer bf526 parts
  Blackfin: adi boards: enable multi serial support by default
  Blackfin: uart: add multiple serial support
  Blackfin: uart: move debug buffers into local bss

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-mips
Wolfgang Denk [Tue, 2 Aug 2011 19:45:45 +0000 (21:45 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-mips

* 'master' of git://git.denx.de/u-boot-mips:
  README: update MIPS related informations
  MIPS: make cache operation mode configurable
  MIPS: rename INFINEON_EBU_BOOTCFG to CONFIG_SYS_XWAY_EBU_BOOTFG
  MIPS: INCA-IP: rename inca-swap-bytes host tool

13 years agotqm834x.c: fix compiler warning
Wolfgang Denk [Sat, 30 Jul 2011 21:50:50 +0000 (23:50 +0200)]
tqm834x.c: fix compiler warning

Fix:

tqm834x.c:299: warning: passing argument 1 of 'get_ram_size' discards
qualifiers from pointer target type

Signed-off-by: Wolfgang Denk <wd@denx.de>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
13 years agoenvironment.h: fix warning: "CONFIG_ENV_IS_EMBEDDED" redefined
Wolfgang Denk [Sat, 30 Jul 2011 14:01:08 +0000 (14:01 +0000)]
environment.h: fix warning: "CONFIG_ENV_IS_EMBEDDED" redefined

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Stefan Roese <sr@denx.de>
13 years agofpga: constify to fix build warning
Wolfgang Denk [Sat, 30 Jul 2011 13:33:49 +0000 (13:33 +0000)]
fpga: constify to fix build warning

Fix compiler warning:

cmd_fpga.c:318: warning: passing argument 3 of 'fit_image_get_data'
from incompatible pointer type

Adding the needed 'const' here entails a whole bunch of additonal
changes all over the FPGA code.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Andre Schwarz <andre.schwarz@matrix-vision.de>
Cc: Murray Jensen <Murray.Jensen@csiro.au>
Acked-by: Andre Schwarz<andre.schwarz@matrix-vision.de>
13 years agoUnify timer_init() and cpu_init() prototypes
Wolfgang Denk [Sat, 30 Jul 2011 12:32:45 +0000 (12:32 +0000)]
Unify timer_init() and cpu_init() prototypes

Clean up some duplicated prototype declarations.
Get rid of now useless AVR32 initcalls.h file.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Albert Aribaud <albert.aribaud@free.fr>
Cc: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Cc: Graeme Russ <graeme.russ@gmail.com>
13 years agoARM: fix error: conflicting types for 'setenv'
seedshope [Sat, 30 Jul 2011 07:28:49 +0000 (07:28 +0000)]
ARM: fix error: conflicting types for 'setenv'

Also remove bogus comment.

Signed-off-by: Zhong hongbo <bocui107@gmail.com>
Changed commit message
Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Albert Aribaud <albert.aribaud@free.fr>
13 years agocfb_console.c: checkpatch cleanup
Wolfgang Denk [Sat, 30 Jul 2011 12:48:09 +0000 (12:48 +0000)]
cfb_console.c: checkpatch cleanup

Fix the following:

ERROR: do not initialise statics to 0 or NULL
ERROR: do not use assignment in if condition

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agocfb_console.c: drop custom PRINTD() and use debug() instead
Wolfgang Denk [Fri, 29 Jul 2011 09:55:28 +0000 (09:55 +0000)]
cfb_console.c: drop custom PRINTD() and use debug() instead

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agoCosmetic: reformat drivers/video/cfb_console.c
Wolfgang Denk [Fri, 29 Jul 2011 09:55:27 +0000 (09:55 +0000)]
Cosmetic: reformat drivers/video/cfb_console.c

Run cfb_console.c through indent and manually fix some of he
deficiencies of the automatic line breaking.

Fix multiline comments, excessive line spacing and such.

No changes to code done.

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agoREADME: update MIPS related informations
Daniel Schwierzeck [Wed, 27 Jul 2011 11:22:39 +0000 (13:22 +0200)]
README: update MIPS related informations

Amend section 'Directory Hierarchy' for current MIPS directory.
Describe config options for MIPS.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
Acked-by: Thomas Langer <thomas.langer@lantiq.com>
Signed-off-by: Shinya Kuribayashi <skuribay@pobox.com>
13 years agoMIPS: make cache operation mode configurable
Daniel Schwierzeck [Wed, 27 Jul 2011 11:22:38 +0000 (13:22 +0200)]
MIPS: make cache operation mode configurable

Currently the cache operation mode is hard-coded to
CONF_CM_CACHABLE_NONCOHERENT. This is not appropiate for CPUs or SOCs
which operate at a different mode.

This patch makes the cache operation mode configurable via board config.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
Acked-by: Thomas Langer <thomas.langer@lantiq.com>
Signed-off-by: Shinya Kuribayashi <skuribay@pobox.com>
13 years agoMIPS: rename INFINEON_EBU_BOOTCFG to CONFIG_SYS_XWAY_EBU_BOOTFG
Daniel Schwierzeck [Wed, 27 Jul 2011 11:22:37 +0000 (13:22 +0200)]
MIPS: rename INFINEON_EBU_BOOTCFG to CONFIG_SYS_XWAY_EBU_BOOTFG

This define is a board-specific config option and should be
renamed to follow the U-Boot naming convention. Additionally,
add an explaining comment for this option.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
Acked-by: Thomas Langer <thomas.langer@lantiq.com>
Signed-off-by: Shinya Kuribayashi <skuribay@pobox.com>
13 years agoMIPS: INCA-IP: rename inca-swap-bytes host tool
Daniel Schwierzeck [Wed, 27 Jul 2011 11:22:36 +0000 (13:22 +0200)]
MIPS: INCA-IP: rename inca-swap-bytes host tool

The INCA-IP SoC belongs to the Lantiq XWAY SoC product portfolio.
For the upcoming support of other Lantiq SoC devices this tool should
not solely depend on the INCA-IP board.

Rename the tool to xway-swap-bytes and add an config option
to enable compilation optionally.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
Acked-by: Thomas Langer <thomas.langer@lantiq.com>
Signed-off-by: Shinya Kuribayashi <skuribay@pobox.com>
13 years agoMerge branch 'master' of /home/wd/git/u-boot/custodians
Wolfgang Denk [Fri, 29 Jul 2011 23:39:14 +0000 (01:39 +0200)]
Merge branch 'master' of /home/wd/git/u-boot/custodians

* 'master' of /home/wd/git/u-boot/custodians:
  powerpc/8xxx: Remove dependency on <usb.h>
  powerpc/85xx: enable USB2 gadget mode for corenet ds board
  powerpc/85xx: verify the device tree before booting Linux
  MPC8xxx: drop redundant boot messages
  powerpc/85xx: Fix build failure for P1023RDS
  powerpc/p2041rdb: Enable SATA support
  powerpc/85xx: Cleanup handling of PVR detection for e500/e500mc/e5500
  powerpc/85xx: Fix up clock_freq property in CAN node of dts
  85xx: enable FDT support for STX SSA board
  powerpc/85xx: provide 85xx flush_icache for cmd_cache
  powerpc/p2041rdb: Enable backside L2 cache support
  powerpc/85xx: Handle the lack of L2 cache on P2040/P2040E
  powerpc/85xx: Add support for P2041[e] XAUI in SERDES
  powerpc/85xx: Rename P2040 id & SERDES to P2041
  powerpc/85xx: Adding configuration for DCSRCR to enable 32M access
  powerpc/85xx: Fix setting of EPAPR_MAGIC value

13 years agoConstify getenv(), setenv() and hash code functions
Wolfgang Denk [Fri, 29 Jul 2011 12:42:18 +0000 (14:42 +0200)]
Constify getenv(), setenv() and hash code functions

This is needed to get rid of build warnings like

main.c:311: warning: passing argument 2 of 'setenv' discards qualifiers from pointer target type

which result from commit 09c2e90 "unify version_string".

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Andreas Bießmann <andreas.devel@googlemail.com>
13 years agoREADME: udate Coding Style description to current status quo
Wolfgang Denk [Wed, 27 Jul 2011 10:59:55 +0000 (10:59 +0000)]
README: udate Coding Style description to current status quo

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agopowerpc/8xxx: Remove dependency on <usb.h>
Kumar Gala [Fri, 29 Jul 2011 13:51:26 +0000 (08:51 -0500)]
powerpc/8xxx: Remove dependency on <usb.h>

We used <usb.h> for USB_MAX_DEVICE.  However this requires we actual
build in support for USB into u-boot (which should not be required for
device tree fixup).

At this time no FSL SoC that utilizies this code (83xx/85xx) has more
than 2 USB controllers.  So we replace USB_MAX_DEVICE with a local
define FSL_MAX_NUM_USB_CTRLS.

If/when a device shows up with more than 2 controllers we can easily
bump this value or refactor into a proper define per SoC.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: enable USB2 gadget mode for corenet ds board
Shaohui Xie [Thu, 28 Jul 2011 08:17:32 +0000 (16:17 +0800)]
powerpc/85xx: enable USB2 gadget mode for corenet ds board

to make USB2 worked in gadget mode, we need to set it's 'dr_mode' to
'peripheral' in hwconfig, but driver starts scan from 'usb1', it'll break
out if it cannot find 'usb1', so drop the 'else' clause to make driver scan
all the 'usbx'.

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: verify the device tree before booting Linux
Timur Tabi [Tue, 3 May 2011 18:24:08 +0000 (13:24 -0500)]
powerpc/85xx: verify the device tree before booting Linux

Introduce ft_verify_fdt(), a function that is called after the device tree
has been fixed up, that displays warning messages if there is a mismatch
between the physical addresses of some devices that U-Boot has configured
with what the device tree says the addresses are.

This is a particular problem when booting a 36-bit device tree from a
32-bit U-Boot (or vice versa), because the physical address of CCSR is
wrong in the device tree.  When the operating system boots, no messages are
displayed, so the user generally has no idea what's wrong.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agoMPC8xxx: drop redundant boot messages
Wolfgang Denk [Mon, 25 Jul 2011 08:13:53 +0000 (10:13 +0200)]
MPC8xxx: drop redundant boot messages

Current code would print RAM size information like this:

DRAM:  DDR: 256 MiB (DDR1, 64-bit, CL=2, ECC off)

Turn a number of printf()s into debug() to get rid of the redundant
"DDR: " string like this:

DRAM:  256 MiB (DDR1, 64-bit, CL=2, ECC off)

Signed-off-by: Wolfgang Denk <wd@denx.de>
Acked-by: York Sun <yorksun@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Fix build failure for P1023RDS
Kumar Gala [Thu, 28 Jul 2011 19:34:30 +0000 (14:34 -0500)]
powerpc/85xx: Fix build failure for P1023RDS

When we added the fman fdt fixup we forgot to fixup the P1023RDS
platform.  So we would get:

fdt.c: In function 'fdt_fixup_fman_firmware':
fdt.c:465:15: error: 'CONFIG_SYS_FMAN_FW_LENGTH' undeclared (first use in this function)
fdt.c:465:15: note: each undeclared identifier is reported only once for each function it appears in

Add the needed #defines in P1023RDS.h to fix this.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/p2041rdb: Enable SATA support
Mingkai Hu [Wed, 27 Jul 2011 01:55:51 +0000 (09:55 +0800)]
powerpc/p2041rdb: Enable SATA support

Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Cleanup handling of PVR detection for e500/e500mc/e5500
Kumar Gala [Mon, 25 Jul 2011 14:28:39 +0000 (09:28 -0500)]
powerpc/85xx: Cleanup handling of PVR detection for e500/e500mc/e5500

At some point we broke the detection of e500v1 class cores.  Fix that
and simply the code to just utilize PVR_VER() to have a single case
statement.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Fix up clock_freq property in CAN node of dts
Bhaskar Upadhaya [Fri, 4 Mar 2011 14:57:58 +0000 (20:27 +0530)]
powerpc/85xx: Fix up clock_freq property in CAN node of dts

Fix up the device tree property associated with the Flexcan clock
frequency. This property is used to calculate the bit timing parameters
for Flexcan.

Signed-off-by: Bhaskar Upadhaya <Bhaskar.Upadhaya@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years ago85xx: enable FDT support for STX SSA board
Wolfgang Denk [Mon, 25 Jul 2011 13:15:44 +0000 (15:15 +0200)]
85xx: enable FDT support for STX SSA board

We also have to shift TEXT_BASE to accomodate for the additional
code size.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: provide 85xx flush_icache for cmd_cache
Matthew McClintock [Mon, 23 May 2011 08:38:53 +0000 (08:38 +0000)]
powerpc/85xx: provide 85xx flush_icache for cmd_cache

This provides a function that will override the weak function
flush_icache to let 85xx boards to flush the icache

cc: Kumar Gala <kumar.gala@freescale.com>
Signed-off-by: Matthew McClintock <msm@freescale.com>
13 years agopowerpc/p2041rdb: Enable backside L2 cache support
Mingkai Hu [Thu, 21 Jul 2011 22:03:54 +0000 (17:03 -0500)]
powerpc/p2041rdb: Enable backside L2 cache support

Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Handle the lack of L2 cache on P2040/P2040E
Kumar Gala [Thu, 21 Jul 2011 05:20:21 +0000 (00:20 -0500)]
powerpc/85xx: Handle the lack of L2 cache on P2040/P2040E

The P2040/P2040E have no L2 cache.  So we utilize the SVR to determine
if we are one of these devices and skip the L2 init code in cpu_init.c
and release.  For the device tree we skip the updating of the L2 cache
properties but we still update the chain of caches so the CPC/L3 node
can be properly updated.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Add support for P2041[e] XAUI in SERDES
Kumar Gala [Thu, 21 Jul 2011 05:20:20 +0000 (00:20 -0500)]
powerpc/85xx: Add support for P2041[e] XAUI in SERDES

We add XAUI_FM1 into the SERDES tables for P2041[e] devices.  However
for the P2040[e] devices that dont support XAUI we handle this at
runtime via SVR checks.  If we are on a P2040[e] device the SERDES
functions will behave as follows:

is_serdes_prtcl_valid() will always report invalid if prtcl passed in is
XAUI_FM1.

serdes_get_prtcl() will report NONE if the prtcl in the table is set to
XAUI_FM1.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Rename P2040 id & SERDES to P2041
Kumar Gala [Thu, 21 Jul 2011 05:20:19 +0000 (00:20 -0500)]
powerpc/85xx: Rename P2040 id & SERDES to P2041

P2041 is the superset part that covers both P2040 & P2041.  The only
difference between the two devices is that P2041 supports 10g/XAUI and
has an L2 cache.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Adding configuration for DCSRCR to enable 32M access
Stephen George [Wed, 20 Jul 2011 14:47:26 +0000 (09:47 -0500)]
powerpc/85xx: Adding configuration for DCSRCR to enable 32M access

Configuring DCSRCR to define the DCSR space to be 1G instead
of the default 4M. DCSRCR only allows selection of either 4M
or 1G.
Most DCSR registers are within 4M but the Nexus trace buffer
is located at offset 16M within the DCSR.

Configuring the LAW to be 32M to allow access to the Nexus
trace buffer. No TLB modification is required since accessing
the Nexus trace buffer from within u-boot is not required.

Signed-off-by: Stephen George <stephen.george@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Fix setting of EPAPR_MAGIC value
Kumar Gala [Thu, 21 Jul 2011 21:50:22 +0000 (16:50 -0500)]
powerpc/85xx: Fix setting of EPAPR_MAGIC value

Had a typo in the ifdef for 85xx, should be CONFIG_MPC85xx for it to get
triggered.  Was pull in the non-BookE magic number.

Reported-by: John Cortell
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agocfb_console: fix build breakage
Andreas Bießmann [Fri, 29 Jul 2011 07:10:13 +0000 (09:10 +0200)]
cfb_console: fix build breakage

Commit 09c2e90c110ef99f1203685acd1059114a51b167 "unify version_string"
introduced a build breakage in cfb_console.c

---8<---
cfb_console.c:1497: warning: format '%s' expects type 'char *', but
argument 3 has type 'const char (*)[]'
--->8---

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
13 years agoRevert "AT91:mmc:fix multiple read/write error"
Andy Fleming [Fri, 29 Jul 2011 01:47:02 +0000 (20:47 -0500)]
Revert "AT91:mmc:fix multiple read/write error"

This reverts commit c310fc840472a36e4b9d2505830e9dc8d458d63c.

The Atmel custodian had apparently rejected this patch's approach in
another thread, so this patch reverts it for now.

Signed-off-by: Andy Fleming <afleming@freescale.com>
13 years agopanic: remove warning "'noreturn' function does return"
Heiko Schocher [Tue, 26 Jul 2011 20:55:57 +0000 (20:55 +0000)]
panic: remove warning "'noreturn' function does return"

since commit

commit d2e8b911c0a0661d395ccac72156040702ac842d
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Wed Jun 29 11:58:04 2011 +0000

    panic: add noreturn attribute

I see the following warnings:

vsprintf.c: In function 'panic':
vsprintf.c:730: warning: 'noreturn' function does return

for nearly all boards. This patch fixes this warning.

Signed-off-by: Heiko Schocher <hs@denx.de>
cc: Mike Frysinger <vapier@gentoo.org>

13 years agopost, memory test: add memory_post_test() to include file
Heiko Schocher [Tue, 26 Jul 2011 20:31:08 +0000 (20:31 +0000)]
post, memory test: add memory_post_test() to include file

This include is needed, if this memory test is used "outside"
from post code, for example booting with nand_spl, and using
this memory test before copying u-boot code to RAM and jumping
to it.

Signed-off-by: Heiko Schocher <hs@denx.de>
13 years agoFix build error causes by "unify version_string"
Wolfgang Denk [Thu, 28 Jul 2011 20:14:26 +0000 (22:14 +0200)]
Fix build error causes by "unify version_string"

Commit 09c2e90 "unify version_string" introduced a build error,
fix it.

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agoRemoved obsolete Netstal boards
Niklaus Giger [Fri, 22 Jul 2011 14:10:18 +0000 (16:10 +0200)]
Removed obsolete Netstal boards

Signed-off-by: Niklaus Giger <niklaus.giger@member.fsf.org>
13 years agocleanup: Fix typos and misspellings in various files.
Mike Williams [Fri, 22 Jul 2011 04:01:30 +0000 (04:01 +0000)]
cleanup: Fix typos and misspellings in various files.

Recieve/Receive
recieve/receive
Interupt/Interrupt
interupt/interrupt
Addres/Address
addres/address

Signed-off-by: Mike Williams <mike@mikebwilliams.com>
13 years agorules.mk: replace GNU specific \w with POSIX equivalant
Jeroen Hofstee [Tue, 19 Jul 2011 10:41:50 +0000 (10:41 +0000)]
rules.mk: replace GNU specific \w with POSIX equivalant

If sed does not support the GNU \w regex extension, build attempts
lead to circular dependency warnings and finally build failure
(crc32.c not found). Build output before and after the patch on
FreeBSD is at:
http://lists.denx.de/pipermail/u-boot/2011-June/095235.html

Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
13 years agomkconfig: also create CONFIG defines with BSD sed
Jeroen Hofstee [Wed, 20 Jul 2011 08:38:21 +0000 (08:38 +0000)]
mkconfig: also create CONFIG defines with BSD sed

Parsing of boards.cfg fails on FreeBSD with the error:

sed: 1: "/=/ {s/=/\t/;q } ; { s/ ...": extra characters at the end
of q command

BSD sed expects commands to be on seperate 'lines', hence it expects
an additional ; before the closing brackets.
BSD sed does not support \t, replaced by literal tab.

Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Cc: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
13 years agoinclude/compiler.h: typedef ulong for FreeBSD
Jeroen Hofstee [Tue, 19 Jul 2011 10:41:48 +0000 (10:41 +0000)]
include/compiler.h: typedef ulong for FreeBSD

Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
13 years agonet/4xx: Install interrupt handler after driver registration
Stefan Roese [Tue, 12 Jul 2011 11:26:47 +0000 (13:26 +0200)]
net/4xx: Install interrupt handler after driver registration

Only install der 4xx-EMAC interrupt handlers *after* the core
network driver is registered.

This problem was noticed on the APM Taishan 440GX board, where
the board hung upon bootup after displaying "Net:".

Signed-off-by: Stefan Roese <sr@denx.de>
13 years agounify version_string
Andreas Bießmann [Mon, 18 Jul 2011 18:24:04 +0000 (20:24 +0200)]
unify version_string

This patch removes the architecture specific implementation of
version_string where possible. Some architectures use a special place
and therefore we provide U_BOOT_VERSION_STRING definition and a common
weak symbol version_string.

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
CC: Mike Frysinger <vapier@gentoo.org>
CC: Peter Pan <pppeterpppan@gmail.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
13 years agoCorrect ih_os for u-boot.img
aneeshv [Sat, 16 Jul 2011 02:53:20 +0000 (02:53 +0000)]
Correct ih_os for u-boot.img

Provide appropriate '-O u-boot' while doing mkimage
for u-boot.img

Signed-off-by: Aneesh V <aneesh@ti.com>
13 years agomkimage: add UBL header support for booting davinci cpus
Heiko Schocher [Sat, 16 Jul 2011 00:06:42 +0000 (00:06 +0000)]
mkimage: add UBL header support for booting davinci cpus

creating an u-boot.ubl file, which contains the UBL Header
needed for booting from NAND with the RBL from TI. For more
information read doc/README.ublimage.

Signed-off-by: Heiko Schocher <hs@denx.de>
13 years agoMAINTAINERS: integrator+versatile boards
Linus Walleij [Fri, 15 Jul 2011 02:15:41 +0000 (02:15 +0000)]
MAINTAINERS: integrator+versatile boards

- Take maintainership of the unlisted integratorap board
- Orphan the boards maintained by Peter Pearse, as he has retired
  from ARM

Cc: Philippe Robin <philippe.robin@arm.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agomv_common.c: don't compile reset_environment if ENV_IS_NOWHERE
Michael Jones [Thu, 14 Jul 2011 23:09:44 +0000 (23:09 +0000)]
mv_common.c: don't compile reset_environment if ENV_IS_NOWHERE

Doesn't make sense to provide this function to boards which defined
CONFIG_ENV_IS_NOWHERE. Such a board gets a linking error because
common/env_nowhere.c doesn't define saveenv().

Signed-off-by: Michael Jones <michael.jones@matrix-vision.de>
Acked-by: Mike Frysinger <vapier@gentoo.org>
13 years agofpga: support FPP Cyclone configuration
Michael Jones [Thu, 14 Jul 2011 23:09:41 +0000 (23:09 +0000)]
fpga: support FPP Cyclone configuration

Support FPGAs which use Fast Passive Parallel configuration

Signed-off-by: Michael Jones <michael.jones@matrix-vision.de>
13 years agofpga: add #define for Altera Cyclone EP3C5
Michael Jones [Thu, 14 Jul 2011 23:09:40 +0000 (23:09 +0000)]
fpga: add #define for Altera Cyclone EP3C5

Signed-off-by: Michael Jones <michael.jones@matrix-vision.de>
13 years agocmd_mac: fix help for 'mac read'
Michael Jones [Thu, 14 Jul 2011 22:09:31 +0000 (22:09 +0000)]
cmd_mac: fix help for 'mac read'

In the only implementation of 'mac read', it doesn't display the
contents of the eeprom as the help indicated unless compiled with
DEBUG. It only re-reads the contents of the EEPROM into memory.
Displaying the contents of the EEPROM is done by passing no
arguments to 'mac'.

Signed-off-by: Michael Jones <michael.jones@matrix-vision.de>
Acked-by: Detlev Zundel <dzu@denx.de>
13 years agocmd_mac: cleanup help
Michael Jones [Thu, 14 Jul 2011 22:09:30 +0000 (22:09 +0000)]
cmd_mac: cleanup help

Signed-off-by: Michael Jones <michael.jones@matrix-vision.de>
Acked-by: Detlev Zundel <dzu@denx.de>
13 years agoaltera: fix printf typo
Michael Jones [Thu, 14 Jul 2011 22:09:29 +0000 (22:09 +0000)]
altera: fix printf typo

Signed-off-by: Michael Jones <michael.jones@matrix-vision.de>
Acked-by: Detlev Zundel <dzu@denx.de>
13 years agocosmetic: spell fixes etc.
Michael Jones [Thu, 14 Jul 2011 22:09:28 +0000 (22:09 +0000)]
cosmetic: spell fixes etc.

Signed-off-by: Michael Jones <michael.jones@matrix-vision.de>
Acked-by: Detlev Zundel <dzu@denx.de>
13 years agoLet source cross-reference targets follow symbolic links
Horst Kronstorfer [Mon, 18 Jul 2011 01:21:18 +0000 (01:21 +0000)]
Let source cross-reference targets follow symbolic links

Tell 'find' to follow symbolic links, so that files under include/asm
and arch/$(ARCH)/include/asm/arch are added to the indexing file list.

Signed-off-by: Horst Kronstorfer <hkronsto@frequentis.com>
Acked-by: Detlev Zundel <dzu@denx.de>
13 years agokm/common: i2c deblock: enabled print of i2c deblock status
Stefan Bigler [Mon, 4 Jul 2011 22:24:02 +0000 (22:24 +0000)]
km/common: i2c deblock: enabled print of i2c deblock status

Enable printout of i2c deblocking status if chips were in block
state or deblocking failed.

Signed-off-by: Stefan Bigler <stefan.bigler@keymile.com>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>

13 years agokm/common: moved eeprom config to pbec specific part
Stefan Bigler [Mon, 4 Jul 2011 22:24:01 +0000 (22:24 +0000)]
km/common: moved eeprom config to pbec specific part

Moved eeprom config to specific part, to allow bigger eeprom write pages
for km_kirkwood designs. Write page only used for env eeprom in std use
cases. 24C128 has page size of 64bytes -> 8 time faster.

Signed-off-by: Stefan Bigler <stefan.bigler@keymile.com>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>

13 years agokm/common: use u-boot.kwb for u-boot update function on arm
Holger Brunck [Mon, 4 Jul 2011 22:24:00 +0000 (22:24 +0000)]
km/common: use u-boot.kwb for u-boot update function on arm

Now we use the standard u-boot make to build the Kirkwood binary.
The output file is u-boot.kwb. So use this name for the tftp
update function to avoid confusion, because this is the binary we
need on Kirkwood.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>

13 years agokm/common: add printings to boardid commands
Holger Brunck [Mon, 4 Jul 2011 22:23:59 +0000 (22:23 +0000)]
km/common: add printings to boardid commands

Be verbose if do_setboardid was called and print
correct names of variables in do_checkboardidhwk.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>

13 years agoext2: Simplify partial sector access logic
Anton Staaf [Mon, 13 Jun 2011 11:40:40 +0000 (11:40 +0000)]
ext2: Simplify partial sector access logic

Previously reading or writing zero full sectors (reading the end of
one sector and the beginning of the next for example) was special
cased and involved stack allocating a second sector buffer.  This
change uses the same code path for this case as well as when there
are a non-zero number of full sectors to access.  The result is
easier to read and reduces the maximum stack used.

Signed-off-by: Anton Staaf <robotboy@chromium.org>
Cc: Andy Fleming <afleming@freescale.com>
Acked-by: Detlev Zundel <dzu@denx.de>
13 years agoext2: Fix checkpatch violations
Anton Staaf [Mon, 13 Jun 2011 11:40:39 +0000 (11:40 +0000)]
ext2: Fix checkpatch violations

Fix all checkpatch violations in the low level Ext2 block
device reading code.  This is done in preparation for cleaning
up the partial sector access code.

Signed-off-by: Anton Staaf <robotboy@chromium.org>
Cc: Andy Fleming <afleming@freescale.com>
Acked-by: Detlev Zundel <dzu@denx.de>
13 years agocommon: move BUILD_BUG_ON define to common.h
Heiko Schocher [Wed, 8 Jun 2011 23:07:05 +0000 (23:07 +0000)]
common: move BUILD_BUG_ON define to common.h

see discussion also here:
http://patchwork.ozlabs.org/patch/75309/

Signed-off-by: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>
cc: Holger Brunck <holger.brunck@keymile.com>

13 years agokm/common: enable cramfs and cramfs cmdline
Holger Brunck [Sun, 5 Jun 2011 22:22:21 +0000 (22:22 +0000)]
km/common: enable cramfs and cramfs cmdline

All the km boards uses CRAMFS images where the kernel is stored.
This isn't architecture specific because we use it on ARM and
POWERPC.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>

13 years agopowerpc/km82xx: remove 82xx specific functions from common.c
Holger Brunck [Sun, 5 Jun 2011 22:22:20 +0000 (22:22 +0000)]
powerpc/km82xx: remove 82xx specific functions from common.c

Common code should be valid for more than one architecture,
therefore the km82xx specific code was removed from common.c.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>

13 years agokm/common: remove fdt_(gs)et_node_and_value
Holger Brunck [Sun, 5 Jun 2011 22:22:19 +0000 (22:22 +0000)]
km/common: remove fdt_(gs)et_node_and_value

This code is unused and therefore dead code.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>

13 years agokm/common: move ivm functions from to ivm.c
Holger Brunck [Sun, 5 Jun 2011 22:22:18 +0000 (22:22 +0000)]
km/common: move ivm functions from to ivm.c

The file common.c grows in the past. So move the IVM specific
code into an ivm.c file.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>

13 years agokm/common: remove saveenv from do_checkboardidhwkey
Holger Brunck [Sun, 5 Jun 2011 22:22:17 +0000 (22:22 +0000)]
km/common: remove saveenv from do_checkboardidhwkey

This is unneeded here because we save the environment when
the board boots the first time. At this time we have set
the values already.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>

13 years agokm/common: force set ethaddr after reading IVM
Holger Brunck [Sun, 5 Jun 2011 22:22:16 +0000 (22:22 +0000)]
km/common: force set ethaddr after reading IVM

The ethaddr is stored inside the inventory eeprom. During
boottime this value was read out and the ethaddr variable was
set. Previously this was only done if it ethaddr == NULL but
this is wrong for our ARM boards. Because ethaddr is at this
stage never NULL for ARM due to the random calculation of a
MAC address in mvgbe.c.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>

13 years agokm/common: remove obsolete defines and header
Holger Brunck [Sun, 5 Jun 2011 22:22:15 +0000 (22:22 +0000)]
km/common: remove obsolete defines and header

These defines and the header keymile_hdlc_enet.h are obsolete
due to the removed hdlc code.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>

13 years agokm/common: simplify debug environment
Holger Brunck [Mon, 4 Jul 2011 21:52:52 +0000 (21:52 +0000)]
km/common: simplify debug environment

The debug environment which is stored in textfiles in the
scripts directory was reworked. Two usecase are now present
which can be executed simply from the default environment:
run develop: this configures the environment to setup the
             rootfs via nfs
run ramfs: this configures the environment to setup the
           rootfs in ram

Each architecture now has a "arch" variable which is used
to load the architecture specific debug scripts and to set
the rootpath for NFS.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>

13 years agokm/common: add test sw starting variable
Thomas Herzmann [Sun, 5 Jun 2011 22:22:13 +0000 (22:22 +0000)]
km/common: add test sw starting variable

The test SW is started when the test_bank variable is set.

Signed-off-by: Thomas Herzmann <thomas.herzmann@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
13 years agokm/common: rework and simplify default environment
Holger Brunck [Mon, 4 Jul 2011 21:27:16 +0000 (21:27 +0000)]
km/common: rework and simplify default environment

This is the second step to simplify and decrease the default
environment for the keymile boards. The release usecase formaly
used to set the production environment was removed and the default
configuration is now the production environment. So the formar
environment variable "release" which has done a lot of things
in the past, simply erase the current environment and do a reset
which forces u-boot to setup the default environment again.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>

13 years agopart_dos: fix crash with big sector size
Sergei Shtylyov [Fri, 3 Jun 2011 09:37:43 +0000 (09:37 +0000)]
part_dos: fix crash with big sector size

Apple iPod nanos have sector sizes of 2 or 4 KiB, which crashes U-Boot when it
tries to read the MBR into 512-byte buffer situated on stack. Instead use the
variable length arrays to be safe with any large sector size.

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
13 years agopost, memorytest: add support for none powerpc archs
Heiko Schocher [Thu, 2 Jun 2011 19:38:24 +0000 (19:38 +0000)]
post, memorytest: add support for none powerpc archs

change bd->bi_memsize to gd->ram_size, as this is defined
on all archs, so this post test can used on none powerpc
archs too.

Signed-off-by: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <hs@denx.de>
cc: Mike Frysinger <vapier@gentoo.org>

13 years agopost, memorytest: fix if vstart is not = 0x0
Heiko Schocher [Tue, 31 May 2011 20:24:05 +0000 (20:24 +0000)]
post, memorytest: fix if vstart is not = 0x0

Signed-off-by: Heiko Schocher <hs@denx.de>
13 years agonet: Add SMSC89128 support
Phil Edworthy [Tue, 31 May 2011 03:53:11 +0000 (03:53 +0000)]
net: Add SMSC89128 support

Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Cc: Ben Warren <biggerbadderben@gmail.com>
13 years agodigsy_mtc: move board into vendor dir and add vendor logo
Anatolij Gustschin [Sat, 16 Jul 2011 10:26:50 +0000 (10:26 +0000)]
digsy_mtc: move board into vendor dir and add vendor logo

Signed-off-by: Anatolij Gustschin <agust@denx.de>
13 years agompc5200: digsy_mtc: add support for writing 'appreg' value
Anatolij Gustschin [Sun, 29 May 2011 21:18:51 +0000 (21:18 +0000)]
mpc5200: digsy_mtc: add support for writing 'appreg' value

Up to now only reading 'appreg' value was implemented in the
digsyMTC special 'mtc appreg' command. Extend the command to
support writing appreg value, too.

Signed-off-by: Werner Pfister <Pfister_Werner@intercontrol.de>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Acked-by: Detlev Zundel <dzu@denx.de>
13 years agompc5200: digsy_mtc: add support for graphic extension board
Anatolij Gustschin [Sun, 29 May 2011 21:16:20 +0000 (21:16 +0000)]
mpc5200: digsy_mtc: add support for graphic extension board

Add detection and initialisation for graphic extension board
and support splash screen when booting. Enable "bmp" command
in the board configuration and provide "disp" command to
be able to switch the display on/off.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Acked-by: Detlev Zundel <dzu@denx.de>
13 years agophylib: Detect link on 10G devices correctly
Andy Fleming [Wed, 18 May 2011 13:44:19 +0000 (13:44 +0000)]
phylib: Detect link on 10G devices correctly

gen10g_startup() had 2 bugs:

1) It had a boolean logic error in checking the MMD mask, and
always checked all of them.

2) It checked devices which don't actually report link state, which
meant that it would never believe the link was fully up.

Fix the boolean logic, and then mask the MMD mask so only link-reporting
devices are checked.

Signed-off-by: Andy Fleming <afleming@freescale.com>
Reported-by: Ed Swarthout <Ed.Swarthout@freescale.com>
13 years agobootp: add ntpserver option to bootp request
Luuk Paulussen [Mon, 16 May 2011 18:29:19 +0000 (18:29 +0000)]
bootp: add ntpserver option to bootp request

Signed-off-by: Luuk Paulussen <luuk.paulussen@alliedtelesis.co.nz>
Acked-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Cc: Ben Warren <biggerbadderben@gmail.com>
13 years agoadd command fitupd to run an update from a FIT image
Andreas Pretzsch [Sat, 16 Jul 2011 05:51:00 +0000 (05:51 +0000)]
add command fitupd to run an update from a FIT image

Command calls update_tftp() analogous to automatic update described
in doc/README.update.

Usage:
fitupd [addr]
        - run update from FIT image at addr
          or from tftp 'updatefile'

Signed-off-by: Andreas Pretzsch <apr@cn-eng.de>
13 years agoautomatic update from FIT image: add optional address parameter
Andreas Pretzsch [Sat, 16 Jul 2011 05:50:59 +0000 (05:50 +0000)]
automatic update from FIT image: add optional address parameter

Current update_tftp() flow:
  1.) fetch "updatefile" from defined TFTP server
  2.) check if FIT format
  3.) flash contained images

Add an address parameter to update_tftp(). If this address is non-zero,
skip the TFTP transfer and use the image at this address.
Also extend update_tftp() to return success/fail.

Signed-off-by: Andreas Pretzsch <apr@cn-eng.de>
13 years agopost: fix indendation/brace confusion
James Kosin [Thu, 14 Jul 2011 08:15:06 +0000 (08:15 +0000)]
post: fix indendation/brace confusion

The post.c code is missing braces around the pass case, and as a
result, the diagnostic function will post both fail and pass for
a failed test.  The reason for this bug is probably the incorrect
indentation used, so when reading the code it seems like there
are proper braces.

Indent the code to the correct depth and put proper braces around
the "else" branch of the "if" statement.

Signed-off-by: James Kosin <jkosin@intcomgrp.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agofix unconfigured out-of-tree building of tools
Mike Frysinger [Thu, 30 Jun 2011 16:56:20 +0000 (16:56 +0000)]
fix unconfigured out-of-tree building of tools

Now that the tools target requires the generated version header file, we
need to make sure that the directory it writes to exists.  In a configured
tree, this is taken care of for us.  But in an unconfigured one, the dir
does not yet exist causing a build error like so:

/bin/sh: line 5: ..../u-boot_build/include/version_autogenerated.h.tmp: No such file or directory

So create the dir for this file before we attempt to generate it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agopanic: add noreturn attribute
Mike Frysinger [Wed, 29 Jun 2011 11:58:04 +0000 (11:58 +0000)]
panic: add noreturn attribute

Since panic() never returns, we should add an appropriate attribute to
let gcc improve optimization around it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agosimplify clobber behavior with out-of-tree builds
Mike Frysinger [Fri, 24 Jun 2011 18:37:55 +0000 (18:37 +0000)]
simplify clobber behavior with out-of-tree builds

The targets/prerequisites are the same here; the rules only differ in
the recipes.  So move the if logic protection to the recipe part so we
can keep the rest the same.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agopost: new nor flash test
Mike Frysinger [Tue, 10 May 2011 13:35:40 +0000 (13:35 +0000)]
post: new nor flash test

This adds a simple flash test to automatically verify erasing,
writing, and reading of sectors.  The code is based on existing
Blackfin tests but generalized for everyone to use.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agopost: use ARRAY_SIZE
Mike Frysinger [Tue, 10 May 2011 07:28:35 +0000 (07:28 +0000)]
post: use ARRAY_SIZE

We've got a handy dandy macro already for calculating the number of
elements in an array, so use it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agopost: add gpio hotkey support
Mike Frysinger [Tue, 10 May 2011 07:01:21 +0000 (07:01 +0000)]
post: add gpio hotkey support

Now that we have the generic GPIO layer, we can easily provide a common
implementation for the post_hotkeys_pressed() function based on it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>