]> git.sur5r.net Git - u-boot/log
u-boot
13 years agoatstk1006: fix "#define XXXX 1"
Andreas Bießmann [Mon, 18 Apr 2011 04:12:39 +0000 (04:12 +0000)]
atstk1006: fix "#define XXXX 1"

Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
13 years agoatstk1004: fix "#define XXXX 1"
Andreas Bießmann [Mon, 18 Apr 2011 04:12:38 +0000 (04:12 +0000)]
atstk1004: fix "#define XXXX 1"

Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
13 years agoatstk1003: fix "#define XXXX 1"
Andreas Bießmann [Mon, 18 Apr 2011 04:12:37 +0000 (04:12 +0000)]
atstk1003: fix "#define XXXX 1"

Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
13 years agoatstk1002: fix "#define XXXX 1"
Andreas Bießmann [Mon, 18 Apr 2011 04:12:36 +0000 (04:12 +0000)]
atstk1002: fix "#define XXXX 1"

Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
13 years agoatngw100: fix "#define XXXX 1"
Andreas Bießmann [Mon, 18 Apr 2011 04:12:35 +0000 (04:12 +0000)]
atngw100: fix "#define XXXX 1"

Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
13 years agoavr32: use single linker script
Andreas Bießmann [Mon, 18 Apr 2011 04:12:34 +0000 (04:12 +0000)]
avr32: use single linker script

This patch move the atstk100x linker script to $(CPUDIR) and delete other
pure copies of this file in each board directory.

Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
13 years agoavr32/config.mk: simplify PLATFORM_RELFLAGS
Andreas Bießmann [Mon, 18 Apr 2011 04:12:33 +0000 (04:12 +0000)]
avr32/config.mk: simplify PLATFORM_RELFLAGS

This patch removes PLATFORM_RELFLAGS from board specific config.mk files and
define them in arch specific config.mk file.

Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
13 years agoavr32: fix linking
Andreas Bießmann [Wed, 9 Feb 2011 04:10:30 +0000 (04:10 +0000)]
avr32: fix linking

This patch fixes following error:

---8<---
avr32-linux-ld: --gc-sections and -r may not be used together
--->8---

Since 8aba9dceebb14144e07d19593111ee3a999c37fc all avr32 boards are broken due
to linking error as seen above.

Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
13 years agoAdd support for Bluewater Systems Snapper 9260 and 9G20 modules
Ryan Mallon [Tue, 1 Feb 2011 16:18:00 +0000 (16:18 +0000)]
Add support for Bluewater Systems Snapper 9260 and 9G20 modules

Add support for Bluewater Systems AT91 based Snapper 9260 and 9G20
single board computer modules. Includes NAND flash and Ethernet
support.

Signed-off-by: Ryan Mallon <ryan@bluewatersys.com>
13 years agoat91: fixed at91sam9263 system file
Daniel Gorsulowski [Thu, 20 Jan 2011 23:12:15 +0000 (23:12 +0000)]
at91: fixed at91sam9263 system file

Signed-off-by: Daniel Gorsulowski <Daniel.Gorsulowski@esd.eu>
13 years agoremove __attribute__ ((packed)) in at91 headers
Jens Scharsig [Wed, 22 Dec 2010 01:16:47 +0000 (01:16 +0000)]
remove __attribute__ ((packed)) in at91 headers

* remove __attribute__ ((packed)) to prevent byte access
  to soc registers in some gcc version

Signed-off-by: Jens Scharsig <js_at_ng@scharsoft.de>
13 years agoat91rm9200: fix lowlevel_init() SMRDATA size
Jens Scharsig [Sat, 18 Dec 2010 02:30:04 +0000 (02:30 +0000)]
at91rm9200: fix lowlevel_init() SMRDATA size

* use start/end label for initialization tables instead of fix values

Signed-off-by: Jens Scharsig <js_at_ng@scharsoft.de>
Acked-by: Andreas Bießmann <andreas.devel@googlemail.com>
13 years agoAT91: fix timer.c - remove reset_timer()
Reinhard Meyer [Wed, 10 Nov 2010 17:07:56 +0000 (18:07 +0100)]
AT91: fix timer.c - remove reset_timer()

Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoAT91: fix at91sam_wdt.c to reworked header files
Reinhard Meyer [Fri, 4 Feb 2011 19:17:33 +0000 (20:17 +0100)]
AT91: fix at91sam_wdt.c to reworked header files

Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoAT91: remove LEGACY from at91_rstc.h
Reinhard Meyer [Wed, 10 Nov 2010 17:08:47 +0000 (18:08 +0100)]
AT91: remove LEGACY from at91_rstc.h

Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoATMEL: fix dataflash (dirty) this file should be converted to struct SoC access
Reinhard Meyer [Tue, 9 Nov 2010 16:06:20 +0000 (17:06 +0100)]
ATMEL: fix dataflash (dirty) this file should be converted to struct SoC access

Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoAT91: change includes from asm/arch/io.h to asm/io.h
Reinhard Meyer [Sun, 7 Nov 2010 12:26:14 +0000 (13:26 +0100)]
AT91: change includes from asm/arch/io.h to asm/io.h

