]> git.sur5r.net Git - u-boot/log
u-boot
14 years agoBlackfin: punt headers for non-existent BF541
Mike Frysinger [Sun, 25 Jul 2010 20:17:45 +0000 (16:17 -0400)]
Blackfin: punt headers for non-existent BF541

There is no BF541 processor variant, so punt headers for it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agoBlackfin: unify gpio cfi implementations
Mike Frysinger [Sat, 24 Jul 2010 07:54:19 +0000 (03:54 -0400)]
Blackfin: unify gpio cfi implementations

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agoBlackfin: bfin_sdh: clean up send_cmd
Mike Frysinger [Mon, 21 Jun 2010 20:56:54 +0000 (20:56 +0000)]
Blackfin: bfin_sdh: clean up send_cmd

Simplify the command setup and status checking steps, and add a proper
timeout to the status polling code to avoid possible infinite hangs.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agoBlackfin: bfin_spi: add optional DMA support
Mike Frysinger [Wed, 5 May 2010 04:56:30 +0000 (00:56 -0400)]
Blackfin: bfin_spi: add optional DMA support

This moves the last piece from the old spi_flash driver to the new SPI
framework -- optional DMA RX support.  This typically cuts speeds by ~40%
at the cost of additional ~300 bytes.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agoBlackfin: add support for BF51x parts
Mike Frysinger [Sun, 12 Oct 2008 01:55:21 +0000 (21:55 -0400)]
Blackfin: add support for BF51x parts

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agoBlackfin: add support for BF538/BF539 processors
Mike Frysinger [Thu, 7 Aug 2008 17:10:41 +0000 (13:10 -0400)]
Blackfin: add support for BF538/BF539 processors

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agoMerge branch 'next' of /home/wd/git/u-boot/next
Wolfgang Denk [Tue, 28 Sep 2010 21:30:47 +0000 (23:30 +0200)]
Merge branch 'next' of /home/wd/git/u-boot/next

Conflicts:
include/ppc4xx.h

Signed-off-by: Wolfgang Denk <wd@denx.de>
14 years agoPrepare v2010.09 v2010.09
Wolfgang Denk [Tue, 28 Sep 2010 21:20:55 +0000 (23:20 +0200)]
Prepare v2010.09

Signed-off-by: Wolfgang Denk <wd@denx.de>
14 years agompc512x: fix build issues
Wolfgang Denk [Tue, 28 Sep 2010 21:02:05 +0000 (23:02 +0200)]
mpc512x: fix build issues

Commit 800eb0964 "POST cleanup." removed file
arch/powerpc/cpu/mpc512x/common.c but failed to remove the reference
to it from arch/powerpc/cpu/mpc512x/Makefile which causes somewhat
obscure build errors:

make[1]: *** No rule to make target `/work/wd/tmp-ppc/arch/powerpc/cpu/mpc512x/.depend', needed by `_depend'.  Stop.

Fix these.

Signed-off-by: Wolfgang Denk <wd@denx.de>
14 years agoARMV7: OMAP3: Update Beagle xM pinmux with USB hub and DVI gpio setup
Steve Sakoman [Mon, 20 Sep 2010 16:55:24 +0000 (09:55 -0700)]
ARMV7: OMAP3: Update Beagle xM pinmux with USB hub and DVI gpio setup

This patch adds missing pinmux setup for 4 GPIO signals used on the Beagle xM:
 - USB hub reset (gpio_56)
 - P8 USB hub reset (gpio_63)
 - DVI enable (gpio_129)
 - P8 DVI enable (gpio_170)

Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
14 years agoARMV7: OMAP4: Calculate SDRAM size
Aneesh V [Sun, 12 Sep 2010 05:02:55 +0000 (10:32 +0530)]
ARMV7: OMAP4: Calculate SDRAM size

Calculate the SDRAM size from DMM configuration registers instead of using
hard-coded values. This gives correct values for all different boards.

It's assumed that DMM sections do not overlap memory areas.

Signed-off-by: Aneesh V <aneesh@ti.com>
Tested-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
14 years agoARMV7: OMAP4: Fix Panda pinmux setting to enable Wifi/BT Module
Steve Sakoman [Wed, 22 Sep 2010 14:30:11 +0000 (07:30 -0700)]
ARMV7: OMAP4: Fix Panda pinmux setting to enable Wifi/BT Module

This patch corrects the pinmux settings to enable proper functioning
of the wifi/bluetooth module.

Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
14 years agoixp/npe: Remove duplicated comment
Thomas Weber [Tue, 28 Sep 2010 12:03:32 +0000 (14:03 +0200)]
ixp/npe: Remove duplicated comment

Signed-off-by: Thomas Weber <weber@corscience.de>
14 years agobmw: Remove duplicated include of header file
Thomas Weber [Tue, 28 Sep 2010 12:03:33 +0000 (14:03 +0200)]
bmw: Remove duplicated include of header file

Signed-off-by: Thomas Weber <weber@corscience.de>
14 years agoAdd support for operating system OSE
Torkel Lundgren [Tue, 28 Sep 2010 09:05:36 +0000 (11:05 +0200)]
Add support for operating system OSE

Add OSE as operating system for mkimage and bootm.

Signed-off-by: Torkel Lundgren <torkel.lundgren@enea.com>
14 years agoREADME: Fix description of version numbering scheme
Thomas Weber [Tue, 28 Sep 2010 06:06:25 +0000 (08:06 +0200)]
README: Fix description of version numbering scheme

The version numbering scheme was changed in Oct, 2008.
This patch brings the documentation to the actual level.
The description is taken from:
http://www.denx.de/wiki/U-Boot/ReleaseCycle

Signed-off-by: Thomas Weber <weber@corscience.de>
Changed text slightly.
Signed-off-by: Wolfgang Denk <wd@denx.de>
14 years agoFix "ubi part" cmd re-entrancy
Karl Beldan [Thu, 23 Sep 2010 08:46:31 +0000 (10:46 +0200)]
Fix "ubi part" cmd re-entrancy

Commit 2ee951ba (UBI: Enable re-initializing of the "ubi part" command)
reset mtd_devs in ubi_exit() but missed ubi_init()'s failure path.

