platform/kernel/u-boot.git
13 years agosc520: Sort Makefile
Graeme Russ [Sat, 12 Feb 2011 04:11:25 +0000 (15:11 +1100)]
sc520: Sort Makefile

13 years agox86: Parametize values used in linker script
Graeme Russ [Sat, 12 Feb 2011 04:11:24 +0000 (15:11 +1100)]
x86: Parametize values used in linker script

13 years agoeNET: Create distinct board configurations
Graeme Russ [Sat, 12 Feb 2011 04:11:22 +0000 (15:11 +1100)]
eNET: Create distinct board configurations

Position independant functionality is due for removal from the x86
architecture, so create two distinct configurations - One for Flash and
one for SRAM

13 years agox86: Align config.mk and linker scripts with other arches
Graeme Russ [Sat, 12 Feb 2011 04:11:21 +0000 (15:11 +1100)]
x86: Align config.mk and linker scripts with other arches

13 years agox86: Fix definition of global_data struct for asm-offsets.c
Graeme Russ [Sat, 12 Feb 2011 04:11:21 +0000 (15:11 +1100)]
x86: Fix definition of global_data struct for asm-offsets.c

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc85xx
Wolfgang Denk [Fri, 11 Feb 2011 20:23:33 +0000 (21:23 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx

13 years agopowerpc/8xxx: Add additional cycle to write-to-read turnaound for DDR3
York Sun [Thu, 10 Feb 2011 18:13:10 +0000 (10:13 -0800)]
powerpc/8xxx: Add additional cycle to write-to-read turnaound for DDR3

When DDR data rate is higher than 1200MT/s or controller interleaving is
enabled, additional cycle for write-to-read turnaround is needed to satisfy
dynamic ODT timing.

Signed-off-by: York Sun <yorksun@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: corrected p1_p2_rdb EEPROM address
Priyanka Jain [Tue, 8 Feb 2011 07:47:56 +0000 (13:17 +0530)]
powerpc/85xx: corrected p1_p2_rdb EEPROM address

Board EEPROM is used to read/save Ethernet MAC addresses.

Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Fix p1_p2_rdb boards.cfg
Kumar Gala [Thu, 10 Feb 2011 05:36:24 +0000 (23:36 -0600)]
powerpc/85xx: Fix p1_p2_rdb boards.cfg

We should have been defining the actual board name in the options, not
the processor.  Fix this for P1011RDB, P1020RDB, P2010RDB, and P2020RDB.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agofsl: update CRC after setting EEPROM identifier
Timur Tabi [Wed, 9 Feb 2011 19:40:51 +0000 (13:40 -0600)]
fsl: update CRC after setting EEPROM identifier

The "mac id" command is used to initialize the EEPROM data to a specific
format, but it was not updating the CRC.  This didn't cause any real
problems, because writing the data to the EEPROM will always update the
CRC anyway, but it did result in a bogus CRC warning.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agocmd_bmp.c: message about compressed formats is debug info only.
Wolfgang Denk [Wed, 9 Feb 2011 14:11:10 +0000 (15:11 +0100)]
cmd_bmp.c: message about compressed formats is debug info only.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Anatolij Gustschin <agust@denx.de>
13 years agoMerge branch 'master' of git://git.denx.de/u-boot-nand-flash
Wolfgang Denk [Wed, 9 Feb 2011 20:22:58 +0000 (21:22 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-nand-flash

13 years agoMerge branch 'next' of git://git.denx.de/u-boot-nios
Wolfgang Denk [Wed, 9 Feb 2011 19:54:53 +0000 (20:54 +0100)]
Merge branch 'next' of git://git.denx.de/u-boot-nios

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-ppc4xx
Wolfgang Denk [Wed, 9 Feb 2011 19:50:26 +0000 (20:50 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-ppc4xx

13 years agoNAND: env: remember the flags used in the previous environment
Scott Wood [Tue, 8 Feb 2011 21:25:02 +0000 (15:25 -0600)]
NAND: env: remember the flags used in the previous environment

Previously, uninitialized stack space was being referenced.

Signed-off-by: Scott Wood <scottwood@freescale.com>
13 years agonios2: add gpio_is_valid
Thomas Chou [Mon, 27 Dec 2010 02:46:01 +0000 (10:46 +0800)]
nios2: add gpio_is_valid

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: Scott McNutt <smcnutt@psyent.com>
13 years agonios2: use long for ssize_t
Thomas Chou [Mon, 27 Dec 2010 02:45:34 +0000 (10:45 +0800)]
nios2: use long for ssize_t

This is consistent with nios2-linux. And resolved the warning,

cmd_nvedit.c: In function `do_env_export':
cmd_nvedit.c:660: warning: size_t format, ssize_t arg (arg 3)

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: Scott McNutt <smcnutt@psyent.com>
13 years agoaltera_spi: add spi_set_speed
Thomas Chou [Mon, 27 Dec 2010 01:30:17 +0000 (09:30 +0800)]
altera_spi: add spi_set_speed

Added this for mmc_spi driver. Though altera spi core does not
support programmable speed. It is fixed when configured in
sopc-builder.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: Scott McNutt <smcnutt@psyent.com>
13 years agonios2: add gpio_free
Thomas Chou [Fri, 24 Dec 2010 07:19:44 +0000 (15:19 +0800)]
nios2: add gpio_free

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: Scott McNutt <smcnutt@psyent.com>
13 years agoppc4xx: Add DLVision-10G board support
Dirk Eibach [Fri, 21 Jan 2011 08:31:21 +0000 (09:31 +0100)]
ppc4xx: Add DLVision-10G board support

Board support for the Guntermann & Drunck DLVision-10G.
Adds support for multiple FPGAs per board for gdsys 405ep
architecture.
Adds support for dual link osd hardware for gdsys 405ep.

Signed-off-by: Dirk Eibach <eibach@gdsys.de>
Signed-off-by: Stefan Roese <sr@denx.de>
13 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc83xx
Wolfgang Denk [Sun, 6 Feb 2011 21:41:53 +0000 (22:41 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc83xx

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-usb
Wolfgang Denk [Sun, 6 Feb 2011 21:39:50 +0000 (22:39 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-usb

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc85xx
Wolfgang Denk [Sun, 6 Feb 2011 21:28:34 +0000 (22:28 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx

13 years agompc83xx: Use correct register to calculate clocks.
Joakim Tjernlund [Thu, 27 Jan 2011 15:30:54 +0000 (16:30 +0100)]
mpc83xx: Use correct register to calculate clocks.

Use SPMR instead of HRCWL when calculating clocks as HCRWL
may be changed and the CPU will not pick up all changes
until there is a POR. u-boot will think SPMF has changed and get
the clocks wrong.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
13 years agompc83xx: fix pcie configuration space read/write
Leo Liu [Wed, 19 Jan 2011 11:50:47 +0000 (19:50 +0800)]
mpc83xx: fix pcie configuration space read/write

This patch fix a problem for the pcie enumeration when the mpc83xx
pcie controller is connected with switch or we use both of the two
pcie controller.

Signed-off-by: Leo Liu <liucai.lfn@gmail.com>
fix codingstyle and compiler warning: 'pcie_priv' defined but not used

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
13 years agoUSB: Change the necessary defines to get debug output
Alexander Holler [Fri, 28 Jan 2011 11:42:13 +0000 (12:42 +0100)]
USB: Change the necessary defines to get debug output

While debugging some USB stuff, I've first missed that there are actually
two defines necessary to get usefull output. The one needed to get debug output
for the communication with HUBs was burried somewhere deep inside the code.

Change that so that a #define DEBUG is enough while still leaving the possibility
to reduce unwanted debug output.

Signed-off-by: Alexander Holler <holler@ahsoftware.de>
13 years agoUSB: Fix device stati for removable and powerctrl (typo)
Alexander Holler [Thu, 27 Jan 2011 21:50:07 +0000 (22:50 +0100)]
USB: Fix device stati for removable and powerctrl (typo)

I currently don't know if the error could have other consequences
than a wrong output when turning debug on.

Signed-off-by: Alexander Holler <holler@ahsoftware.de>
13 years agoMerge branch 'master' of git://git.denx.de/u-boot-nand-flash
Wolfgang Denk [Fri, 4 Feb 2011 20:44:46 +0000 (21:44 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-nand-flash

13 years agopowerpc/8xxx: Fix possible compile issue related to P1013
Kumar Gala [Fri, 4 Feb 2011 18:50:53 +0000 (12:50 -0600)]
powerpc/8xxx: Fix possible compile issue related to P1013

The P1013 is a single core version of P1022 and thus should use the
p1022_serdes.c code.  It was acciently pointing to p1013_serdes.c which
doesn't exist.

Reported-by: Renaud Barbier <renaud.barbier@ge.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agoMerge branch 'master' of git://git.denx.de/u-boot-sh
Wolfgang Denk [Fri, 4 Feb 2011 19:38:27 +0000 (20:38 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-sh

13 years agopowerpc/85xx: Enable ECC on MPC8572DS
York Sun [Wed, 26 Jan 2011 05:51:29 +0000 (21:51 -0800)]
powerpc/85xx: Enable ECC on MPC8572DS

Using hwconfig to turn on/off ECC, without re-compiling.

Signed-off-by: York Sun <yorksun@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/mpc85xx: implement workaround for errata DDR111 and DDR134
York Sun [Wed, 26 Jan 2011 06:05:49 +0000 (22:05 -0800)]
powerpc/mpc85xx: implement workaround for errata DDR111 and DDR134

Workaround for the following errata:
DDR111 - MCKE signal may not function correctly at assertion of HRESET
DDR134 - The automatic CAS-to-Preamble feature of the DDR controller can
         calibrate to incorrect values

These two workarounds must be implemented together because they touch
common registers.

Signed-off-by: York Sun <yorksun@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Rename MPC8572 DDR erratum to DDR115
York Sun [Wed, 26 Jan 2011 05:51:27 +0000 (21:51 -0800)]
powerpc/85xx: Rename MPC8572 DDR erratum to DDR115

Use unique erratum number instead of platform number.
Enable command that reports errata on MPC8572DS.

Signed-off-by: York Sun <yorksun@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Enable Errata command on MPC8572DS
York Sun [Wed, 26 Jan 2011 06:14:57 +0000 (00:14 -0600)]
powerpc/85xx: Enable Errata command on MPC8572DS

Also removed duplicate CONFIG_CMD_IRQ define.

Signed-off-by: York Sun <yorksun@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Remove unnecessary polling loop from DDR init
York Sun [Wed, 26 Jan 2011 05:51:26 +0000 (21:51 -0800)]
powerpc/85xx: Remove unnecessary polling loop from DDR init

This polling loop is not required normally, unless specifically stated in
workaround.

Signed-off-by: York Sun <yorksun@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agofsl_esdhc: Add the workaround for erratum ESDHC-A001 (enable on P2020)
Kumar Gala [Sat, 29 Jan 2011 21:36:10 +0000 (15:36 -0600)]
fsl_esdhc: Add the workaround for erratum ESDHC-A001 (enable on P2020)

Data timeout counter (SYSCTL[DTOCV]) is not reliable for values of 4, 8,
and 12. Program one more than the desired value: 4 -> 5, 8 -> 9, 12 -> 13.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Enable ESDHC111 Erratum on P2010/P2020 SoCs
Kumar Gala [Wed, 26 Jan 2011 07:43:15 +0000 (01:43 -0600)]
powerpc/85xx: Enable ESDHC111 Erratum on P2010/P2020 SoCs

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agosh: sh7785lcr: Fix out of tree building
Nobuhiro Iwamatsu [Thu, 3 Feb 2011 07:27:45 +0000 (16:27 +0900)]
sh: sh7785lcr: Fix out of tree building

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agoNAND: Fix saving of redundand environment
Alexander Holler [Thu, 20 Jan 2011 01:17:48 +0000 (02:17 +0100)]
NAND: Fix saving of redundand environment

When redundand environments are used the serial needs
to get increased, otherwise the old one will still be used.

Signed-off-by: Alexander Holler <holler@ahsoftware.de>
13 years agoPrepare v2011.03-rc1 v2011.03-rc1
Wolfgang Denk [Wed, 2 Feb 2011 21:37:32 +0000 (22:37 +0100)]
Prepare v2011.03-rc1

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agoMinor Coding Style Cleanup.
Wolfgang Denk [Wed, 2 Feb 2011 21:36:10 +0000 (22:36 +0100)]
Minor Coding Style Cleanup.

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agoMerge branch 'master' of /home/wd/git/u-boot/custodians
Wolfgang Denk [Wed, 2 Feb 2011 20:57:19 +0000 (21:57 +0100)]
Merge branch 'master' of /home/wd/git/u-boot/custodians

13 years agoPrint compiler and linker version with the version command
Alexander Holler [Tue, 18 Jan 2011 23:24:40 +0000 (00:24 +0100)]
Print compiler and linker version with the version command

After years of unsuccessful research I've finally shamelessly stolen other
peoples intellectual properties to present the all-new and world-changing
updated version command:
-
U-Boot>> version

U-Boot 2010.12-00014-g7435056-dirty (Jan 18 2011 - 23:19:38)
MyBoard
gcc (GCC) 0.42 (Distro foobar)
GNU ld (GNU Binutils) 0.314159265
-
May the toolchain bugs rest in peace.

Signed-off-by: Alexander Holler <holler@ahsoftware.de>
13 years agochange email address in MAINTAINERS
Yoshihiro Shimoda [Wed, 2 Feb 2011 01:05:39 +0000 (10:05 +0900)]
change email address in MAINTAINERS

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
13 years agochange email address in MAINTAINERS
Yoshihiro Shimoda [Wed, 2 Feb 2011 01:05:39 +0000 (10:05 +0900)]
change email address in MAINTAINERS

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agosh: add support for sh7757lcr board
Yoshihiro Shimoda [Wed, 2 Feb 2011 01:05:36 +0000 (10:05 +0900)]
sh: add support for sh7757lcr board

The R0P7757LC0030RL board has SH7757, 256MB DDR3-SDRAM, SPI ROM,
Ethernet, and more.

This patch supports the following functions:
 - 256MB DDR3-SDRAM
 - SPI ROM
 - Ethernet

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agospi: add support SuperH SPI module
Yoshihiro Shimoda [Mon, 31 Jan 2011 07:50:43 +0000 (16:50 +0900)]
spi: add support SuperH SPI module

SH7757 has SPI module. This patch supports it.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agonet: sh_eth: add cache handling
Yoshihiro Shimoda [Thu, 27 Jan 2011 01:06:08 +0000 (10:06 +0900)]
net: sh_eth: add cache handling

Some CPU needs cache handling. So this patch add the config of
CONFIG_SH_ETHER_CACHE_WRITEBACK, and it calls wback function.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agoREADME: add description of sh_eth driver
Yoshihiro Shimoda [Thu, 27 Jan 2011 01:06:03 +0000 (10:06 +0900)]
README: add description of sh_eth driver

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agosh: add support the CONFIG_SYS_LDSCRIPT
Yoshihiro Shimoda [Thu, 27 Jan 2011 01:06:14 +0000 (10:06 +0900)]
sh: add support the CONFIG_SYS_LDSCRIPT

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agosh: Remove config.mk for shmin board
Nobuhiro Iwamatsu [Mon, 17 Jan 2011 12:17:22 +0000 (21:17 +0900)]
sh: Remove config.mk for shmin board

Move CONFIG_SYS_TEXT_BASE to the board's config file, and remove the
unnecessary config.mk file.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agosh: Remove config.mk for espt board
Nobuhiro Iwamatsu [Mon, 17 Jan 2011 12:15:44 +0000 (21:15 +0900)]
sh: Remove config.mk for espt board

Move CONFIG_SYS_TEXT_BASE to the board's config file, and remove the
unnecessary config.mk file.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agosh: Remove config.mk for mpr2 board
Nobuhiro Iwamatsu [Mon, 17 Jan 2011 12:13:49 +0000 (21:13 +0900)]
sh: Remove config.mk for mpr2 board

Move CONFIG_SYS_TEXT_BASE to the board's config file, and remove the
unnecessary config.mk file.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agosh: Remove config.mk for ms7750se board
Nobuhiro Iwamatsu [Mon, 17 Jan 2011 12:08:58 +0000 (21:08 +0900)]
sh: Remove config.mk for ms7750se board

Move CONFIG_SYS_TEXT_BASE to the board's config file, and remove the
unnecessary config.mk file.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agosh: Remove config.mk for ms7722se board
Nobuhiro Iwamatsu [Mon, 17 Jan 2011 12:07:15 +0000 (21:07 +0900)]
sh: Remove config.mk for ms7722se board

Move CONFIG_SYS_TEXT_BASE to the board's config file, and remove the
unnecessary config.mk file.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agosh: Remove config.mk for ms7720se board
Nobuhiro Iwamatsu [Mon, 17 Jan 2011 12:05:35 +0000 (21:05 +0900)]
sh: Remove config.mk for ms7720se board

Move CONFIG_SYS_TEXT_BASE to the board's config file, and remove the
unnecessary config.mk file.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agosh: Remove config.mk for sh7785lcr board
Nobuhiro Iwamatsu [Mon, 17 Jan 2011 12:02:16 +0000 (21:02 +0900)]
sh: Remove config.mk for sh7785lcr board

Move CONFIG_SYS_TEXT_BASE to the board's config file, and remove the
unnecessary config.mk file.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agosh: Remove config.mk for sh7763rdp board
Nobuhiro Iwamatsu [Mon, 17 Jan 2011 11:53:29 +0000 (20:53 +0900)]
sh: Remove config.mk for sh7763rdp board

Move CONFIG_SYS_TEXT_BASE to the board's config file, and remove the
unnecessary config.mk file.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agosh: Remove config.mk for rsk7203 board
Nobuhiro Iwamatsu [Mon, 17 Jan 2011 11:51:55 +0000 (20:51 +0900)]
sh: Remove config.mk for rsk7203 board

Move CONFIG_SYS_TEXT_BASE to the board's config file, and remove the
unnecessary config.mk file.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agosh: Remove config.mk for r7780mp board
Nobuhiro Iwamatsu [Mon, 17 Jan 2011 11:50:26 +0000 (20:50 +0900)]
sh: Remove config.mk for r7780mp board

Move CONFIG_SYS_TEXT_BASE to the board's config file, and remove the
unnecessary config.mk file.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agosh: Remove config.mk for r2dplus board
Nobuhiro Iwamatsu [Mon, 17 Jan 2011 11:48:39 +0000 (20:48 +0900)]
sh: Remove config.mk for r2dplus board

Move CONFIG_SYS_TEXT_BASE to the board's config file, and remove the
unnecessary config.mk file.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agosh: Remove config.mk for ap325rxa board
Nobuhiro Iwamatsu [Mon, 17 Jan 2011 11:46:35 +0000 (20:46 +0900)]
sh: Remove config.mk for ap325rxa board

Move CONFIG_SYS_TEXT_BASE to the board's config file, and remove the
unnecessary config.mk file.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agosh: Remove config.mk for MigoR board
Nobuhiro Iwamatsu [Mon, 17 Jan 2011 11:43:40 +0000 (20:43 +0900)]
sh: Remove config.mk for MigoR board

Move CONFIG_SYS_TEXT_BASE to the board's config file, and remove the
unnecessary config.mk file.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agoarmv7: add support for s5pc210 universal board
Minkyu Kang [Mon, 24 Jan 2011 06:33:50 +0000 (15:33 +0900)]
armv7: add support for s5pc210 universal board

This patch adds support for Samsung s5pc210 universal board

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
13 years agoarmv7: add support for S5PC210 SoC
Minkyu Kang [Mon, 24 Jan 2011 06:22:23 +0000 (15:22 +0900)]
armv7: add support for S5PC210 SoC

S5PC210 is a 32-bit RISC and Cortex-A9 Dual Core based micro-processor.

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
13 years agoS5P: serial: Use the inline function instead of static value
Minkyu Kang [Mon, 24 Jan 2011 05:43:25 +0000 (14:43 +0900)]
S5P: serial: Use the inline function instead of static value

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
13 years agoarm: a320evb: fixes for relocation support
Po-Yu Chuang [Sun, 19 Dec 2010 23:07:23 +0000 (23:07 +0000)]
arm: a320evb: fixes for relocation support

* add CONFIG_SYS_SDRAM_BASE and CONFIG_SYS_INIT_SP_ADDR
* do not update gd->bd in dram_init() because bd is unavailable then
* move CONFIG_SYS_TEXT_BASE from config.mk to a320evb.h
* remove config.mk

Signed-off-by: Po-Yu Chuang <ratbert@faraday-tech.com>
13 years agoarm926ejs: timer: Replace bss variable by gdr
Heiko Schocher [Thu, 20 Jan 2011 22:56:39 +0000 (22:56 +0000)]
arm926ejs: timer: Replace bss variable by gdr

Reuse the gd->tbl value for timestamp and add gd->lastinc for lastinc bss
values in the arm926ejs timers implementation.

The usage of bss values in drivers before initialisation of bss is forbidden.
In that special case some data in .rel.dyn gets corrupted.

This patch is similiar to the patch Dirk Behme posted
for the armv7/omap-common/timer.c and added suggestions
from Reinhard Meyer.

Tested on the arm926ejs mx27 based magnesium board
Tested on the arm926ejs kirkwood based suen3 board

Signed-off-by: Heiko Schocher <hs@denx.de>
cc: Albert ARIBAUD <albert.aribaud@free.fr>
cc: Prafulla Wadaskar <prafulla@marvell.com>
cc: Stefano Babic <sbabic@denx.de>
cc: Reinhard Meyer <u-boot@emk-elektronik.de>

13 years agoremove (double) LED initialization in arm920t start.s
Jens Scharsig [Sat, 18 Dec 2010 02:08:07 +0000 (02:08 +0000)]
remove (double) LED initialization in arm920t start.s

* remove LED initialization in front of relocation and bss init

Signed-off-by: Jens Scharsig <js_at_ng@scharsoft.de>
13 years agoarm1136: timer: Replace bss variable by gd
Heiko Schocher [Thu, 9 Dec 2010 22:01:15 +0000 (22:01 +0000)]
arm1136: timer: Replace bss variable by gd

Reuse the gd->tbl value for timestamp and add gd->lastinc for lastinc bss
values in the arm1136 timer driver for mx31 and omap24xx

The usage of bss values in drivers before initialisation of bss is forbidden.
In that special case some data in .rel.dyn gets corrupted.

This patch is similiar to the patch Dirk Behme posted
for the armv7/omap-common/timer.c

Tested on the mx31 based qong board

Signed-off-by: Heiko Schocher <hs@denx.de>
cc: Albert ARIBAUD <albert.aribaud@free.fr>
Acked-by: Albert ARIBAUD <albert.aribaud@free.fr>
13 years agoARM: */start.S: code cleanup
Liu Hui-R64343 [Wed, 22 Dec 2010 18:35:04 +0000 (18:35 +0000)]
ARM: */start.S: code cleanup

Remove the useless code from start.S

Signed-off-by: Jason Liu <r64343@freescale.com>
Tested-by: Andreas Bießmann <andreas.devel@googlemail.com>
13 years agoARM: Avoid compiler optimization for readb, writeb and friends.
Alexander Holler [Sun, 9 Jan 2011 12:19:44 +0000 (12:19 +0000)]
ARM: Avoid compiler optimization for readb, writeb and friends.

gcc 4.5.1 seems to ignore (at least some) volatile definitions,
avoid that as done in the kernel.

Reading C99 6.7.3 8 and the comment 114) there, I think it is a bug of that
gcc version to ignore the volatile type qualifier used e.g. in __arch_getl().
Anyway, using a definition as in the kernel headers avoids such optimizations when
gcc 4.5.1 is used.

Maybe the headers as used in the current linux-kernel should be used,
but to avoid large changes, I've just added a small change to the current headers.

Signed-off-by: Alexander Holler <holler@ahsoftware.de>
Signed-off-by: Dirk Behme <dirk.behme@googlemail.com>
Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Alessandro Rubini <rubini-list@gnudd.com>
Tested-by: Thomas Weber <weber@corscience.de>
Acked-by: Alexander Holler <holler@ahsoftware.de>
Tested-by: Alexander Holler <holler@ahsoftware.de>
13 years agoarmv7: s5pc1xx: don't use function pointer for clock functions
Minkyu Kang [Mon, 27 Dec 2010 06:55:48 +0000 (15:55 +0900)]
armv7: s5pc1xx: don't use function pointer for clock functions

Because of the bss area is cleared after relocation, we've lost pointers.
This patch fixed it.

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
13 years agoDaVinci: Remove incorrect CONFIG option
Sandeep Paulraj [Wed, 29 Dec 2010 21:09:27 +0000 (16:09 -0500)]
DaVinci: Remove incorrect CONFIG option

The option CONFIG_SOC_DM6447 seems to have ended up
in the code by mistake. It is not used anywhere and
there is no chip called DM6447.

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDaVinci Sonata: Fix Build Error
Sandeep Paulraj [Wed, 29 Dec 2010 19:42:56 +0000 (14:42 -0500)]
DaVinci Sonata: Fix Build Error

Fix a build error in the DaVinci Sonata Board

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDaVinci DM6467: Fix Build Error
Sandeep Paulraj [Wed, 29 Dec 2010 19:31:26 +0000 (14:31 -0500)]
DaVinci DM6467: Fix Build Error

This commit fixes build errors on the DM6467 port.

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDaVinci DM6467: Enhance board Support
Sandeep Paulraj [Tue, 28 Dec 2010 22:38:22 +0000 (17:38 -0500)]
DaVinci DM6467: Enhance board Support

Support for DM6467 was incomplete and the build failed
as well. Patches were sent to the list but have not been
added. This enhances the DM6467 support.
Some more patches will need to be sent to bring
it in line with what is available in internal TI
trees

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoARM: Update mach types
Sandeep Paulraj [Tue, 28 Dec 2010 21:42:57 +0000 (16:42 -0500)]
ARM: Update mach types

This commit updates the mach-types for ARM

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDaVinci DM6467: Added ET1011C (LSI) PHY support
Sandeep Paulraj [Tue, 28 Dec 2010 20:43:16 +0000 (15:43 -0500)]
DaVinci DM6467: Added ET1011C (LSI) PHY support

Added arch/arm/cpu/arm926ejs/davinci/et1011c.c for handling
ET1011C gigabit phy. which overrides get_link_speed function
from default implementation. This enables output of 125 MHz
reference clock on SYS_CLK pin.

Signed-off-by: Prakash PM <prakash.pm@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDaVinci EMAC: Add name to Ethernet device
Sandeep Paulraj [Tue, 28 Dec 2010 19:42:27 +0000 (14:42 -0500)]
DaVinci EMAC: Add name to Ethernet device

Adds "DaVinci-EMAC" as the name of the device so that
it gets printed as "Using DaVinci-EMAC device"
during network access (dhcp, tftp) instead of empty name
in "Using" statement.This name also gets
reflected in 'ethact' env variable.

Signed-off-by: Hemant Pedanekar <hemantp@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDaVinci EMAC: Fix davinci_eth_gigabit_enable
Sandeep Paulraj [Tue, 28 Dec 2010 19:37:33 +0000 (14:37 -0500)]
DaVinci EMAC: Fix davinci_eth_gigabit_enable

Enabling the gigabit was overwriting the
previous configuration by setting up only GIGAFORCE and
GIG bits of MAC control register.
Modified to retain previous configuration while
gigabit enabling.

Signed-off-by: Prakash PM <prakash.pm@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDM365: Fix Build Error
Sandeep Paulraj [Tue, 28 Dec 2010 19:28:51 +0000 (14:28 -0500)]
DM365: Fix Build Error

After the merger of the next branch, the DM365 was
broken. A function used only by DA8xx based SOCs was
being incorrectly called. So fix it.

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDaVinci DM365: Adding MMC/SD support for DM365 EVM
Sandeep Paulraj [Sat, 18 Dec 2010 23:15:25 +0000 (18:15 -0500)]
DaVinci DM365: Adding MMC/SD support for DM365 EVM

The patch adds support for MMC/SD in the DM365 EVM

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDaVinci DM355: Adding MMC/SD support for DM355 EVM
Sandeep Paulraj [Sat, 18 Dec 2010 23:14:49 +0000 (18:14 -0500)]
DaVinci DM355: Adding MMC/SD support for DM355 EVM

The patch adds support for MMC/SD in the DM355 EVM

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDavinci MMCSD Support
Sandeep Paulraj [Tue, 21 Dec 2010 01:01:21 +0000 (20:01 -0500)]
Davinci MMCSD Support

Added support for MMC/SD cards for Davinci.  This feature is enabled by
CONFIG_DAVINCI_MMC and is dependant on CONFIG_MMC and CONFIG_GENERIC_MMC
options. This is tested on DM355 and DM365 EVMs with both the available mmc
controllers.

Signed-off-by: Alagu Sankar <alagusankar@embwise.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoOMAP3: add CM-T35 board
Mike Rapoport [Sat, 18 Dec 2010 22:43:19 +0000 (17:43 -0500)]
OMAP3: add CM-T35 board

This patch adds support for CM-T35 board

Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoARM: fix broken build of ARM
Stefano Babic [Thu, 27 Jan 2011 06:03:49 +0000 (06:03 +0000)]
ARM: fix broken build of ARM

Commit 8aba9dceebb14144e07d19593111ee3a999c37fc breaks
ARM boards because for ARM the -pie option is used
for partial linking together with -r option.

The patch adds the -pie option to link u-boot.bin only.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Jason Liu <liu.h.jason@gmail.com>
CC: lool@dooz.org
CC: Wolfgang Denk <wd@denx.de>
CC: Albert Aribaud <albert.aribaud@free.fr>
Tested-by: Alexander Holler <holler@ahsoftware.de>
13 years agoMXC: removed warnings from IMX51 ATA driver
Stefano Babic [Tue, 1 Feb 2011 07:13:45 +0000 (08:13 +0100)]
MXC: removed warnings from IMX51 ATA driver

Drop warnings due to unused variables.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
13 years agoMX5: Reuse the gd->tbl value for timestamp and add gd->lastinc for lastinc bss
Stefano Babic [Fri, 21 Jan 2011 20:16:15 +0000 (21:16 +0100)]
MX5: Reuse the gd->tbl value for timestamp and add gd->lastinc for lastinc bss

The usage of bss values in drivers before initialisation of bss is forbidden.
In that special case some data in .rel.dyn gets corrupted.

This patch is the same as recently applied for arm926js architecture.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Heiko Schocher <hs@denx.de>
13 years agoAdd support for Freescale's mx35pdk board.
Stefano Babic [Thu, 20 Jan 2011 08:05:15 +0000 (08:05 +0000)]
Add support for Freescale's mx35pdk board.

The patch adds suupport for the Freescale's mx35pdk board
(known as well as mx35_3stack).

The board boots from the NOR flash. Following devices
are supported:
 - two ethernet devices (FEC and SMC911x on debug board)
 - I2C
 - PMIC (MC13892) via I2C interface
 - UART
 - NOR flash (64MB)
 - NAND flash (2GB)
 - basic access to mc9sdz60 registers via I2C interface

Signed-off-by: Stefano Babic <sbabic@denx.de>
13 years agoSPI: mxc_spi: replace fixed offsets with structures
Stefano Babic [Wed, 19 Jan 2011 22:46:33 +0000 (22:46 +0000)]
SPI: mxc_spi: replace fixed offsets with structures

This patch cleans driver code replacing all accesses
to registers with fixed offsets with a corresponding
structure.

Signed-off-by: Stefano Babic <sbabic@denx.de>
13 years agoSPI: mxc_spi: add SPI clock calculation and setup to the driver
Anatolij Gustschin [Wed, 19 Jan 2011 22:46:32 +0000 (22:46 +0000)]
SPI: mxc_spi: add SPI clock calculation and setup to the driver

The MXC SPI driver didn't calculate the SPI clock up to
now and just used highest possible divider 512 for DATA
RATE in the control register. This results in very low
transfer rates.

The patch adds code to calculate and setup the SPI clock
frequency for transfers.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Stefano Babic <sbabic@denx.de>
13 years agoSPI: mxc_spi: fix swapping bug and add missing swapping in unaligned rx case
Anatolij Gustschin [Thu, 20 Jan 2011 07:53:06 +0000 (07:53 +0000)]
SPI: mxc_spi: fix swapping bug and add missing swapping in unaligned rx case

We need to shift only one time in each cycle in the swapping loop
for unaligned tx case. Currently two byte shift operations are
performed in each loop cycle causing zero gaps in the transmited
data, so not all data scheduled for transmition is actually
transmited.

The proper swapping in unaligned rx case is missing, so add it
as we need to put the received data into the rx buffer in the
correct byte order.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Tested-by: Stefano Babic <sbabic@denx.de>
13 years agoSPI: mxc_spi: add support for i.MX35 processor
Stefano Babic [Wed, 19 Jan 2011 22:46:30 +0000 (22:46 +0000)]
SPI: mxc_spi: add support for i.MX35 processor

Signed-off-by: Stefano Babic <sbabic@denx.de>
13 years agoAdd basic support for Freescale's mc9sdz60
Stefano Babic [Wed, 19 Jan 2011 22:46:29 +0000 (22:46 +0000)]
Add basic support for Freescale's mc9sdz60

The patch adds helper funtions for basic access to the registers
of the MC9sdz60 chip (multifunctional device with RTC and CAN) via
I2C interface.

Signed-off-by: Stefano Babic <sbabic@denx.de>
13 years agoI2C: mxc_i2c: address failure with mx35 processor
Stefano Babic [Thu, 20 Jan 2011 07:51:31 +0000 (07:51 +0000)]
I2C: mxc_i2c: address failure with mx35 processor

There is sporadic failures when more as one I2C slave
is on the bus and the processor tries to communicate
with more as one slave.
The problem was seen on a mx35pdk (two I2C slaves,
PMIC controller and CAN/RTC chip).

The current driver uses the IIF bit in the status register
to check if the bus is busy or not. According to the manual,
this is not correct, because the IIB bit should be checked.
Not only, to check if a transfer is finished must be checked
the ICF bit, and this is not tested at all.

This patch comes from analyse with a corresponding driver
provided by Freescale as part of the LTIB tool. Comparing
the two drivers, it appears that the current u-boot driver checks
the wrong bits, and depending on race condition, the transfer
can be successful or not.

The patch gets rid also of own debug function (DPRINTF),
replaced with the general debug().

Tested on Freescale mx35pdk.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Heiko Schocher <hs@denx.de>
Acked-by: Heiko Schocher <hs@denx.de>
13 years agoI2C: mxc_i2c: get rid of __REG access
Stefano Babic [Thu, 20 Jan 2011 07:50:44 +0000 (07:50 +0000)]
I2C: mxc_i2c: get rid of __REG access

This driver accesses to processor's register
via __REG macros, that are removed (or are planned
to be removed) and replaced by C structures.
This patches replaces all occurrencies of __REG macros.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Heiko Schocher <hs@denx.de>
Acked-by: Heiko Schocher <hs@denx.de>
13 years agomxc_i2c: Add support for the i.MX35 processor
Stefano Babic [Wed, 19 Jan 2011 22:46:26 +0000 (22:46 +0000)]
mxc_i2c: Add support for the i.MX35 processor

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Heiko Schocher <hs@denx.de>
Acked-by: Heiko Schocher <hs@denx.de>
13 years agoserial_mxc: add support for Freescale's i.MX35 processor
Stefano Babic [Wed, 19 Jan 2011 22:46:25 +0000 (22:46 +0000)]
serial_mxc: add support for Freescale's i.MX35 processor

The patch adds UART support for the i.MX35 processor.

Signed-off-by: Stefano Babic <sbabic@denx.de>
13 years agoAdd support for MX35 processor
Stefano Babic [Thu, 20 Jan 2011 07:49:52 +0000 (07:49 +0000)]
Add support for MX35 processor

The patch adds basic support for the Freescale's i.MX35
(arm1136 based) processor.

The patch adds also a prototype for the initialization
of the FEC(ethernet controller) to netdev.h to avoid
warnings.

Signed-off-by: Stefano Babic <sbabic@denx.de>