and remove the now unused asm/arch-at91/io.h

Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoAT91: cleanup at91sam9260_matrix.h to struct SoC access
Reinhard Meyer [Sun, 7 Nov 2010 11:38:43 +0000 (12:38 +0100)]
AT91: cleanup at91sam9260_matrix.h to struct SoC access

Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoATMEL: fix related common atmel driver files
Reinhard Meyer [Wed, 3 Nov 2010 15:32:56 +0000 (16:32 +0100)]
ATMEL: fix related common atmel driver files

Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoAT91: fix related at91 driver files
Reinhard Meyer [Wed, 3 Nov 2010 14:47:20 +0000 (15:47 +0100)]
AT91: fix related at91 driver files

Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoAT91: fix related at91 system/driver files
Reinhard Meyer [Wed, 3 Nov 2010 14:39:55 +0000 (15:39 +0100)]
AT91: fix related at91 system/driver files

Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoAT91: fix related arch-at91 header files
Reinhard Meyer [Wed, 3 Nov 2010 14:38:33 +0000 (15:38 +0100)]
AT91: fix related arch-at91 header files

Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoAT91: cleanup hardware.h, remove memory-map.h
Reinhard Meyer [Wed, 3 Nov 2010 10:30:23 +0000 (11:30 +0100)]
AT91: cleanup hardware.h, remove memory-map.h

Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoAT91: rework at91sam9g45.h
Reinhard Meyer [Fri, 18 Feb 2011 08:33:51 +0000 (09:33 +0100)]
AT91: rework at91sam9g45.h

Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoAT91: rework at91sam9263.h
Reinhard Meyer [Fri, 19 Nov 2010 09:05:01 +0000 (10:05 +0100)]
AT91: rework at91sam9263.h

Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoAT91: rework at91sam9261.h
Reinhard Meyer [Fri, 19 Nov 2010 09:04:37 +0000 (10:04 +0100)]
AT91: rework at91sam9261.h

Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoAT91: rework at91sam9260.h
Reinhard Meyer [Tue, 2 Nov 2010 10:55:42 +0000 (11:55 +0100)]
AT91: rework at91sam9260.h

Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoavr32: fixup definitions to ATMEL_BASE_xxx
Andreas Bießmann [Thu, 4 Nov 2010 23:15:31 +0000 (23:15 +0000)]
avr32: fixup definitions to ATMEL_BASE_xxx

Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
13 years agoavr32: rename memory-map.h -> hardware.h
Andreas Bießmann [Thu, 4 Nov 2010 23:15:30 +0000 (23:15 +0000)]
avr32: rename memory-map.h -> hardware.h

Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
13 years agoMerge branch 'master' of git://git.denx.de/u-boot-nand-flash
Wolfgang Denk [Sun, 15 May 2011 21:23:36 +0000 (23:23 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-nand-flash

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc85xx
Wolfgang Denk [Sun, 15 May 2011 21:20:10 +0000 (23:20 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx

13 years agonand_spl: nand_boot.c: Remove CONFIG_SYS_NAND_READ_DELAY
Stefan Roese [Wed, 4 May 2011 09:44:14 +0000 (11:44 +0200)]
nand_spl: nand_boot.c: Remove CONFIG_SYS_NAND_READ_DELAY

There are multiple reasons why this define should be removed:

First it saves some space and therefore fixes a problem we have on
the canyonlands_nand and glacier_nand targets right now.

Second, the define was hackish and would most likely not work on all
board using nand_boot.c. Boards not providing a real dev_ready()
function should implement a board specific function instead.

I checked and it seems, that all boards using nand_boot.c right now
already implement a board specific dev_ready() function. So this
patch should not break any boards and will result in smaller
NAND_SPL images.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Sughosh Ganu <urwithsughosh@gmail.com>
Cc: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Tested-by: Sughosh Ganu <urwithsughosh@gmail.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
13 years agonand_spl: nand_boot.c: Init nand_chip.options to 0
Stefan Roese [Wed, 4 May 2011 09:44:44 +0000 (11:44 +0200)]
nand_spl: nand_boot.c: Init nand_chip.options to 0

Patch 65a9db7b [nand_spl: Fix large page nand_command()] broke
nand booting on canyonlands. "options" has to be initialized to
0. If not, boards might have the NAND_BUSWIDTH_16 bit set,
resulting in wrong offset calculation.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Alex Waterman <awaterman@dawning.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
13 years agoDecreases code size of the nand_spl
Alex Waterman [Wed, 4 May 2011 13:10:15 +0000 (09:10 -0400)]
Decreases code size of the nand_spl

The canyonland boards nand_spl size is just under the maximum 4KByte size. This
patch decreases the size of the nand_spl to make a previous commit - commit
65a9db7be0868be91ba81b9b5bf821de82e6d9b0 - fit in the nand_spl.

Signed-off-by: Alex Waterman <awaterman@dawning.com>
Acked-by: Stefan Roese <sr@denx.de>
Signed-off-by: Scott Wood <scottwood@freescale.com>
13 years agoRevert "Fix building tools alone with host compiler"
Wolfgang Denk [Fri, 13 May 2011 11:36:32 +0000 (13:36 +0200)]
Revert "Fix building tools alone with host compiler"

This reverts commit bbc6353c740064c8e0741b772376a1a67a1c3f01.
It breaks building on many systems:
...
.../common/env_embedded.c:28:20: fatal error: config.h: No such file or directory
compilation terminated.
.../common/image.c:27:20: fatal error: common.h: No such file or directory
compilation terminated.
.../lib/crc32.c:12:20: fatal error: common.h: No such file or directory
compilation terminated.
.../lib/md5.c:28:22: fatal error: compiler.h: No such file or directory
compilation terminated.
.../lib/sha1.c:33:20: fatal error: common.h: No such file or directory
compilation terminated.

13 years agopowerpc/mpc8xxx: reword max tCKmin message
York Sun [Thu, 5 May 2011 23:14:14 +0000 (07:14 +0800)]
powerpc/mpc8xxx: reword max tCKmin message

Reword "The DIMM max tCKmin is ..." to "The DDR clock is faster than the slowest
DIMM(s) can support". Fixed interger type in printf as well.

Signed-off-by: York Sun <yorksun@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: fix compatible property for the L2 cache node
Timur Tabi [Fri, 29 Apr 2011 23:08:44 +0000 (18:08 -0500)]
powerpc/85xx: fix compatible property for the L2 cache node

The compatible property for the L2 cache node (on 85xx systems that don't
have a CPC) was using a value for the property length that did not match
the actual length of the property.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agokwbimage: Fix check variable of checksum
Nobuhiro Iwamatsu [Tue, 10 May 2011 17:33:08 +0000 (17:33 +0000)]
kwbimage: Fix check variable of checksum

calc_hdrcsum two times are checked. checksumi of exthdr is not checked.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
CC: Prafulla Wadaskar <prafulla@marvell.com>
13 years agoexamples: add smc911x_eeprom to clean target
Mike Frysinger [Sat, 7 May 2011 12:05:30 +0000 (12:05 +0000)]
examples: add smc911x_eeprom to clean target

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agoftpmu010.h: fix some missing declaration in header
Macpaul Lin [Mon, 2 May 2011 01:28:47 +0000 (01:28 +0000)]
ftpmu010.h: fix some missing declaration in header

Fix some missing declaration in header.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
13 years agoftsmc020: add missing definitions
Macpaul Lin [Sun, 1 May 2011 22:17:31 +0000 (22:17 +0000)]
ftsmc020: add missing definitions

Add missing definitions in header file according to datasheet.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
13 years agoftsmc020: un-nest the register structure in header
Macpaul Lin [Sun, 1 May 2011 22:17:30 +0000 (22:17 +0000)]
ftsmc020: un-nest the register structure in header

Un-nestted the register structure in ftsmc020.h

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
13 years agoftsmc020: fix relocation
Macpaul Lin [Sun, 1 May 2011 22:17:29 +0000 (22:17 +0000)]
ftsmc020: fix relocation

Avoid relocation problem by fix global declaration.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
13 years agoftide020: add faraday ide ahb controller
Macpaul Lin [Sun, 1 May 2011 21:28:56 +0000 (21:28 +0000)]
ftide020: add faraday ide ahb controller

Faraday's ftide020_s is an IDE-AHB controller for SoC design.
This patch add the u-boot driver (PIO) of ftide020 ATA (IDE) driver.
IDE commands include read, info, and other functions has been implemented.

Because this IDE controller support AHB interface only which is differ
from other most IDE controller supports PCI interface. Some registers
access is required during CMD/DATA I/O. Hence a configuration
"CONFIG_IDE_AHB" is required to be defined according to the feature in
cmd_ide.c.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
13 years agoREADME.arm-relocation: get relocated address in gdb
Ben Gardiner [Thu, 28 Apr 2011 11:03:21 +0000 (11:03 +0000)]
README.arm-relocation: get relocated address in gdb

When your emulator is connected at reset (or is used to load u-boot)
it is possible to get the relocation address from the gd->relocaddr
since gd is always in r8 (on ARM) it is addressable before the
gdb has remapped symbols.

Document this alternate method in-line with the original method
written by Heiko Schocher.

Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca>
CC: Heiko Schocher <hs@denx.de>
CC: Wolfgang Denk <wd@denx.de>
Acked-by: Heiko Schocher <hs@denx.de>
13 years agoREADME.arm-relocation: get relocated address from bdinfo
Ben Gardiner [Thu, 28 Apr 2011 06:49:47 +0000 (06:49 +0000)]
README.arm-relocation: get relocated address from bdinfo

The bdinfo command prints the relocaddr on ARM as it does
on PPC.

Update the debugging instructions for arm relocation to
reflect this fact rather than requiring that the user
rebuild the u-boot image using -DDEBUG.

Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca>
CC: Wolfgang Denk <wd@denx.de>
Acked-by: Heiko Schocher <hs@denx.de>
13 years agocosmetic: cmd_bdinfo.c: clean up by using checkpatch.pl
Macpaul Lin [Wed, 27 Apr 2011 16:28:35 +0000 (16:28 +0000)]
cosmetic: cmd_bdinfo.c: clean up by using checkpatch.pl

cmd_bdinfo.c: clean up with 2.6.38 checkpatch.pl

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
Acked-by: Detlev Zundel <dzu@denx.de>
13 years agomp2usb: finish the removal
Eric Bénard [Wed, 27 Apr 2011 20:18:24 +0000 (22:18 +0200)]
mp2usb: finish the removal

- remove from boards.cfg
- add to doc/README.scrapyard

Signed-off-by: Eric Bénard <eric@eukrea.com>
13 years agoREADME: Clarify difference of CONFIG_WATCHDOG and CONFIG_HW_WATCHDOG
Detlev Zundel [Wed, 27 Apr 2011 05:25:59 +0000 (05:25 +0000)]
README: Clarify difference of CONFIG_WATCHDOG and CONFIG_HW_WATCHDOG

Now that we have the documentation, the code should be changed to reflect
it ;)

Asd far as I can see, these are the places where HW_WATCHDOG is used
instead of WATCHDOG:

arch/blackfin/cpu/blackfin/watchdog.c
arch/m68k/cpu/mcf547x_8x/cpu.c

The relevant maintainers are on CC.

Signed-off-by: Detlev Zundel <dzu@denx.de>
Cc: Mike Frysinger <vapier@gentoo.org>
Cc: TsiChungLiew <Tsi-Chung.Liew@freescale.com>
13 years agoftsdmc021: add register definitions of ftsdmc021
Macpaul Lin [Tue, 26 Apr 2011 01:29:47 +0000 (01:29 +0000)]
ftsdmc021: add register definitions of ftsdmc021

Support registers definitions of ftsdmc021 SDRAM controller.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
13 years agoftahbc020s: Faraday FTAHBC020s AHB Bus Controller
Macpaul Lin [Tue, 26 Apr 2011 00:25:23 +0000 (00:25 +0000)]
ftahbc020s: Faraday FTAHBC020s AHB Bus Controller

ftahbc020s.h provides basic definitions of this controller
to help a SoC which use this AHB Controller could
do scalable software settings in lowlevel_init.S.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
13 years agoFix a few gcc warnings.
Joakim Tjernlund [Mon, 25 Apr 2011 01:39:43 +0000 (01:39 +0000)]
Fix a few gcc warnings.

Noticed while building all of mpc8xx. Also
constify usage string in timer.c
Warnings fixed are:
timer.c: In function 'timer':
timer.c:189: warning: format not a string literal and no format arguments
timer.c:258: warning: format not a string literal and no format arguments
atm.c: In function 'atmUnload':
atm.c:99: warning: array subscript is above array bounds
atm.c: In function 'atmLoad':
atm.c:65: warning: array subscript is above array bounds
codec.c: In function 'codsp_write_pop_int':
codec.c:678: warning: array subscript is above array bounds
codec.c: In function 'codsp_write_cop_short':
codec.c:585: warning: array subscript is above array bounds
codec.c: In function 'codsp_write_sop_int':
codec.c:512: warning: array subscript is above array bounds

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
13 years agoRemove remnants of obsolete CONFIG_SYS_GBL_DATA_SIZE comments
Michael Jones [Mon, 18 Apr 2011 22:12:33 +0000 (22:12 +0000)]
Remove remnants of obsolete CONFIG_SYS_GBL_DATA_SIZE comments

commit 25ddd1fb0a2281b182529afbc8fda5de2dc16d96 left remnants of
many comments about CONFIG_SYS_GBL_DATA_SIZE.

Signed-off-by: Michael Jones <michael.jones@matrix-vision.de>
13 years agohwmon: Extend lm63.c to support LM64
Dirk Eibach [Mon, 18 Apr 2011 08:43:14 +0000 (10:43 +0200)]
hwmon: Extend lm63.c to support LM64

This patch adds support for the National LM64 temperature
sensor with integrated fan control to lm63.c.
Main difference between LM63 and LM64 is 16°C offset in sensor
readings.

Signed-off-by: Dirk Eibach <eibach@gdsys.de>
13 years agoFix building tools alone with host compiler
François Revol [Fri, 18 Mar 2011 11:03:03 +0000 (11:03 +0000)]
Fix building tools alone with host compiler

- don't include config.h when building with host cc,
- HOSTCFLAGS was defined with the wrong name, so wasn't used,
- make sure make finds sources outside of tools/.

Signed-off-by: François Revol <revol@free.fr>
13 years agonet: xilinx emaclite: Fix return values
Michal Simek [Tue, 8 Mar 2011 04:25:53 +0000 (04:25 +0000)]
net: xilinx emaclite: Fix return values

Fix return values for initialize/init/recv/send functions

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agoFix variable flavor in examples/standalone/Makefile
Che-liang Chiou [Mon, 21 Feb 2011 21:07:00 +0000 (21:07 +0000)]
Fix variable flavor in examples/standalone/Makefile

GNU Makefile have two flavors of variables, recursively expanded that is
defined by using '=', and simply expanded that is defined by using ':='.

The bug is caused by using recursively expanded flavor for BIN and SREC.
As you can see below, they are prepended by $(obj) twice.

We can reproduce this bug with a simplified version of this Makefile:
$ cat >Makefile <<\EOF
obj := /path/to/obj/
ELF := hello_world

BIN_rec = $(addsuffix .bin,$(ELF))      # recursively expanded
BIN_sim := $(addsuffix .bin,$(ELF))     # simply expanded

ELF := $(addprefix $(obj),$(ELF))
BIN_rec := $(addprefix $(obj),$(BIN_rec))
BIN_sim := $(addprefix $(obj),$(BIN_sim))

show:
@echo BIN_rec=$(BIN_rec)
@echo BIN_sim=$(BIN_sim)

.PHONY: show
EOF
$ make show
BIN_rec=/path/to/obj//path/to/obj/hello_world.bin
BIN_sim=/path/to/obj/hello_world.bin

Signed-off-by: Che-Liang Chiou <clchiou@chromium.org>
13 years agonet/net.c: cosmetic: do not use assignment in if condition
Luca Ceresoli [Wed, 4 May 2011 02:40:47 +0000 (02:40 +0000)]
net/net.c: cosmetic: do not use assignment in if condition

This removes the following checkpatch issue:
 - ERROR: do not use assignment in if condition

Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Ben Warren <biggerbadderben@gmail.com>
13 years agonet/net.c: cosmetic: fix indentation
Luca Ceresoli [Wed, 4 May 2011 02:40:46 +0000 (02:40 +0000)]
net/net.c: cosmetic: fix indentation

This removes the following checkpatch issues:
 - ERROR: switch and case should be at the same indent
 - WARNING: suspect code indent for conditional statements
 - WARNING: labels should not be indented

Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Ben Warren <biggerbadderben@gmail.com>
13 years agonet/net.c: cosmetic: parentheses not required for return
Luca Ceresoli [Wed, 4 May 2011 02:40:45 +0000 (02:40 +0000)]
net/net.c: cosmetic: parentheses not required for return

This removes the following checkpatch issue:
 - ERROR: return is not a function, parentheses are not required

Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Ben Warren <biggerbadderben@gmail.com>
13 years agonet/net.c: cosmetic: fix pointer syntax issues
Luca Ceresoli [Wed, 4 May 2011 02:40:44 +0000 (02:40 +0000)]
net/net.c: cosmetic: fix pointer syntax issues

This removes the following checkpatch issues:
 - ERROR: "foo * bar" should be "foo *bar"
 - ERROR: "(foo*)" should be "(foo *)"

Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Ben Warren <biggerbadderben@gmail.com>
13 years agonet/net.c: cosmetic: fix brace issues
Luca Ceresoli [Wed, 4 May 2011 02:40:43 +0000 (02:40 +0000)]
net/net.c: cosmetic: fix brace issues

This removes the following checkpatch issues:
 - WARNING: braces {} are not necessary for single statement blocks
 - WARNING: braces {} are not necessary for any arm of this statement

Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Ben Warren <biggerbadderben@gmail.com>
13 years agonet/net.c: cosmetic: fix whitespace issues
Luca Ceresoli [Wed, 11 May 2011 03:59:56 +0000 (03:59 +0000)]
net/net.c: cosmetic: fix whitespace issues

This removes the following checkpatch issues:
 - ERROR: space prohibited after that open parenthesis '('
 - ERROR: space prohibited before that close parenthesis ')'
 - ERROR: space prohibited after that open square bracket '['
 - ERROR: space prohibited after that '&' (ctx:WxW)
 - ERROR: spaces required around that '=' (ctx:VxW)
 - ERROR: space required before the open parenthesis '('
 - ERROR: space required after that ',' (ctx:VxV)
 - ERROR: need consistent spacing around '+' (ctx:WxV)
 - WARNING: unnecessary whitespace before a quoted newline
 - WARNING: please, no spaces at the start of a line
 - WARNING: space prohibited between function name and open
   parenthesis '('

Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Ben Warren <biggerbadderben@gmail.com>
Cc: Mike Frysinger <vapier@gentoo.org>
13 years agonet/net.c: cosmetic: variable initializations
Luca Ceresoli [Wed, 11 May 2011 03:59:55 +0000 (03:59 +0000)]
net/net.c: cosmetic: variable initializations

This removes the following checkpatch errors:
 - ERROR: do not initialise globals to 0 or NULL
 - ERROR: spaces required around that '=' (ctx:VxV)
 - ERROR: that open brace { should be on the previous line

Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Ben Warren <biggerbadderben@gmail.com>
Cc: Mike Frysinger <vapier@gentoo.org>
13 years agonet/net.c: cosmetic: fix lines over 80 characters
Luca Ceresoli [Wed, 11 May 2011 03:59:54 +0000 (03:59 +0000)]
net/net.c: cosmetic: fix lines over 80 characters

This removes the following checkpatch warning:
 - WARNING: line over 80 characters

There are three such warnings left.

The first is hard to fix with cosmetic-only changes without compromising code
readability, so I'm leaving it as it is for now:
  WARNING: line over 80 characters
  #1537: FILE: net.c:1537:
  + [4 tabs] memcpy(((Ethernet_t *)NetArpWaitTxPacket)->et_dest, ...

The other two cannot be fixed without splitting string literals, so it is
preferred to keep them longer than 80 characters.

Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Ben Warren <biggerbadderben@gmail.com>
Cc: Mike Frysinger <vapier@gentoo.org>
13 years agolib, vsprintf: introduce strict_strtoul
Heiko Schocher [Mon, 2 May 2011 21:33:49 +0000 (21:33 +0000)]
lib, vsprintf: introduce strict_strtoul

as checkpatch proposes to use strict_strtoul instead of
simple_strtoul, introduce it.

Ported this function from Linux 2.6.38 commit ID:
521cb40b0c44418a4fd36dc633f575813d59a43d

Signed-off-by: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>
cc: Detlev Zundel <dzu@denx.de>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
13 years agoFix incorrect use of getenv() before relocation
Wolfgang Denk [Wed, 4 May 2011 10:32:28 +0000 (10:32 +0000)]
Fix incorrect use of getenv() before relocation

A large number of boards incorrectly used getenv() in their board init
code running before relocation.  In some cases this caused U-Boot to
hang when certain environment variables grew too long.
Fix the code to use getenv_r().

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Stefan Roese <sr@denx.de>
Cc: The LEOX team <team@leox.org>
Cc: Michael Schwingen <michael@schwingen.org>
Cc: Georg Schardt <schardt@team-ctech.de>
Cc: Werner Pfister <Pfister_Werner@intercontrol.de>
Cc: Dirk Eibach <eibach@gdsys.de>
Cc: Peter De Schrijver <p2@mind.be>
Cc: John Zhan <zhanz@sinovee.com>
Cc: Rishi Bhattacharya <rishi@ti.com>
Cc: Peter Tyser <ptyser@xes-inc.com>
13 years agocmd_nvedit.c: make error message more helpful
Wolfgang Denk [Wed, 4 May 2011 10:29:49 +0000 (10:29 +0000)]
cmd_nvedit.c: make error message more helpful

When calling getenv_f() with a too small buffer, it would print an
error message like this:

env_buf too small [32]

This is not really helpful as it does not give any indication which of
the calls might have failed.  Change this into:

env_buf [32 bytes] too small for value of "hwconfig"

so we know at least which variable caused the overflow; this usually
allows to quickly find the related code as well.

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agoNET: pass source IP address to packet handlers
Luca Ceresoli [Mon, 18 Apr 2011 06:19:50 +0000 (06:19 +0000)]
NET: pass source IP address to packet handlers

This is needed for the upcoming TFTP server implementation.

This also simplifies PingHandler() and fixes rxhand_f documentation.

Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it>
Cc: Wolfgang Denk <wd@denx.de>
Acked-by: Detlev Zundel <dzu@denx.de>
13 years agoREADME: remove spurious line
Luca Ceresoli [Thu, 14 Apr 2011 05:52:52 +0000 (05:52 +0000)]
README: remove spurious line

Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it>
Cc: Wolfgang Denk <wd@denx.de>
Acked-by: Detlev Zundel <dzu@denx.de>
13 years agoMPC8260: Fix compile problems with "hymod" board
Wolfgang Denk [Sun, 1 May 2011 04:35:06 +0000 (04:35 +0000)]
MPC8260: Fix compile problems with "hymod" board

Commit 9d8fbd1 "powerpc, 8xx: Fixup all 8xx u-boot.lds scripts" broke
building of the MPC8260 based "hymod" board.  Fix this.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Murray Jensen <Murray.Jensen@csiro.au>
Cc: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
13 years agozlib: fix DEBUG build
Mike Frysinger [Sun, 1 May 2011 12:31:02 +0000 (12:31 +0000)]
zlib: fix DEBUG build

The previous commit imported a little too much from upstream.  We need
to disable stdio.h when using U-Boot.

Reported-by: Wolfgang Denk <wd@denx.de>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agoMerge branch 'master' of git://git.denx.de/u-boot-ppc4xx
Wolfgang Denk [Thu, 12 May 2011 17:27:42 +0000 (19:27 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-ppc4xx

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-arm
Wolfgang Denk [Thu, 12 May 2011 17:26:45 +0000 (19:26 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-arm

13 years agonetconsole: remove `serverip' check
Simon Guinot [Sun, 1 May 2011 23:38:40 +0000 (23:38 +0000)]
netconsole: remove `serverip' check

Netconsole use the environment variable `ncip' to configure the
destination IP. `serverip' don't need to be defined.

Signed-off-by: Simon Guinot <sguinot@lacie.com>
13 years agoSerial: p1011: new vendor init options
John Rigby [Tue, 19 Apr 2011 10:42:39 +0000 (10:42 +0000)]
Serial: p1011: new vendor init options

Two new options:

CONFIG_PL011_SERIAL_RLCR

Some vendor versions of PL011 serial ports (e.g. ST-Ericsson U8500)
have separate receive and transmit line control registers.  Set
this variable to initialize the extra register.

CONFIG_PL011_SERIAL_FLUSH_ON_INIT

On some platforms (e.g. U8500) U-Boot is loaded by a second stage
boot loader that has already initialized the UART.  Define this
variable to flush the UART at init time.
empty fifo on init

Signed-off-by: John Rigby <john.rigby@linaro.org>
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
13 years agoPPC405EX CHIP_21 erratum
Steven A. Falco [Thu, 5 May 2011 14:08:35 +0000 (10:08 -0400)]
PPC405EX CHIP_21 erratum

APM errata CHIP_21 for the 405EX/EXr (from the rev 1.09 document dated
4/27/11) states that rev D processors may wake up with the wrong feature
set.  This patch implements the APM-proposed workaround.

To enable this patch for your board, add the appropriate define for your
CPU to your board header file.  See kilauea.h for more information.  The
following variants are supported:

#define CONFIG_SYS_4xx_CHIP_21_405EX_NO_SECURITY
#define CONFIG_SYS_4xx_CHIP_21_405EX_SECURITY
#define CONFIG_SYS_4xx_CHIP_21_405EXr_NO_SECURITY
#define CONFIG_SYS_4xx_CHIP_21_405EXr_SECURITY

Please note that if you select the wrong define, your board will not
boot, and JTAG will be required to recover.

Tested on custom boards using:

CONFIG_SYS_4xx_CHIP_21_405EX_NO_SECURITY  <sfalco@harris.com>
CONFIG_SYS_4xx_CHIP_21_405EX_SECURITY     <eibach@gdsys.de>

Signed-off-by: Steve Falco <sfalco@harris.com>
Acked-by: Dirk Eibach <eibach@gdsys.de>
Signed-off-by: Stefan Roese <sr@denx.de>
13 years agoEnable multiple fs options for Marvell SoC family on OpenRD boards
Clint Adams [Fri, 6 May 2011 16:36:47 +0000 (22:06 +0530)]
Enable multiple fs options for Marvell SoC family on OpenRD boards

Signed-off-by: Clint Adams <clint@debian.org>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Prafulla Wadaskar <prafulla@marvell.com>
Cc: Julian Pidancet <julian.pidancet@citrix.com>
13 years agoInitialize second PHY on OpenRD-Client and OpenRD-Ultimate
Clint Adams [Fri, 6 May 2011 16:36:47 +0000 (22:06 +0530)]
Initialize second PHY on OpenRD-Client and OpenRD-Ultimate

Though the OpenRD-Base only has one gigabit Ethernet port,
both the OpenRD-Client and OpenRD-Ultimate each have two.

On the Ultimate, the PHY addresses are consecutive, but
on the Client they are not.

(based on
<62a0952ce368acc725063a00a5ec680a639d6c27.1301040318.git.julian.pidancet@citrix.com>
<ad0a2dc1e422698b005d6f0ceb6dd6f75a87e00a.1301040318.git.julian.pidancet@citrix.com>
)

Signed-off-by: Clint Adams <clint@debian.org>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Prafulla Wadaskar <prafulla@marvell.com>
Cc: Julian Pidancet <julian.pidancet@citrix.com>
13 years agoAdd definitions for OpenRD-Client and OpenRD-Ultimate
Clint Adams [Fri, 6 May 2011 16:36:47 +0000 (22:06 +0530)]
Add definitions for OpenRD-Client and OpenRD-Ultimate

Signed-off-by: Clint Adams <clint@debian.org>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Prafulla Wadaskar <prafulla@marvell.com>
Cc: Julian Pidancet <julian.pidancet@citrix.com>
13 years agoRename openrd_base files to openrd
Clint Adams [Fri, 6 May 2011 16:36:47 +0000 (22:06 +0530)]
Rename openrd_base files to openrd

Signed-off-by: Clint Adams <clint@debian.org>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Prafulla Wadaskar <prafulla@marvell.com>
Cc: Julian Pidancet <julian.pidancet@citrix.com>
13 years agomv-common.h: fix DRAM banks configuration
Simon Guinot [Tue, 3 May 2011 15:47:34 +0000 (21:17 +0530)]
mv-common.h: fix DRAM banks configuration

The asm/arch/config.h header define CONFIG_NR_DRAM_BANKS_MAX, which is
needed to configure DRAM banks.

This patch move the asm/arch/config.h header inclusion above the DRAM
banks configuration.

Additionally this patch fix a typo.

Signed-off-by: Simon Guinot <sguinot@lacie.com>
13 years agoKirkwood: allow to override CONFIG_SYS_TCLK
Simon Guinot [Tue, 3 May 2011 15:47:34 +0000 (21:17 +0530)]
Kirkwood: allow to override CONFIG_SYS_TCLK

This patch allow to override CONFIG_SYS_TCLK from board configuration
files. This is needed for the Network Space v2 which use a non standard
core clock frequency (166MHz instead of 200MHz for a 6281 SoC).

As a possible enhancement for 6281 and 6282 devices, TCLK could be
dynamically detected by checking the Sample at Reset register bit 21.

Additionally this patch fix a typo.

Signed-off-by: Simon Guinot <sguinot@lacie.com>
Acked-by: Prafulla Wadaskar <Prafulla@marvell.com>
13 years agoMX31: change return value of get_cpu_rev
Stefano Babic [Fri, 29 Apr 2011 06:56:27 +0000 (08:56 +0200)]
MX31: change return value of get_cpu_rev

Drop warnings in get_cpu_rev and changes the return value
(a u32 instead of char * is returned) of the function
to be coherent with other processors.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Detlev Zundel <dzu@denx.de>
CC: Fabio Estevam <fabio.estevam@freescale.com>
13 years agoMX31: removed warning due to missing prototype
Stefano Babic [Tue, 26 Apr 2011 05:40:19 +0000 (07:40 +0200)]
MX31: removed warning due to missing prototype

Drop warning caused by missing prototype for
mxc_hw_watchdog_reset().

Signed-off-by: Stefano Babic <sbabic@denx.de>
13 years agogpio: imx: Fix return value on error
Fabio Estevam [Sat, 9 Apr 2011 10:43:24 +0000 (10:43 +0000)]
gpio: imx: Fix return value on error

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
13 years agoMX31: mx31pdk: Add watchdog support
Fabio Estevam [Sun, 10 Apr 2011 08:17:50 +0000 (08:17 +0000)]
MX31: mx31pdk: Add watchdog support

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
13 years agoda850evm: fix NAND WSTROBE and TA timings
Ben Gardiner [Wed, 20 Apr 2011 20:25:06 +0000 (16:25 -0400)]
da850evm: fix NAND WSTROBE and TA timings

The current NAND timings, introduced in commit
a3f88293ddd13facd734769c1664d35ab4ed681f da850evm: setup the NAND flash
timings , incorrectly set WSTROBE and TA to 0. A more recent inspection of the
values set by the Linux kernel indicates that these should be set to 1.

Set the WSTROBE and TA field of the EMIFA cycle-count timings configuration to
1 to match the values set by linux.

Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca>
CC: Stefano Babic <sbabic@denx.de>
CC: Sandeep Paulraj <s-paulraj@ti.com>
CC: Scott Wood <scottwood@freescale.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agokeymile boards: move keymile specific header in subdir
Valentin Longchamp [Wed, 4 May 2011 01:47:33 +0000 (01:47 +0000)]
keymile boards: move keymile specific header in subdir

Collect all keymile specific common headers in include/configs/km.

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Wolfgang Denk <wd@denx.de>
cc: Detlev Zundel <dzu@denx.de>
cc: Prafulla Wadaskar <prafulla@marvell.com>
cc: Kim Phillips <kim.phillips@freescale.com>
cc: Holger Brunck <holger.brunck@keymile.com>

13 years agokm/common: fix coding style issues in generic header
Holger Brunck [Fri, 8 Apr 2011 02:47:46 +0000 (02:47 +0000)]
km/common: fix coding style issues in generic header

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Acked-by: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>
cc: Detlev Zundel <dzu@denx.de>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
13 years agokm/common: implement setboardid command
Holger Brunck [Wed, 4 May 2011 01:47:30 +0000 (01:47 +0000)]
km/common: implement setboardid command

Read out board id and HW key from the IVM eeprom and set
these values as an environment variable.

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

13 years agocommon/hush: make get_local_var visible for other users
Holger Brunck [Fri, 8 Apr 2011 02:47:42 +0000 (02:47 +0000)]
common/hush: make get_local_var visible for other users

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Acked-by: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>
cc: Detlev Zundel <dzu@denx.de>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
13 years agokm/common: fix initial_boot_bank for bootpackages
Thomas Herzmann [Fri, 8 Apr 2011 02:47:41 +0000 (02:47 +0000)]
km/common: fix initial_boot_bank for bootpackages

The initial_boot_bank can be set when more than one application is
used in a bootpackage. But a value n <> 0 never led to booting from
bank n. Instead, bank 0 was booted. This patch fixes this.

Signed-off-by: Thomas Herzmann <thomas.herzmann@keymile.com>
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Acked-by: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>
cc: Detlev Zundel <dzu@denx.de>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
13 years agopowerpc/km82xx: fix compile issue for mgcoge2ne
Holger Brunck [Fri, 6 May 2011 00:41:55 +0000 (00:41 +0000)]
powerpc/km82xx: fix compile issue for mgcoge2ne

commit 91a3c14c (ppc, mgcoge: add DIP switch detection)
introduces an compile error due to an missing define in the
mgcoge2ne.h. DIP switch detection is valid for both boards.

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

13 years agopoweprc/km82xx: add board specific environment variable
Holger Brunck [Fri, 8 Apr 2011 02:47:30 +0000 (02:47 +0000)]
poweprc/km82xx: add board specific environment variable

On mgcoge3ne a new environment variable bobcatreset is used.
So this patch adds a possibility to add board specific
environment variables in general and this specific variable
for mgcoge3ne.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Acked-by: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>
cc: Detlev Zundel <dzu@denx.de>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
13 years agopowerpc/km82xx: adapt CONFIG_SYSSYPCR to manual
Holger Brunck [Fri, 8 Apr 2011 02:47:28 +0000 (02:47 +0000)]
powerpc/km82xx: adapt CONFIG_SYSSYPCR to manual

Reserved bit was changed according to the processors manual.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Acked-by: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>
cc: Detlev Zundel <dzu@denx.de>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
13 years agopowerpc/km82xx: add mgcoge3ne and remove mgcoge2ne support
Holger Brunck [Mon, 2 May 2011 22:56:55 +0000 (22:56 +0000)]
powerpc/km82xx: add mgcoge3ne and remove mgcoge2ne support

This patch adds support for the MPC8247 based board mgcoge3ne.
Additionaly mgcoge2ne board supprot was removed, because due
to the mgcoge3ne, this board is obsolete and not longer
maintained.
The board is similar to mgcoge. The difference is that
a NUMONYX flash is used and a different SDRAM (256MB).
Also introduce CONFIG_KM_82XX to collect ppc82xx common
settings and remove staticness from the common set_pin function.

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

13 years agopowerpc/km82xx: rework DIP switch detection
Huber, Andreas [Mon, 2 May 2011 22:56:54 +0000 (22:56 +0000)]
powerpc/km82xx: rework DIP switch detection

Introduce a struct for the BFTICU FPGA to increase the readability of
the code. And the define CONFIG_SYS_BFTICU_BASE was removed because
the CONFIG_SYS_FPGA_BASE is already the base value for BFTICU registers.

Signed-off-by: Andreas Huber <andreas.huber@keymile.com>
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Acked-by: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>
cc: Detlev Zundel <dzu@denx.de>

13 years agopowerpc/km82xx: rename mgcoge files to km82xx
Holger Brunck [Fri, 8 Apr 2011 04:23:55 +0000 (04:23 +0000)]
powerpc/km82xx: rename mgcoge files to km82xx

The directory and file mgcoge was renamed to km82xx.
Because other keymile 82xx will follow and will use the
same platform code.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Acked-by: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>
cc: Detlev Zundel <dzu@denx.de>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
13 years agopowerpc/km82xx: cleanup coding style for mgcoge.c
Holger Brunck [Fri, 8 Apr 2011 02:47:25 +0000 (02:47 +0000)]
powerpc/km82xx: cleanup coding style for mgcoge.c

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