Signed-off-by: Karl Beldan <karl.beldan@gmail.com>
Cc: Stefan Roese <sr@denx.de>
Signed-off-by: Stefan Roese <sr@denx.de>
14 years agoMerge branch 'master' of git://git.denx.de/u-boot-ppc4xx
Wolfgang Denk [Thu, 23 Sep 2010 19:16:32 +0000 (21:16 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-ppc4xx

14 years ago83xx: Remove warmboot parameter from PCI init functions
Peter Tyser [Wed, 15 Sep 2010 00:13:50 +0000 (19:13 -0500)]
83xx: Remove warmboot parameter from PCI init functions

This change lays the groundwork for the BOOTFLAG_* flags being removed.

This change has the small affect of delaying 100ms on PCI initialization
after a warm boot as opposed to the optimal 1ms on some boards.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
included the mpc8308_p1m board.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
14 years agompc83xx: extend CONFIG_SYS_BOOTMAPSZ increase to mpc8308_p1m
Kim Phillips [Wed, 22 Sep 2010 20:36:27 +0000 (15:36 -0500)]
mpc83xx: extend CONFIG_SYS_BOOTMAPSZ increase to mpc8308_p1m

continuation of commit 39da1ba923d55f316f9f1bb3a960e4ed91dc17ac:
"e300: increase CONFIG_SYS_BOOTMAPSZ to allow booting large kernels"

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
14 years agompc83xx: fix pcie build warning
Kim Phillips [Wed, 22 Sep 2010 20:31:01 +0000 (15:31 -0500)]
mpc83xx: fix pcie build warning

Configuring for MPC8308RDB board...
pcie.c: In function 'mpc83xx_pcie_register_hose':
pcie.c:143: warning: assignment makes pointer from integer without a cast

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
14 years agompc8308_p1m: support for MPC8308 P1M board
Ilya Yanok [Fri, 17 Sep 2010 21:41:50 +0000 (23:41 +0200)]
mpc8308_p1m: support for MPC8308 P1M board

This patch provides support for MPC8308 P1M board with the following
set of features:
 Dual UART is supported
 NOR flash is supported
 Both TSEC Ethernet controllers are supported
 PCI Express initialization is supported
 Both I2C controllers are supported

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
14 years agoMPC8308RDB: various clean ups
Ilya Yanok [Fri, 17 Sep 2010 21:41:49 +0000 (23:41 +0200)]
MPC8308RDB: various clean ups

This patch cleans up the Freescale MPC8308RDB Development board support.
Things fixed:
 - Removed unused PCIE2 definitions from configuration
 - SICR{L,H} defines used for System I/O Configuration Registers values
   instead of hardcoding
 - CONFIG_SYS_SCCR_PCIEXP1CM used to enable PCIE clock instead of
   writing to SCCR from the board code
 - sleep mode stuff removed as MPC8308 has no support for deep sleep and
   PMCCR1 register. board_early_init_f() removed.
 - MPC8308 has no ERRATA for DDR controller so workaround removed
 - 'assignment in if statement' issues solved
 - use LBLAWAR_* defines instead of hardcoding

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
14 years agompc8308: add SICR{L,H} fields definitions
Ilya Yanok [Fri, 17 Sep 2010 21:41:48 +0000 (23:41 +0200)]
mpc8308: add SICR{L,H} fields definitions

This patch adds defines to set supported fields in System I/O
Configuration Registers High and Low on Freescale MPC8308 CPU.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
14 years agompc83xx: add support for setting PCIE clocks
Ilya Yanok [Fri, 17 Sep 2010 21:41:47 +0000 (23:41 +0200)]
mpc83xx: add support for setting PCIE clocks

This patch adds support for setting PCIE clocks in cpu_init.c by
providing CONFIG_SYS_SCCR_PCIEXP{1,2} in configuration.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
14 years agompc83xx/pcie: make it compile with PCIE2 unconfigured
Ilya Yanok [Fri, 17 Sep 2010 21:41:46 +0000 (23:41 +0200)]
mpc83xx/pcie: make it compile with PCIE2 unconfigured

MPC8308 has only one PCIE host controller so we want it to compile
without CONFIG_SYS_PCIE2_CFG_{BASE,SIZE} defined.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
14 years agoe300: increase CONFIG_SYS_BOOTMAPSZ to allow booting large kernels
Ira W. Snyder [Fri, 10 Sep 2010 22:42:32 +0000 (15:42 -0700)]
e300: increase CONFIG_SYS_BOOTMAPSZ to allow booting large kernels

Newer Linux kernels can overrun the initial memory window used for
booting with their BSS area. When this happens, they overwrite the FDT
and silently fail to boot.

On e300 CPUs, the Linux kernel uses an initial BAT covering the first
256MB of RAM. See arch/powerpc/kernel/head_32.S for details. Increase
the value of CONFIG_SYS_BOOTMAPSZ to accommodate the maximum value
allowed by Linux. This will allow very large kernels to boot.

Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
14 years agompc831xerdb: enable mtdparts for NAND
Scott Wood [Mon, 30 Aug 2010 23:04:52 +0000 (18:04 -0500)]
mpc831xerdb: enable mtdparts for NAND

The default partition table matches the .dts files for these boards in
Linux.  This allows these partitions to be used by name with U-Boot's
"nand" command.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
14 years agoppc4xx: Disable trace broadcast for 44x non debug mode
Victor Gallardo [Thu, 16 Sep 2010 18:32:04 +0000 (11:32 -0700)]
ppc4xx: Disable trace broadcast for 44x non debug mode

By default the trace broadcast is enabled on 44x systems.

To reduce power consumption when instruction tracing is
not needed, disable trace broadcast.

Check External Debug Mode (EDM) bit to detect if it should be
disabled or not.

Resetting system via a debugger will set the DBCR0[EDM] bit.
Resetting via u-boot or OS will not.

Signed-off-by: Victor Gallardo <vgallardo@apm.com>
Signed-off-by: Stefan Roese <sr@denx.de>
14 years agoppc4xx: Cleanup of PVR detection code in cpu.c
Stefan Roese [Fri, 3 Sep 2010 11:27:02 +0000 (13:27 +0200)]
ppc4xx: Cleanup of PVR detection code in cpu.c

This patch cleans the PVR detection code in check_cpu() up a bit.
Basically the strings are better seperated, resulting in an easier
to understand and maintain code version.

The #ifdef's couldn't be removed easily because of two reasons:

- Some SoC revisions have the same PVR, so need a way to differentiate
  between those two SoC's.
- In some case statements registers only available in this SoC variant
  are referenced.

Instead I moved the CONFIG_440 #ifdef a bit, so that 405 platforms don't
add this 440 detection code and vice versa. Resulting in this U-Boot
image size change:

405EX (Kilauea):     408 bytes less
440EPx (Sequoia):    604 bytes less
460EX (Canyonlands): 564 bytes less

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
14 years agoppx4xx: remove unused functionality for DU405 boards
Matthias Fuchs [Tue, 21 Sep 2010 07:38:04 +0000 (09:38 +0200)]
ppx4xx: remove unused functionality for DU405 boards

Remove some unused functionality to make U-Boot build again.
Especially PCI is not used on the board.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu>
Signed-off-by: Stefan Roese <sr@denx.de>
14 years agoRemove unused CONFIG_SERIAL_SOFTWARE_FIFO feature
Stefan Roese [Wed, 15 Sep 2010 07:33:25 +0000 (09:33 +0200)]
Remove unused CONFIG_SERIAL_SOFTWARE_FIFO feature

This patch removes the completely unused CONFIG_SERIAL_SOFTWARE_FIFO
feature from U-Boot. It has only been implemented for PPC4xx and was not
used at all. So let's remove it and make the code smaller and cleaner.

Signed-off-by: Stefan Roese <sr@denx.de>
Acked-by: Detlev Zundel <dzu@denx.de>
14 years agoppc4xx: Remove now unused CONFIG_UART1_CONSOLE
Stefan Roese [Tue, 21 Sep 2010 08:24:36 +0000 (10:24 +0200)]
ppc4xx: Remove now unused CONFIG_UART1_CONSOLE

CONFIG_UART1_CONSOLE was a PPC4xx specific implementation and is now
removed since the move from the 4xx UART driver to the common NS16550
UART driver. Let's remove all references to this define now.

Signed-off-by: Stefan Roese <sr@denx.de>
14 years agoppc4xx: Use common NS16550 driver for PPC4xx UART
Stefan Roese [Mon, 20 Sep 2010 14:05:31 +0000 (16:05 +0200)]
ppc4xx: Use common NS16550 driver for PPC4xx UART

This patch removes the PPC4xx UART driver. Instead the common NS16550
driver is used, since all PPC4xx SoC's use this peripheral device.

The file 4xx_uart.c now only implements the UART clock calculation
function which also sets the SoC internal UART divisors.

All PPC4xx board config headers are changed to use this common NS16550
driver now.

Tested on these boards:
acadia, canyonlands, katmai, kilauea, sequoia, zeus

Signed-off-by: Stefan Roese <sr@denx.de>
14 years agoppc4xx: Big header cleanup part 2, mostly PPC405 related
Stefan Roese [Sun, 12 Sep 2010 04:21:37 +0000 (06:21 +0200)]
ppc4xx: Big header cleanup part 2, mostly PPC405 related

This cleanup is done by creating header files for all SoC versions and
moving the SoC specific defines into these special headers. This way the
common header ppc405.h and ppc440.h can be cleaned up finally.

As a part from this cleanup, the GPIO definitions for PPC405EP are
corrected. The high and low parts of the registers (for example
CONFIG_SYS_GPIO0_OSRL vs. CONFIG_SYS_GPIO0_OSRH) have been defined in
the wrong order. This patch now fixes this issue by switching these
xxxH and xxxL values. This brings the GPIO 405EP port in sync with all
other PPC4xx ports.

Signed-off-by: Stefan Roese <sr@denx.de>
14 years agoppc4xx: Big header cleanup, mostly PPC440 related
Stefan Roese [Sat, 11 Sep 2010 07:31:43 +0000 (09:31 +0200)]
ppc4xx: Big header cleanup, mostly PPC440 related

This patch starts a bit PPC4xx header cleanup. First patch mostly
touches PPC440 files. A later patch will touch the PPC405 files as well.

This cleanup is done by creating header files for all SoC versions and
moving the SoC specific defines into these special headers. This way the
common header ppc405.h and ppc440.h can be cleaned up finally.

Signed-off-by: Stefan Roese <sr@denx.de>
14 years agoppc4xx: Move gpio.h to ppc4xx-gpio.h since its ppc4xx specific
Stefan Roese [Thu, 16 Sep 2010 12:30:37 +0000 (14:30 +0200)]
ppc4xx: Move gpio.h to ppc4xx-gpio.h since its ppc4xx specific

Signed-off-by: Stefan Roese <sr@denx.de>
14 years agoppc4xx: Move ppc4xx headers to powerpc include directory
Stefan Roese [Thu, 9 Sep 2010 17:18:00 +0000 (19:18 +0200)]
ppc4xx: Move ppc4xx headers to powerpc include directory

This patch moves some ppc4xx related headers from the common include
directory (include/) to the powerpc specific one
(arch/powerpc/include/asm/). This way to common include directory is not
so cluttered with files.

Signed-off-by: Stefan Roese <sr@denx.de>
14 years agoppc4xx: Remove unreferenced file include/405_dimm.h
Stefan Roese [Thu, 9 Sep 2010 17:19:18 +0000 (19:19 +0200)]
ppc4xx: Remove unreferenced file include/405_dimm.h

Signed-off-by: Stefan Roese <sr@denx.de>
14 years agoppc4xx/fdt/flash: Change fdt_fixup_nor_flash_node() to not rely on cs size
Stefan Roese [Thu, 16 Sep 2010 12:01:53 +0000 (14:01 +0200)]
ppc4xx/fdt/flash: Change fdt_fixup_nor_flash_node() to not rely on cs size

This patch changes the behaviour of the fdt_fixup_nor_flash_node()
function. Now it doesn't patch the size of the "reg" property with the
chip-select size, but with the size returned from the new function
flash_get_bank_size(). This function will return per weak default the
flash size of the bank (bank = chip-select numer) detected by the flash
driver. If this does not fit your needs, this function may be overridden
by a board specific one.

For this the parameters needed to be changed. So I intentionally squashed
the PPC4xx stuff using this routine into this patch. Otherwise it would
not be git-bisectable anymore.

The board specific function for the AMCC/APM Ebony eval board is now
included in this patch version.

Signed-off-by: Stefan Roese <sr@denx.de>
Tested-by: Detlev Zundel <dzu@denx.de>
Cc: Gerald Van Baren <vanbaren@cideas.com>
Cc: Wolfgang Denk <wd@denx.de>
14 years agoppc4xx: POST UART: Use in/out_8() io-accessor functions
Stefan Roese [Tue, 14 Sep 2010 07:38:18 +0000 (09:38 +0200)]
ppc4xx: POST UART: Use in/out_8() io-accessor functions

This patch fixes a problem in the PPC4xx POST UART driver. This driver
incorrectly used the in/out8() io-accessor functions. This could lead to
problems since these functions don't guarantee execution ordering. This
patch now replaces these functions with the correct ones.

Additionally the driver is converted to using the NS16550 struct instead
of macros for the register offsets.

And some common code is factored out for better maintainability.

Signed-off-by: Stefan Roese <sr@denx.de>
14 years agoppc4xx: Fix CATcenter build
Stefan Roese [Fri, 10 Sep 2010 14:29:37 +0000 (16:29 +0200)]
ppc4xx: Fix CATcenter build

Signed-off-by: Stefan Roese <sr@denx.de>
14 years agoMerge branch 'master' of git://git.denx.de/u-boot-video
Wolfgang Denk [Wed, 22 Sep 2010 20:37:49 +0000 (22:37 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-video

14 years agoMerge branch 'master' of git://git.denx.de/u-boot-blackfin
Wolfgang Denk [Wed, 22 Sep 2010 20:36:42 +0000 (22:36 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-blackfin

14 years agoMerge branch 'master' of /home/wd/git/u-boot/master
Wolfgang Denk [Wed, 22 Sep 2010 20:35:44 +0000 (22:35 +0200)]
Merge branch 'master' of /home/wd/git/u-boot/master

14 years agoBlackfin: bfin_spi: use same gpio cs define as Linux
Mike Frysinger [Mon, 20 Sep 2010 21:54:09 +0000 (17:54 -0400)]
Blackfin: bfin_spi: use same gpio cs define as Linux

Linux uses an offset of 8 to switch from hardware cs to a gpio cs,
so have u-boot use the same value.  Also make sure it is public
for boards to access.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agoBlackfin: update some missed board config.mk files
Mike Frysinger [Mon, 20 Sep 2010 18:17:39 +0000 (14:17 -0400)]
Blackfin: update some missed board config.mk files

Seems these two files were missed during the big lib shuffle.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agofsl: refactor MPC8610 and MPC5121 DIU code to use existing bitmap and logo features
Timur Tabi [Wed, 1 Sep 2010 00:56:43 +0000 (19:56 -0500)]
fsl: refactor MPC8610 and MPC5121 DIU code to use existing bitmap and logo features

The Freescale MPC8610 and MPC5121 DIU code had re-implement two features that already
existed in U-Boot: bitmap drawing and top-of-screen logo (CONFIG_VIDEO_LOGO).
So delete the 8610-specific code and use the built-in features instead.

Signed-off-by: Timur Tabi <timur@freescale.com>
14 years agovideo: cfb_console: add support for 4bpp bitmaps with GDF_32BIT_X888RGB
Timur Tabi [Mon, 23 Aug 2010 21:58:00 +0000 (16:58 -0500)]
video: cfb_console: add support for 4bpp bitmaps with GDF_32BIT_X888RGB

Add support for 4bpp bitmaps, currently only for GDF_32BIT_X888RGB
frame buffer format.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
14 years agologos: add Freescale logo
Timur Tabi [Mon, 30 Aug 2010 21:27:31 +0000 (16:27 -0500)]
logos: add Freescale logo

Add the Freescale logo and update the Makefile to build it when building
a Freescale board.

Signed-off-by: Timur Tabi <timur@freescale.com>
14 years agovideo: cfb_console: fix definition and usage of CURSOR_xxx macros
Timur Tabi [Fri, 27 Aug 2010 20:45:47 +0000 (15:45 -0500)]
video: cfb_console: fix definition and usage of CURSOR_xxx macros

The CURSOR_ON, CURSOR_OFF, and CURSOR_SET macros are defined incorrectly.  If
cursor support is disabled, then these macros are defined to nothing, but
then they are used like this:

if (console_col < CONSOLE_COLS)
CURSOR_OFF
console_row++;

which was compiled like this:

if (console_col < CONSOLE_COLS)
console_row++;

This is obviously not what was intended.

Signed-off-by: Timur Tabi <timur@freescale.com>
Acked-by: Detlev Zundel <dzu@denx.de>
14 years agosilence config step commands display during MAKEALL builds
Kim Phillips [Tue, 14 Sep 2010 19:48:16 +0000 (14:48 -0500)]
silence config step commands display during MAKEALL builds

[u-boot next]$ ./MAKEALL 83xx
awk '(NF && $1 !~ /^#/) { print $1 ": " $1 "_config; $(MAKE)" }' boards.cfg > .boards.depend
Configuring for ve8313 board...

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
14 years agoarm: Make jadecpu board use relocation
Matthias Weisser [Tue, 21 Sep 2010 13:37:44 +0000 (15:37 +0200)]
arm: Make jadecpu board use relocation

This patch modifies jadecpu board so that it is usable
with the relocation patches by Heiko Schocher

Signed-off-by: Matthias Weisser <weisserm@arcor.de>
14 years agoPOST cleanup.
Michael Zaidman [Mon, 20 Sep 2010 06:51:53 +0000 (08:51 +0200)]
POST cleanup.

- Revives POST for blackfin arch;
- Removes redundant code:
     arch/blackfin/lib/post.c
     arch/powerpc/cpu/ppc4xx/commproc.c
     arch/powerpc/cpu/mpc512x/common.c
- fixes up the post_word_{load|store} usage.

Signed-off-by: Michael Zaidman <michael.zaidman@gmail.com>
Acked-by: Detlev Zundel <dzu@denx.de>
Tested-by: Anatolij Gustschin <agust@denx.de>
List of the maintainers of the affected by patch boards:
Cc: Stephan Linz <linz@li-pro.net>
Cc: Denis Peter <d.peter@mpl.ch>
Cc: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
Cc: Peter Tyser <ptyser@xes-inc.com>
Cc: Stefan Roese <sr@denx.de>
Cc: Mike Frysinger <vapier@gentoo.org>
Cc: Niklaus Giger <niklaus.giger@netstal.com>
Cc: Larry Johnson <lrj@acm.org>
Cc: Feng Kan <fkan@amcc.com>
14 years agocmd_mmc: use common usage function
Mike Frysinger [Thu, 29 Jul 2010 17:40:43 +0000 (13:40 -0400)]
cmd_mmc: use common usage function

Rather than using a custom "Usage:", use the common cmd_usage() function,
and tail into it now that it returns 1 for us.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agosetlocalversion: add some more fallbacks for git describe
Mike Frysinger [Mon, 20 Sep 2010 18:36:18 +0000 (14:36 -0400)]
setlocalversion: add some more fallbacks for git describe

If working out of a custom git tree that lacks annotated tags, the
'git describe' operation spews "fatal: cannot describe" errors all
over the place.  So add some fallback code in case the best naming
was unable to locate something useful.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agoMerge branch 'next' of ../custodians into next
Wolfgang Denk [Tue, 21 Sep 2010 07:34:37 +0000 (09:34 +0200)]
Merge branch 'next' of ../custodians into next

14 years agoMerge branch 'master' of /home/wd/git/u-boot/master
Wolfgang Denk [Tue, 21 Sep 2010 07:34:16 +0000 (09:34 +0200)]
Merge branch 'master' of /home/wd/git/u-boot/master

14 years agoMerge branch 'next' of git://git.denx.de/u-boot-usb into next
Wolfgang Denk [Tue, 21 Sep 2010 07:34:02 +0000 (09:34 +0200)]
Merge branch 'next' of git://git.denx.de/u-boot-usb into next

14 years agoMerge branch 'next' of ../custodians into next
Wolfgang Denk [Tue, 21 Sep 2010 07:22:17 +0000 (09:22 +0200)]
Merge branch 'next' of ../custodians into next

14 years agoUSB-CDC: Fix coding style issues
Vitaly Kuzmichev [Mon, 13 Sep 2010 14:37:11 +0000 (18:37 +0400)]
USB-CDC: Fix coding style issues

Fixes most of checkpatch warnings and errors in USB gadget stack.

The most frequently encountered problems are:
1) "(foo*)", "foo * bar", "foo* bar"
2) C99 // comments
3) No spaces before/after/around '?', ':', '=', '==', ',', '&', '('
4) Spaces before '['
5) Spaces between function names and '('
6) Block braces in wrong places
7) Spaces before tabs
8) Macros with complex values not enclosed in parenthesis
9) Multiline comments start just after /*

Signed-off-by: Vitaly Kuzmichev <vkuzmichev@mvista.com>
14 years agoUSB-CDC: called handle_interrupts inside usb_eth_send
Stefano Babic [Sun, 15 Aug 2010 12:19:00 +0000 (14:19 +0200)]
USB-CDC: called handle_interrupts inside usb_eth_send

The patch removes an endless loop  in the usb_eth_send
if the tx_complete is not called before going
in the loop. The driver interrupt routine is called
allowing the driver to check if the TX is completed.

Signed-off-by: Stefano Babic <sbabic@denx.de>
14 years agoUSB-CDC: correct wrong alignment in ether.c
Stefano Babic [Sun, 15 Aug 2010 12:18:59 +0000 (14:18 +0200)]
USB-CDC: correct wrong alignment in ether.c

The buffer for the status request must be word aligned
because it is accessed with 32 bit pointer in the
eth_status_complete function.

Signed-off-by: Stefano Babic <sbabic@denx.de>
14 years agoUSB-CDC: change simple_strtol to simple_strtoul
Vitaly Kuzmichev [Fri, 13 Aug 2010 13:02:41 +0000 (17:02 +0400)]
USB-CDC: change simple_strtol to simple_strtoul

The patch is based on commit bb9496c6f7e853e5d4edd5397c9d45f1968d623c
(done by Julia Lawall <julia@diku.dk>) from linux-2.6.git.

Since num is unsigned, it would seem better to use simple_strtoul that
simple_strtol.

Signed-off-by: Vitaly Kuzmichev <vkuzmichev@mvista.com>
14 years agoUSB-CDC: ethernet error path potential oops fix
Vitaly Kuzmichev [Fri, 13 Aug 2010 13:02:29 +0000 (17:02 +0400)]
USB-CDC: ethernet error path potential oops fix

Fix potential oops on rare error path.
The patch is based on commit e7b13ec9235b9fded90f826ceeb8c34548631351
(done by David Brownell <david-b@pacbell.net>) from linux-2.6.git.

Description of the issue taken from linux kernel bugzilla:
(https://bugzilla.kernel.org/show_bug.cgi?id=9594)

The potential error can be tracked down as follows:

(1) line 807: let the second conjunct on the "if" statment be false
    meaning "dev->status_ep" is null. This means the "if" evaluates
    to false.

follow thru the code until...

(2) line 808: usb_ep_disable(dev->status_ep) passes in a null argument,
    however "usb_ep_disable" cannot handle that:

(from include/linux/usb/gadget.h)
191 static inline int
192 usb_ep_disable (struct usb_ep *ep)
193 {
194         return ep->ops->disable (ep);
195 }

--

Signed-off-by: Vitaly Kuzmichev <vkuzmichev@mvista.com>
14 years agoUSB-CDC: Correct stat_req initialization
Vitaly Kuzmichev [Fri, 13 Aug 2010 13:01:06 +0000 (17:01 +0400)]
USB-CDC: Correct stat_req initialization

Fix possible oops on stat_req->buf initialization and fix ep0 and
status_ep confusion (last one is just intended for stat_req keeping).

Signed-off-by: Vitaly Kuzmichev <vkuzmichev@mvista.com>
Signed-off-by: Stefano Babic <sbabic@denx.de>
14 years agoUSB-CDC: Replace 'strcpy' by 'strlcpy'
Vitaly Kuzmichev [Fri, 13 Aug 2010 13:00:45 +0000 (17:00 +0400)]
USB-CDC: Replace 'strcpy' by 'strlcpy'

Replace 'strcpy' by more safe 'strlcpy' that is implemented in ether.c

Signed-off-by: Vitaly Kuzmichev <vkuzmichev@mvista.com>
14 years agoUSB-CDC: Correct freeing usb requests
Vitaly Kuzmichev [Fri, 13 Aug 2010 13:00:16 +0000 (17:00 +0400)]
USB-CDC: Correct freeing usb requests

Fix in_ep and out_ep confusion (rx_req was allocated from out_ep, not
from in_ep) and add lost dev->req freeing.

Signed-off-by: Vitaly Kuzmichev <vkuzmichev@mvista.com>
14 years agoUSB-CDC: Use native debug printout macros
Vitaly Kuzmichev [Fri, 13 Aug 2010 12:57:51 +0000 (16:57 +0400)]
USB-CDC: Use native debug printout macros

Replace Linux-like debug printout macros by native ones.

Signed-off-by: Vitaly Kuzmichev <vkuzmichev@mvista.com>
Applied after removing dead code like '#define DEBUG/#undef DEBUG'

14 years agoUSB-CDC: Add lost 'qmult' definition
Vitaly Kuzmichev [Thu, 12 Aug 2010 12:44:40 +0000 (16:44 +0400)]
USB-CDC: Add lost 'qmult' definition

Add lost 'qmult' definition for High Speed devices and make it
configurable through CONFIG_USB_ETH_QMULT.

Signed-off-by: Vitaly Kuzmichev <vkuzmichev@mvista.com>
14 years agoUSB-CDC: Restuct USB gadget Makefile
Vitaly Kuzmichev [Thu, 12 Aug 2010 12:44:39 +0000 (16:44 +0400)]
USB-CDC: Restuct USB gadget Makefile

Prohibit simultaneous usage of both old and new gadget stacks and
allow UDC drivers to be dependent on CONFIG_USB_ETHER.

Signed-off-by: Vitaly Kuzmichev <vkuzmichev@mvista.com>
14 years agoIntegrate USB gadget layer and USB CDC driver layer
Remy Bohmer [Wed, 29 Jul 2009 16:18:43 +0000 (18:18 +0200)]
Integrate USB gadget layer and USB CDC driver layer

Derived from Linux kernel 2.6.27

Signed-off-by: Thomas Smits <ts.smits@gmail.com>
Signed-off-by: Remy Bohmer <linux@bohmer.net>
14 years agousb: musb: stub out MUSB_TXCSR_MODE for Blackfin parts
Mike Frysinger [Wed, 11 Aug 2010 21:54:00 +0000 (17:54 -0400)]
usb: musb: stub out MUSB_TXCSR_MODE for Blackfin parts

The MUSB_TXCSR_MODE register setting isn't supported on Blackfin musb
parts, so stub it out to 0.  This matches Linux behavior.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agocfi_flash: Remove uneccessary #ifdef CONFIG_SYS_MAX_FLASH_BANKS_DETECT
Stefan Roese [Tue, 31 Aug 2010 08:04:11 +0000 (10:04 +0200)]
cfi_flash: Remove uneccessary #ifdef CONFIG_SYS_MAX_FLASH_BANKS_DETECT

Now that the defines are moved to header files we don't need this
conditional compilation any more. Remove it.

Signed-off-by: Stefan Roese <sr@denx.de>
14 years agocfi_flash: Simplify dynamic flash bank number detection
Stefan Roese [Tue, 31 Aug 2010 08:00:10 +0000 (10:00 +0200)]
cfi_flash: Simplify dynamic flash bank number detection

This patch simplifies the use of CONFIG_SYS_MAX_FLASH_BANKS_DETECT. By
moving these optional variables and defines into the common code, board
specific code is minimized. Currently only the following board use
this feature:

APC405, IDS8247, TQM834x

And IDS8247 doesn't seem to really need this feature, since its not
updating the bank number variable at all. So this patch removes the
definition of CONFIG_SYS_MAX_FLASH_BANKS_DETECT from this board port.

This new framework will be used by the upcoming lwmon5 update as well.

Signed-off-by: Stefan Roese <sr@denx.de>
Acked-by: Heiko Schocher <hs@denx.de>
Cc: Matthias Fuchs <matthias.fuchs@esd.eu>
14 years agocfi_flash: Add weak default for cfi_flash_bank_addr()
Stefan Roese [Mon, 30 Aug 2010 08:11:51 +0000 (10:11 +0200)]
cfi_flash: Add weak default for cfi_flash_bank_addr()

cfi_flash_bank_addr(int bank_nr) returns the base addresses of the
requested bank. Introducing this weak default enables boards to override
this functions with a board specific version when required.

This feature will be used in the lwmon5 board update, supporting runtime
detection of 2 board revisions with different flash layouts.

Signed-off-by: Stefan Roese <sr@denx.de>
14 years agocfi_flash: Simplify flash_get_info()
Stefan Roese [Mon, 30 Aug 2010 09:14:38 +0000 (11:14 +0200)]
cfi_flash: Simplify flash_get_info()

This patch removes an unecessary check in the return statement. This is
not needed, since "info" is initializes to NULL. And "info" will not be
written to again, if the flash address is not found.

Additionally "info" is not initialized to "0" but to "NULL".

Signed-off-by: Stefan Roese <sr@denx.de>
14 years agoRemove spieval board support
Wolfgang Denk [Sun, 19 Sep 2010 19:34:31 +0000 (21:34 +0200)]
Remove spieval board support

Recent changes caused that the spieval board now is included in the
boards built by MAKEALL, which revealed that compilation for this
board has been broken for a long time:

mpc5xxx_fec.c:899:2: error: #error fec->xcv_type not initialized.
mpc5xxx_fec.c:899:2: error: #error fec->xcv_type not initialized.

The board is orphaned.  Drop support for it.

Signed-off-by: Wolfgang Denk <wd@denx.de>
14 years agoRemove smmaco4 board support
Wolfgang Denk [Sun, 19 Sep 2010 19:32:37 +0000 (21:32 +0200)]
Remove smmaco4 board support

Recent changes caused that the smmaco4 board now is included in the
boards built by MAKEALL, which revealed that compilation for this
board has been broken for a long time:

mpc5xxx_fec.c:899:2: error: #error fec->xcv_type not initialized.

The board is orphaned.  Drop support for it.

Signed-off-by: Wolfgang Denk <wd@denx.de>
14 years agoRemove HMI10 board support
Wolfgang Denk [Sun, 19 Sep 2010 19:28:25 +0000 (21:28 +0200)]
Remove HMI10 board support

Recent changes caused that the HMI10 board now is included in the
boards built by MAKEALL, which revealed that compilation for this
board has been broken for a long time:

ps2ser.c: In function 'ps2ser_init':
ps2ser.c:155: error: 'UART_LCR' undeclared (first use in this function)
ps2ser.c:155: error: (Each undeclared identifier is reported only once
ps2ser.c:155: error: for each function it appears in.)
ps2ser.c:156: error: 'UART_DLL' undeclared (first use in this function)
ps2ser.c:157: error: 'UART_DLM' undeclared (first use in this function)
ps2ser.c:159: error: 'UART_IER' undeclared (first use in this function)
ps2ser.c:160: error: 'UART_MCR' undeclared (first use in this function)
ps2ser.c:161: error: 'UART_FCR' undeclared (first use in this function)
ps2ser.c:162: error: 'UART_FCR_ENABLE_FIFO' undeclared (first use in this function)
ps2ser.c:166: error: 'UART_LSR' undeclared (first use in this function)
ps2ser.c: In function 'ps2ser_putc':
ps2ser.c:198: error: 'UART_LSR' undeclared (first use in this function)
ps2ser.c:200: error: 'UART_TX' undeclared (first use in this function)
ps2ser.c: In function 'ps2ser_getc_hw':
ps2ser.c:224: error: 'UART_LSR' undeclared (first use in this function)
ps2ser.c:225: error: 'UART_RX' undeclared (first use in this function)
ps2ser.c: In function 'ps2ser_interrupt':
ps2ser.c:293: error: 'UART_IIR' undeclared (first use in this function)

The board is orphaned, and AFAICT has reached EOL.
Drop support for it.

Signed-off-by: Wolfgang Denk <wd@denx.de>
14 years agocanmb board: Fix compiler warnings
Wolfgang Denk [Sun, 19 Sep 2010 10:59:41 +0000 (12:59 +0200)]
canmb board: Fix compiler warnings

Recent changes caused thatthe aev board now is included in the boards
built by MAKEALL, which revealed that compilation for this board
has been broken for a long time:

canmb.c: In function 'initdram':
canmb.c:109: warning: pointer targets in passing argument 1 of 'get_ram_size' differ in signedness
canmb.c:111: warning: pointer targets in passing argument 1 of 'get_ram_size' differ in signedness
canmb.c:137: warning: pointer targets in passing argument 1 of 'get_ram_size' differ in signedness
canmb.c:140: warning: pointer targets in passing argument 1 of 'get_ram_size' differ in signedness

Fix these.

Signed-off-by: Wolfgang Denk <wd@denx.de>
14 years agoaev board: Fix compile problems
Wolfgang Denk [Sun, 19 Sep 2010 10:40:02 +0000 (12:40 +0200)]
aev board: Fix compile problems

Recent changes caused thatthe aev board now is included in the boards
built by MAKEALL, which revealed that compilation for this board has
been broken for a long time:

mpc5xxx_fec.c:899:2: error: #error fec->xcv_type not initialized.
mpc5xxx_fec.c:899:2: error: #error fec->xcv_type not initialized.

Fix it.

Signed-off-by: Wolfgang Denk <wd@denx.de>
14 years agoda8xx: fixup ARM relocation support
Ben Gardiner [Mon, 23 Aug 2010 13:08:15 +0000 (09:08 -0400)]
da8xx: fixup ARM relocation support

Split the existing dram_init for da8xx when ARM reloc is enabled, like the
changes to arch/arm/cpu/arm926ejs/orion5x/dram.c in
0f234d263b17ccf1b8fd776eb8c15b7cdb27a887 by Heiko Schocher <hs@denx.de>.

Without these changes gd->ram_size is '0' which leads to incorrect relocation
when CONFIG_SYS_ARM_WITHOUT_RELOC is defined and the board does not boot.

We use get_ram_size to dynamically calculate the available RAM because it runs
on different board version with different ram, as suggested by Heiko in private
communication.

Tested on a da850evm with 128M of DDR2 installed; with both
CONFIG_SYS_ARM_WITHOUT_RELOC defined and undefined.

Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca>
Reviewed-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
CC: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
CC: Heiko Schocher <hs@denx.de>
14 years agoARM: implement relocation for arm1176
Heiko Schocher [Fri, 17 Sep 2010 11:10:53 +0000 (13:10 +0200)]
ARM: implement relocation for arm1176

Change the implementation for arm1176 to relocate the code to
an arbitrary address in RAM.

Portions of this work were supported by funding from
the CE Linux Forum.

Signed-off-by: Heiko Schocher <hs@denx.de>
14 years agoARM: implement relocation for arm720t
Heiko Schocher [Fri, 17 Sep 2010 11:10:52 +0000 (13:10 +0200)]
ARM: implement relocation for arm720t

Change the implementation for arm720t to relocate the code to
an arbitrary address in RAM.

Portions of this work were supported by funding from
the CE Linux Forum.

Signed-off-by: Heiko Schocher <hs@denx.de>
14 years agoARM: implement relocation for arm_intcm
Heiko Schocher [Fri, 17 Sep 2010 11:10:51 +0000 (13:10 +0200)]
ARM: implement relocation for arm_intcm

Change the implementation for arm_intcm to relocate the code to
an arbitrary address in RAM.

Portions of this work were supported by funding from
the CE Linux Forum.

Signed-off-by: Heiko Schocher <hs@denx.de>
14 years agoARM: implement relocation for lh7a40x
Heiko Schocher [Fri, 17 Sep 2010 11:10:50 +0000 (13:10 +0200)]
ARM: implement relocation for lh7a40x

Change the implementation for lh7a40x to relocate the code to
an arbitrary address in RAM.

Portions of this work were supported by funding from
the CE Linux Forum.

Signed-off-by: Heiko Schocher <hs@denx.de>
14 years agoARM: implement relocation for s3c44b0
Heiko Schocher [Fri, 17 Sep 2010 11:10:49 +0000 (13:10 +0200)]
ARM: implement relocation for s3c44b0

Change the implementation for s3c44b0 to relocate the code to
an arbitrary address in RAM.

Portions of this work were supported by funding from
the CE Linux Forum.

Signed-off-by: Heiko Schocher <hs@denx.de>
14 years agoARM: implement relocation for sa1100
Heiko Schocher [Fri, 17 Sep 2010 11:10:48 +0000 (13:10 +0200)]
ARM: implement relocation for sa1100

Change the implementation for sa1100 to relocate the code to
an arbitrary address in RAM.

Portions of this work were supported by funding from
the CE Linux Forum.

Signed-off-by: Heiko Schocher <hs@denx.de>
14 years agoARM: implement relocation for ixp
Heiko Schocher [Fri, 17 Sep 2010 11:10:47 +0000 (13:10 +0200)]
ARM: implement relocation for ixp

Change the implementation for ixp to relocate the code to
an arbitrary address in RAM.

Portions of this work were supported by funding from
the CE Linux Forum.

Signed-off-by: Heiko Schocher <hs@denx.de>
14 years agoARM: implement relocation for pxa
Heiko Schocher [Fri, 17 Sep 2010 11:10:46 +0000 (13:10 +0200)]
ARM: implement relocation for pxa

Change the implementation for pxa to relocate the code to
an arbitrary address in RAM.

Portions of this work were supported by funding from
the CE Linux Forum.

Signed-off-by: Heiko Schocher <hs@denx.de>
14 years agoARM: implement relocation for ARM946
Heiko Schocher [Fri, 17 Sep 2010 11:10:45 +0000 (13:10 +0200)]
ARM: implement relocation for ARM946

Change the implementation for arm946 to relocate the code to
an arbitrary address in RAM.

Portions of this work were supported by funding from
the CE Linux Forum.

Signed-off-by: Heiko Schocher <hs@denx.de>
14 years agoARM: implement relocation for ARM925
Heiko Schocher [Fri, 17 Sep 2010 11:10:44 +0000 (13:10 +0200)]
ARM: implement relocation for ARM925

Change the implementation for arm925 to relocate the code to
an arbitrary address in RAM.

Portions of this work were supported by funding from
the CE Linux Forum.

Signed-off-by: Heiko Schocher <hs@denx.de>
14 years agoARM: implement relocation for ARM920
Heiko Schocher [Fri, 17 Sep 2010 11:10:43 +0000 (13:10 +0200)]
ARM: implement relocation for ARM920

Change the implementation for arm920 to relocate the code to
an arbitrary address in RAM.

Portions of this work were supported by funding from
the CE Linux Forum.

Signed-off-by: Heiko Schocher <hs@denx.de>
14 years agoARM: implement relocation for ARM926
Heiko Schocher [Fri, 17 Sep 2010 11:10:42 +0000 (13:10 +0200)]
ARM: implement relocation for ARM926

Change the implementation for arm926 to relocate the code to
an arbitrary address in RAM.

Adapt the TX25 (i.MX25), magnesium board to test the changes.

On the tx25 board TEXT_BASE is set to the final relocation
address to prevent one more copying of u-boot code
when relocating. More info see:
doc/README.arm-relocation

da850 board:
Tested-by: Ben Gardiner <bengardiner@nanometrics.ca>
Portions of this work were supported by funding from
the CE Linux Forum.

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Ben Gardiner <bengardiner@nanometrics.ca>
14 years agoARM: implement relocation for ARM V7 (OMAP)
Heiko Schocher [Fri, 17 Sep 2010 11:10:41 +0000 (13:10 +0200)]
ARM: implement relocation for ARM V7 (OMAP)

Change the implementation for ARM V7 to relocate the code to an
arbitrary address in RAM.

Adapt the Beagle board (Cortex A8) to test the changes.

Portions of this work were supported by funding from
the CE Linux Forum.

Signed-off-by: Heiko Schocher <hs@denx.de>
14 years agoARM: implement relocation for ARM11
Heiko Schocher [Fri, 17 Sep 2010 11:10:40 +0000 (13:10 +0200)]
ARM: implement relocation for ARM11

Change the implementation for ARM11 to relocate the code to an
arbitrary address in RAM.

Tested on the qong board.

Portions of this work were supported by funding from
the CE Linux Forum.

Signed-off-by: Heiko Schocher <hs@denx.de>
14 years agoARM: add relocation support
Heiko Schocher [Fri, 17 Sep 2010 11:10:39 +0000 (13:10 +0200)]
ARM: add relocation support

!! This breaks support for all arm boards !!

To compile in old style, you must define
CONFIG_SYS_ARM_WITHOUT_RELOC or you can compile
with "CONFIG_SYS_ARM_WITHOUT_RELOC=1 ./MAKEALL board"

!! This define will be removed soon, so convert your
board to use relocation support

Portions of this work were supported by funding from
the CE Linux Forum.

Signed-off-by: Heiko Schocher <hs@denx.de>
Fix boot from NAND for non-ARM systems
Signed-off-by: Wolfgang Denk <wd@denx.de>
14 years agonand_boot_fsl_nfc.c: make "nfc" a "static const" pointer
Heiko Schocher [Fri, 17 Sep 2010 11:10:38 +0000 (13:10 +0200)]
nand_boot_fsl_nfc.c: make "nfc" a "static const" pointer

With -fPIC enabled, this variable needs an entry in the GOT, which
causes the image size to exceed 2 KiB which is the maximum allowed for
some systems. Making it a "static const" avoids the GOT entry and thus
reduces the image size to < 2 KiB.

Portions of this work were supported by funding from
the CE Linux Forum.

Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Scott Wood <scottwood@freescale.com>
14 years agoi2c, omap24xx: set bus_initialized only after relocation.
Heiko Schocher [Fri, 17 Sep 2010 11:10:37 +0000 (13:10 +0200)]
i2c, omap24xx: set bus_initialized only after relocation.

Portions of this work were supported by funding from
the CE Linux Forum.

Signed-off-by: Heiko Schocher <hs@denx.de>